0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-11-09 22:08:40 +00:00

PHP7 adapt: no fallback property_info any longer

This commit is contained in:
Stefan Siegl 2015-08-29 20:19:44 +02:00
parent 49acfc6f22
commit b21acf770a

View File

@ -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. */
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 */
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();