Skip to content

Commit 226fd52

Browse files
committed
Don't call Reflection::export() in --rf etc implementation
This method is deprecated ... instead simply directly print the object.
1 parent e1afd9b commit 226fd52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sapi/cli/php_cli.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,8 @@ static int do_cli(int argc, char **argv) /* {{{ */
10841084
zval_ptr_dtor(&tmp);
10851085
EG(exception) = NULL;
10861086
} else {
1087-
zend_call_method_with_1_params(NULL, reflection_ptr, NULL, "export", NULL, &ref);
1087+
zend_print_zval(&ref, 0);
1088+
zend_write("\n", 1);
10881089
}
10891090
zval_ptr_dtor(&ref);
10901091
zval_ptr_dtor(&arg);

0 commit comments

Comments
 (0)