mirror of
https://github.com/phpv8/v8js.git
synced 2025-03-11 22:18:44 +00:00
Fix compilation with PHP 5.5
This commit is contained in:
parent
93b1118fe8
commit
5595c3bbd7
@ -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)) {
|
if (obj->std.ce == php_ce_v8object && result->StrictEquals(thisObj)) {
|
||||||
/* JS code did "return this", retain object identity */
|
/* 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();
|
result.Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user