com php-src: Support for __debugInfo (Joe Watkins) : ext/opcache/zend_persist.c

From: Date: Sun, 18 May 2014 16:55:40 +0000
Subject: com php-src: Support for __debugInfo (Joe Watkins) : ext/opcache/zend_persist.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-78449@lists.php.net to get a copy of this message
Commit: 1d1fdfb51d8dc1e1acfebeeb82c79f881d531f4b Author: Dmitry Stogov <dmitry@zend.com> Sun, 18 May 2014 20:55:40 +0400 Parents: 3fff53fc5790918bea9a8c04a04a9d8c79ebdbf6 Branches: PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1d1fdfb51d8dc1e1acfebeeb82c79f881d531f4b Log: Support for __debugInfo (Joe Watkins) Changed paths: M ext/opcache/zend_persist.c Diff: diff --git a/ext/opcache/zend_persist.c b/ext/opcache/zend_persist.c index 17f8e87..fdc21d6 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; }

« previous php.cvs (#78449) next »