From 226fd52c76e9ef325ce660321a29b1f99c388ddf Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 30 Aug 2019 10:59:58 +0200 Subject: Don't call Reflection::export() in --rf etc implementation This method is deprecated ... instead simply directly print the object. --- sapi/cli/php_cli.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sapi/cli/php_cli.c') diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 0700e79b15..a305c36ade 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -1084,7 +1084,8 @@ static int do_cli(int argc, char **argv) /* {{{ */ zval_ptr_dtor(&tmp); EG(exception) = NULL; } else { - zend_call_method_with_1_params(NULL, reflection_ptr, NULL, "export", NULL, &ref); + zend_print_zval(&ref, 0); + zend_write("\n", 1); } zval_ptr_dtor(&ref); zval_ptr_dtor(&arg); -- cgit v1.2.1