mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Revert "Port all internally used classes to use default_object_handlers"
This reverts commit 94ee4f9834
.
The commit was a bit too late to be included in PHP 8.2 RC1. Given it's a massive ABI break, we decide to postpone the change to PHP 8.3.
This commit is contained in:
parent
d228651a71
commit
a01dd9feda
57 changed files with 115 additions and 108 deletions
|
@ -398,7 +398,6 @@ 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);
|
||||
|
@ -427,6 +426,7 @@ 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