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
|
@ -398,6 +398,7 @@ PHP_MINIT_FUNCTION(curl)
|
|||
|
||||
curl_ce = register_class_CurlHandle();
|
||||
curl_ce->create_object = curl_create_object;
|
||||
curl_ce->default_object_handlers = &curl_object_handlers;
|
||||
|
||||
memcpy(&curl_object_handlers, &std_object_handlers, sizeof(zend_object_handlers));
|
||||
curl_object_handlers.offset = XtOffsetOf(php_curl, std);
|
||||
|
@ -426,7 +427,6 @@ static zend_object *curl_create_object(zend_class_entry *class_type) {
|
|||
|
||||
zend_object_std_init(&intern->std, class_type);
|
||||
object_properties_init(&intern->std, class_type);
|
||||
intern->std.handlers = &curl_object_handlers;
|
||||
|
||||
return &intern->std;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue