mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Port all internally used classes to use default_object_handlers
Signed-off-by: Bob Weinand <bobwei9@hotmail.com>
This commit is contained in:
parent
800c6672e5
commit
94ee4f9834
57 changed files with 108 additions and 115 deletions
|
@ -1075,7 +1075,6 @@ static zend_object *php_zip_object_new(zend_class_entry *class_type) /* {{{ */
|
|||
intern->prop_handler = &zip_prop_handlers;
|
||||
zend_object_std_init(&intern->zo, class_type);
|
||||
object_properties_init(&intern->zo, class_type);
|
||||
intern->zo.handlers = &zip_object_handlers;
|
||||
intern->last_id = -1;
|
||||
|
||||
return &intern->zo;
|
||||
|
@ -3101,6 +3100,7 @@ static PHP_MINIT_FUNCTION(zip)
|
|||
|
||||
zip_class_entry = register_class_ZipArchive(zend_ce_countable);
|
||||
zip_class_entry->create_object = php_zip_object_new;
|
||||
zip_class_entry->default_object_handlers = &zip_object_handlers;
|
||||
|
||||
zend_hash_init(&zip_prop_handlers, 0, NULL, php_zip_free_prop_handler, 1);
|
||||
php_zip_register_prop_handler(&zip_prop_handlers, "lastId", php_zip_last_id, NULL, IS_LONG);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue