svn: /php/php-src/ branches/PHP_5_4/NEWS branches/PHP_5_4/Zend/tests/bug60536_001.phpt branches/PHP_5_4/Zend/tests/bug60536_002.phpt
branches/PHP_5_4/Zend/tests/bug60536_003.phpt branches/PHP_5_4/Zend/tests/bug60536_004.phpt branches/PHP_5_4/Zend/tests/bug60536_005.phpt
branches/PHP_5_4/Zend/zend_object_handlers.c trunk/Zend/tests/bug60536_001.phpt trunk/Zend/tests/bug60536_002.phpt trunk/Zend/tests/bug60536_003.phpt
trunk/Zend/tests/bug60536_004.phpt trunk/Zend/tests/bug60536_005.phpt trunk/Zen
| From: | Xinchen Hui | Date: | Fri, 16 Dec 2011 19:02:52 +0000 |
| Subject: | svn: /php/php-src/ branches/PHP_5_4/NEWS branches/PHP_5_4/Zend/tests/bug60536_001.phpt branches/PHP_5_4/Zend/tests/bug60536_002.phpt branches/PHP_5_4/Zend/tests/bug60536_003.phpt branches/PHP_5_4/Zend/tests/bug60536_004.phpt branches/PHP_5_4/Zend/tests/bug60536_005.phpt branches/PHP_5_4/Zend/zend_object_handlers.c trunk/Zend/tests/bug60536_001.phpt trunk/Zend/tests/bug60536_002.phpt trunk/Zend/tests/bug60536_003.phpt trunk/Zend/tests/bug60536_004.phpt trunk/Zend/tests/bug60536_005.phpt trunk/Zen |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-67295@lists.php.net to get a copy of this message | ||
laruence Fri, 16 Dec 2011 19:02:52 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=321073
Log:
Fixed bug #60536 (Traits Segfault)
# this is a tough one, I think I should explain
# Zend use zend_object->properties_table both as zval ** and zval ***
# if a zend_object->properties is not initialized, the properties_table is zval **
# while in rebuild_object_properties, zend will store the zval ** to zend_object->properties
# then stash the zval ***(ie, zobj->properties_table[0] is zval ** now) to
zobj->properties_table[0]
# so when a zend_object inherit form multi parent and these parent have a same
property_info->offset
# properties, will result in a repeat zval **->zval ** transform, which will lead to a
segmentfault
# *may be* this fix is not the best fix, we should not use this tricky way, and rewrite this
mechanism.
Bug: https://bugs.php.net/60536 (Analyzed) Traits Segfault
Changed paths:
U php/php-src/branches/PHP_5_4/NEWS
A php/php-src/branches/PHP_5_4/Zend/tests/bug60536_001.phpt
A php/php-src/branches/PHP_5_4/Zend/tests/bug60536_002.phpt
A php/php-src/branches/PHP_5_4/Zend/tests/bug60536_003.phpt
A php/php-src/branches/PHP_5_4/Zend/tests/bug60536_004.phpt
A php/php-src/branches/PHP_5_4/Zend/tests/bug60536_005.phpt
U php/php-src/branches/PHP_5_4/Zend/zend_object_handlers.c
A php/php-src/trunk/Zend/tests/bug60536_001.phpt
A php/php-src/trunk/Zend/tests/bug60536_002.phpt
A php/php-src/trunk/Zend/tests/bug60536_003.phpt
A php/php-src/trunk/Zend/tests/bug60536_004.phpt
A php/php-src/trunk/Zend/tests/bug60536_005.phpt
U php/php-src/trunk/Zend/zend_object_handlers.c
Attachment: [text/x-diff] svn-diffs-321073.txt
Attachment: [text/x-diff] svn-diffs-321073.txt