mirror of
https://github.com/phpv8/v8js.git
synced 2025-01-05 12:51:53 +00:00
PHP7 adapt: no fallback property_info any longer
This commit is contained in:
parent
49acfc6f22
commit
b21acf770a
@ -992,7 +992,7 @@ static void v8js_write_property(zval *object, zval *member, zval *value, void **
|
|||||||
|
|
||||||
/* Check whether member is public, if so, export to V8. */
|
/* Check whether member is public, if so, export to V8. */
|
||||||
zend_property_info *property_info = zend_get_property_info(c->std.ce, Z_STR_P(member), 1 TSRMLS_CC);
|
zend_property_info *property_info = zend_get_property_info(c->std.ce, Z_STR_P(member), 1 TSRMLS_CC);
|
||||||
if(property_info->flags & ZEND_ACC_PUBLIC) {
|
if(!property_info || property_info->flags & ZEND_ACC_PUBLIC) {
|
||||||
/* Global PHP JS object */
|
/* Global PHP JS object */
|
||||||
v8::Local<v8::String> object_name_js = v8::Local<v8::String>::New(isolate, c->object_name);
|
v8::Local<v8::String> object_name_js = v8::Local<v8::String>::New(isolate, c->object_name);
|
||||||
v8::Local<v8::Object> jsobj = V8JS_GLOBAL(isolate)->Get(object_name_js)->ToObject();
|
v8::Local<v8::Object> jsobj = V8JS_GLOBAL(isolate)->Get(object_name_js)->ToObject();
|
||||||
|
Loading…
Reference in New Issue
Block a user