Skip to content

Commit 5595c3b

Browse files
committed
Fix compilation with PHP 5.5
1 parent 93b1118 commit 5595c3b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

v8js_v8object_class.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,8 @@ static int v8js_v8object_call_method(char *method, INTERNAL_FUNCTION_PARAMETERS)
332332

333333
if (obj->std.ce == php_ce_v8object && result->StrictEquals(thisObj)) {
334334
/* JS code did "return this", retain object identity */
335-
RETVAL_ZVAL(object, 1, 0);
335+
ZVAL_COPY_VALUE(return_value, object);
336+
zval_copy_ctor(return_value);
336337
result.Clear();
337338
}
338339

0 commit comments

Comments
 (0)