summaryrefslogtreecommitdiff
path: root/ext/opcache
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2014-05-18 20:55:40 +0400
committerDmitry Stogov <dmitry@zend.com>2014-05-18 20:55:40 +0400
commit1d1fdfb51d8dc1e1acfebeeb82c79f881d531f4b (patch)
tree7288f24d95c027b045ec2fcc1044f688298ae7fd /ext/opcache
parent3fff53fc5790918bea9a8c04a04a9d8c79ebdbf6 (diff)
downloadphp-git-1d1fdfb51d8dc1e1acfebeeb82c79f881d531f4b.tar.gz
Support for __debugInfo (Joe Watkins)
Diffstat (limited to 'ext/opcache')
-rw-r--r--ext/opcache/zend_persist.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/opcache/zend_persist.c b/ext/opcache/zend_persist.c
index 17f8e8798f..fdc21d6c5d 100644
--- a/ext/opcache/zend_persist.c
+++ b/ext/opcache/zend_persist.c
@@ -686,6 +686,12 @@ static int zend_update_parent_ce(zend_class_entry **pce TSRMLS_DC)
ce->__callstatic->op_array.refcount++;
}
#endif
+#if ZEND_EXTENSION_API_NO >= PHP_5_6_X_API_NO
+ if (ce->__debugInfo) {
+ ce->__debugInfo = zend_shared_alloc_get_xlat_entry(ce->__debugInfo);
+ ce->__debugInfo->op_array.refcount++;
+ }
+#endif
zend_hash_apply(&ce->properties_info, (apply_func_t) zend_update_property_info_ce TSRMLS_CC);
return 0;
}