mirror of
https://github.com/phpv8/v8js.git
synced 2025-01-20 17:31:51 +00:00
PHP7 adapt: fix zend_register_resource/compileString
This commit is contained in:
parent
a91d2bc413
commit
19a67118b5
@ -565,7 +565,7 @@ static PHP_METHOD(V8Js, compileString)
|
|||||||
|
|
||||||
v8js_compile_script(getThis(), str, identifier, &res TSRMLS_CC);
|
v8js_compile_script(getThis(), str, identifier, &res TSRMLS_CC);
|
||||||
if (res) {
|
if (res) {
|
||||||
RETURN_RES(zend_register_resource(res, le_v8js_script));
|
RETVAL_RES(zend_register_resource(res, le_v8js_script));
|
||||||
|
|
||||||
v8js_ctx *ctx;
|
v8js_ctx *ctx;
|
||||||
ctx = Z_V8JS_CTX_OBJ_P(getThis());
|
ctx = Z_V8JS_CTX_OBJ_P(getThis());
|
||||||
|
Loading…
Reference in New Issue
Block a user