summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-08-30 10:59:58 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-08-30 11:02:28 +0200
commit226fd52c76e9ef325ce660321a29b1f99c388ddf (patch)
tree107d6e959209574318aaee417d617a1641f8457f /sapi/cli/php_cli.c
parente1afd9b2137ea77c15516883c0f071cfdae763be (diff)
downloadphp-git-226fd52c76e9ef325ce660321a29b1f99c388ddf.tar.gz
Don't call Reflection::export() in --rf etc implementation
This method is deprecated ... instead simply directly print the object.
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r--sapi/cli/php_cli.c3
1 files changed, 2 insertions, 1 deletions
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);