From eca7656b7d9a46d3a6ec9b12619f11a2482a3c0d Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Sat, 29 Aug 2015 21:00:13 +0200 Subject: [PATCH] PHP7 adapt: fix setModuleLoader --- v8js_class.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v8js_class.cc b/v8js_class.cc index d0ddeda..37bf0ea 100644 --- a/v8js_class.cc +++ b/v8js_class.cc @@ -657,14 +657,14 @@ static PHP_METHOD(V8Js, clearPendingException) static PHP_METHOD(V8Js, setModuleLoader) { v8js_ctx *c; - zval callable; + zval *callable; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &callable) == FAILURE) { return; } c = Z_V8JS_CTX_OBJ_P(getThis()); - ZVAL_COPY(&c->module_loader, &callable); + ZVAL_COPY(&c->module_loader, callable); } /* }}} */