From 5595c3bbd7b6738a7dfc6d5e86d9ed99905c5209 Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Fri, 25 Mar 2016 22:55:11 +0100 Subject: [PATCH] Fix compilation with PHP 5.5 --- v8js_v8object_class.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/v8js_v8object_class.cc b/v8js_v8object_class.cc index 8f5a126..dd90662 100644 --- a/v8js_v8object_class.cc +++ b/v8js_v8object_class.cc @@ -332,7 +332,8 @@ static int v8js_v8object_call_method(char *method, INTERNAL_FUNCTION_PARAMETERS) if (obj->std.ce == php_ce_v8object && result->StrictEquals(thisObj)) { /* JS code did "return this", retain object identity */ - RETVAL_ZVAL(object, 1, 0); + ZVAL_COPY_VALUE(return_value, object); + zval_copy_ctor(return_value); result.Clear(); }