From 91ef4124e56a8ec52078bdcb5547ea5dbf654566 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 31 Jan 2019 18:47:58 +0300 Subject: Refactor zend_object_handlers API to pass zend_object* and zend_string* insted of zval(s). --- sapi/cli/php_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sapi/cli/php_cli.c') 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; -- cgit v1.2.1