use correct object handler to free the object
authorMichael Wallner <mike@php.net>
Fri, 16 Jan 2015 16:09:29 +0000 (17:09 +0100)
committerMichael Wallner <mike@php.net>
Fri, 16 Jan 2015 16:09:29 +0000 (17:09 +0100)
php_http_client.c
php_http_cookie.c
php_http_encoding.c
php_http_message.c
php_http_message_body.c
php_http_message_parser.c

index 5da5e06e1b3edbe06c26da314b708a6ee14f2db2..3ee3ff523d62509d9f88bd1f40f9047da92649c7 100644 (file)
@@ -1164,7 +1164,7 @@ PHP_MINIT_FUNCTION(http_client)
        zend_class_implements(php_http_client_class_entry, 2, spl_ce_SplSubject, spl_ce_Countable);
        memcpy(&php_http_client_object_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers));
        php_http_client_object_handlers.offset = XtOffsetOf(php_http_client_object_t, zo);
-       php_http_client_object_handlers.dtor_obj = php_http_client_object_free;
+       php_http_client_object_handlers.free_obj = php_http_client_object_free;
        php_http_client_object_handlers.clone_obj = NULL;
        zend_declare_property_null(php_http_client_class_entry, ZEND_STRL("observers"), ZEND_ACC_PRIVATE);
        zend_declare_property_null(php_http_client_class_entry, ZEND_STRL("options"), ZEND_ACC_PROTECTED);
index a04de835a1ea1a0da2e3817305e4464742e5fe11..1a7e6a37273bb2a045468fd7a2164988838388ec 100644 (file)
@@ -1021,7 +1021,7 @@ PHP_MINIT_FUNCTION(http_cookie)
        memcpy(&php_http_cookie_object_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers));
        php_http_cookie_object_handlers.offset = XtOffsetOf(php_http_cookie_object_t, zo);
        php_http_cookie_object_handlers.clone_obj = php_http_cookie_object_clone;
-       php_http_cookie_object_handlers.dtor_obj = php_http_cookie_object_free;
+       php_http_cookie_object_handlers.free_obj = php_http_cookie_object_free;
 
        zend_declare_class_constant_long(php_http_cookie_class_entry, ZEND_STRL("PARSE_RAW"), PHP_HTTP_COOKIE_PARSE_RAW TSRMLS_CC);
        zend_declare_class_constant_long(php_http_cookie_class_entry, ZEND_STRL("SECURE"), PHP_HTTP_COOKIE_SECURE TSRMLS_CC);
index a6e9337cdbe8827db2e7bc67311af193cf3d0a83..30b4c81187acfced1f4bc5032009f92cbc73b2bd 100644 (file)
@@ -1179,7 +1179,7 @@ PHP_MINIT_FUNCTION(http_encoding)
        php_http_encoding_stream_class_entry->create_object = php_http_encoding_stream_object_new;
        memcpy(&php_http_encoding_stream_object_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers));
        php_http_encoding_stream_object_handlers.clone_obj = php_http_encoding_stream_object_clone;
-       php_http_encoding_stream_object_handlers.dtor_obj = php_http_encoding_stream_object_free;
+       php_http_encoding_stream_object_handlers.free_obj = php_http_encoding_stream_object_free;
 
        zend_declare_class_constant_long(php_http_encoding_stream_class_entry, ZEND_STRL("FLUSH_NONE"), PHP_HTTP_ENCODING_STREAM_FLUSH_NONE);
        zend_declare_class_constant_long(php_http_encoding_stream_class_entry, ZEND_STRL("FLUSH_SYNC"), PHP_HTTP_ENCODING_STREAM_FLUSH_SYNC);
index 8ba4802a6de50025b89072a0fc1c82d578c55aa4..5d4b3edba8495ab64bd6223f2acac2742917fe04 100644 (file)
@@ -1959,7 +1959,7 @@ PHP_MINIT_FUNCTION(http_message)
        memcpy(&php_http_message_object_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers));
        php_http_message_object_handlers.offset = XtOffsetOf(php_http_message_object_t, zo);
        php_http_message_object_handlers.clone_obj = php_http_message_object_clone;
-       php_http_message_object_handlers.dtor_obj = php_http_message_object_free;
+       php_http_message_object_handlers.free_obj = php_http_message_object_free;
        php_http_message_object_handlers.read_property = php_http_message_object_read_prop;
        php_http_message_object_handlers.write_property = php_http_message_object_write_prop;
        php_http_message_object_handlers.get_properties = php_http_message_object_get_props;
index b5f03c24604d424da006f1af326828edd81b11ac..3ecd89536a9290740304a4fbeefb98b2adda2de4 100644 (file)
@@ -883,7 +883,7 @@ PHP_MINIT_FUNCTION(http_message_body)
        php_http_message_body_class_entry->create_object = php_http_message_body_object_new;
        memcpy(&php_http_message_body_object_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers));
        php_http_message_body_object_handlers.clone_obj = php_http_message_body_object_clone;
-       php_http_message_body_object_handlers.dtor_obj = php_http_message_body_object_free;
+       php_http_message_body_object_handlers.free_obj = php_http_message_body_object_free;
        zend_class_implements(php_http_message_body_class_entry, 1, zend_ce_serializable);
 
        return SUCCESS;
index 64ab436c3cc66d1629d1e3f02a83e11ae2416d2f..fb5b26fde910562aef7da6fa1ebe5abb5de020da 100644 (file)
@@ -630,7 +630,7 @@ PHP_MINIT_FUNCTION(http_message_parser)
        memcpy(&php_http_message_parser_object_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers));
        php_http_message_parser_class_entry->create_object = php_http_message_parser_object_new;
        php_http_message_parser_object_handlers.clone_obj = NULL;
-       php_http_message_parser_object_handlers.dtor_obj = php_http_message_parser_object_free;
+       php_http_message_parser_object_handlers.free_obj = php_http_message_parser_object_free;
        php_http_message_parser_object_handlers.offset = XtOffsetOf(php_http_message_parser_object_t, zo);
 
        zend_declare_class_constant_long(php_http_message_parser_class_entry, ZEND_STRL("CLEANUP"), PHP_HTTP_MESSAGE_PARSER_CLEANUP);