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