@@ -1094,13 +1094,6 @@ PHPAPI zend_object *php_uri_object_handler_clone(zend_object *object)
10941094 return & new_uri_object -> std ;
10951095}
10961096
1097- PHPAPI int php_uri_object_handler_unserialize (zval * object , zend_class_entry * ce , const unsigned char * buf , size_t buf_len , zend_unserialize_data * data )
1098- {
1099- zend_throw_exception_ex (NULL , 0 , "Unserialization of %s using the \"C\" format is unsupported" , ZSTR_VAL (ce -> name ));
1100-
1101- return FAILURE ;
1102- }
1103-
11041097PHPAPI zend_result php_uri_parser_register (const php_uri_parser * uri_parser )
11051098{
11061099 zend_string * key = zend_string_init_interned (uri_parser -> name , strlen (uri_parser -> name ), true);
@@ -1123,7 +1116,6 @@ static PHP_MINIT_FUNCTION(uri)
11231116 php_uri_ce_rfc3986_uri = register_class_Uri_Rfc3986_Uri ();
11241117 php_uri_ce_rfc3986_uri -> create_object = php_uri_object_create_rfc3986 ;
11251118 php_uri_ce_rfc3986_uri -> default_object_handlers = & object_handlers_rfc3986_uri ;
1126- php_uri_ce_rfc3986_uri -> unserialize = & php_uri_object_handler_unserialize ;
11271119 memcpy (& object_handlers_rfc3986_uri , zend_get_std_object_handlers (), sizeof (zend_object_handlers ));
11281120 object_handlers_rfc3986_uri .offset = offsetof(php_uri_object , std );
11291121 object_handlers_rfc3986_uri .free_obj = php_uri_object_handler_free ;
@@ -1135,7 +1127,6 @@ static PHP_MINIT_FUNCTION(uri)
11351127 php_uri_ce_whatwg_url = register_class_Uri_WhatWg_Url ();
11361128 php_uri_ce_whatwg_url -> create_object = php_uri_object_create_whatwg ;
11371129 php_uri_ce_whatwg_url -> default_object_handlers = & object_handlers_whatwg_uri ;
1138- php_uri_ce_whatwg_url -> unserialize = & php_uri_object_handler_unserialize ;
11391130 memcpy (& object_handlers_whatwg_uri , zend_get_std_object_handlers (), sizeof (zend_object_handlers ));
11401131 object_handlers_whatwg_uri .offset = offsetof(php_uri_object , std );
11411132 object_handlers_whatwg_uri .free_obj = php_uri_object_handler_free ;
@@ -1145,7 +1136,6 @@ static PHP_MINIT_FUNCTION(uri)
11451136 php_uri_ce_exception = register_class_Uri_UriException (zend_ce_exception );
11461137 php_uri_ce_error = register_class_Uri_UriError (zend_ce_error );
11471138 php_uri_ce_invalid_uri_exception = register_class_Uri_InvalidUriException (php_uri_ce_exception );
1148- php_uri_ce_invalid_uri_exception -> unserialize = & php_uri_object_handler_unserialize ;
11491139 php_uri_ce_whatwg_invalid_url_exception = register_class_Uri_WhatWg_InvalidUrlException (php_uri_ce_invalid_uri_exception );
11501140 php_uri_ce_whatwg_url_host_type = register_class_Uri_WhatWg_UrlHostType ();
11511141 php_uri_ce_whatwg_url_validation_error = register_class_Uri_WhatWg_UrlValidationError ();
0 commit comments