summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2019-01-31 18:47:58 +0300
committerDmitry Stogov <dmitry@zend.com>2019-02-04 13:20:25 +0300
commit91ef4124e56a8ec52078bdcb5547ea5dbf654566 (patch)
tree14285f0ab29d8274b8aeb7003ca7d0c77bbd604f /sapi/cli/php_cli.c
parent0476d558272c18778f95c0368e18108771a63d99 (diff)
downloadphp-git-91ef4124e56a8ec52078bdcb5547ea5dbf654566.tar.gz
Refactor zend_object_handlers API to pass zend_object* and zend_string* insted of zval(s).
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r--sapi/cli/php_cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c
index 608f1b0e25..22025fa59a 100644
--- a/sapi/cli/php_cli.c
+++ b/sapi/cli/php_cli.c
@@ -1104,7 +1104,7 @@ static int do_cli(int argc, char **argv) /* {{{ */
memset(&execute_data, 0, sizeof(zend_execute_data));
EG(current_execute_data) = &execute_data;
- zend_call_method_with_1_params(&ref, pce, &pce->constructor, "__construct", NULL, &arg);
+ zend_call_method_with_1_params(Z_OBJ(ref), pce, &pce->constructor, "__construct", NULL, &arg);
if (EG(exception)) {
zval tmp, *msg, rv;