mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Revert "Store default object handlers alongside the class entry"
This reverts commit9e6eab3c13
. Reverted alonga01dd9feda
.
This commit is contained in:
parent
a01dd9feda
commit
5a0b68bed7
13 changed files with 58 additions and 35 deletions
|
@ -31,7 +31,6 @@ static zend_always_inline void _zend_object_std_init(zend_object *object, zend_c
|
|||
GC_SET_REFCOUNT(object, 1);
|
||||
GC_TYPE_INFO(object) = GC_OBJECT;
|
||||
object->ce = ce;
|
||||
object->handlers = ce->default_object_handlers;
|
||||
object->properties = NULL;
|
||||
zend_objects_store_put(object);
|
||||
if (UNEXPECTED(ce->ce_flags & ZEND_ACC_USE_GUARDS)) {
|
||||
|
@ -187,6 +186,7 @@ ZEND_API zend_object* ZEND_FASTCALL zend_objects_new(zend_class_entry *ce)
|
|||
zend_object *object = emalloc(sizeof(zend_object) + zend_object_properties_size(ce));
|
||||
|
||||
_zend_object_std_init(object, ce);
|
||||
object->handlers = &std_object_handlers;
|
||||
return object;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue