diff options
author | Xinchen Hui <laruence@php.net> | 2011-12-16 19:02:52 +0000 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2011-12-16 19:02:52 +0000 |
commit | 01dc47631ea044f0df75a1e59d1313ca96a6ba66 (patch) | |
tree | 17dd30b7377da159d419889c4663c233361dc82f /sapi/cli/php_cli_server.c | |
parent | e467a791d3111438ea1160c22b986d24bd09450e (diff) | |
download | php-git-01dc47631ea044f0df75a1e59d1313ca96a6ba66.tar.gz |
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.
Diffstat (limited to 'sapi/cli/php_cli_server.c')
0 files changed, 0 insertions, 0 deletions