Browse Source

Fix compilation with PHP 5.5

Stefan Siegl 9 years ago
parent
commit
5595c3bbd7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      v8js_v8object_class.cc

+ 2 - 1
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();
 		}