@@ -136,7 +136,7 @@ static zend_result php_uri_parser_rfc3986_scheme_write(void *uri, zval *value, z
136136 return FAILURE ;
137137 default :
138138 /* This should be unreachable in practice. */
139- zend_throw_exception (uri_invalid_uri_exception_ce , "Failed to update the scheme" , 0 );
139+ zend_throw_exception (uri_error_ce , "Failed to update the scheme" , 0 );
140140 return FAILURE ;
141141 }
142142}
@@ -176,7 +176,7 @@ zend_result php_uri_parser_rfc3986_userinfo_write(void *uri, zval *value, zval *
176176 return FAILURE ;
177177 default :
178178 /* This should be unreachable in practice. */
179- zend_throw_exception (uri_invalid_uri_exception_ce , "Failed to update the userinfo" , 0 );
179+ zend_throw_exception (uri_error_ce , "Failed to update the userinfo" , 0 );
180180 return FAILURE ;
181181 }
182182}
@@ -271,7 +271,7 @@ static zend_result php_uri_parser_rfc3986_host_write(void *uri, zval *value, zva
271271 return FAILURE ;
272272 default :
273273 /* This should be unreachable in practice. */
274- zend_throw_exception (uri_invalid_uri_exception_ce , "Failed to update the host" , 0 );
274+ zend_throw_exception (uri_error_ce , "Failed to update the host" , 0 );
275275 return FAILURE ;
276276 }
277277}
@@ -331,7 +331,7 @@ static zend_result php_uri_parser_rfc3986_port_write(void *uri, zval *value, zva
331331 return FAILURE ;
332332 default :
333333 /* This should be unreachable in practice. */
334- zend_throw_exception (uri_invalid_uri_exception_ce , "Failed to update the port" , 0 );
334+ zend_throw_exception (uri_error_ce , "Failed to update the port" , 0 );
335335 return FAILURE ;
336336 }
337337}
@@ -383,7 +383,7 @@ static zend_result php_uri_parser_rfc3986_path_write(void *uri, zval *value, zva
383383 return FAILURE ;
384384 default :
385385 /* This should be unreachable in practice. */
386- zend_throw_exception (uri_invalid_uri_exception_ce , "Failed to update the path" , 0 );
386+ zend_throw_exception (uri_error_ce , "Failed to update the path" , 0 );
387387 return FAILURE ;
388388 }
389389}
@@ -420,7 +420,7 @@ static zend_result php_uri_parser_rfc3986_query_write(void *uri, zval *value, zv
420420 return FAILURE ;
421421 default :
422422 /* This should be unreachable in practice. */
423- zend_throw_exception (uri_invalid_uri_exception_ce , "Failed to update the query" , 0 );
423+ zend_throw_exception (uri_error_ce , "Failed to update the query" , 0 );
424424 return FAILURE ;
425425 }
426426}
@@ -457,7 +457,7 @@ static zend_result php_uri_parser_rfc3986_fragment_write(void *uri, zval *value,
457457 return FAILURE ;
458458 default :
459459 /* This should be unreachable in practice. */
460- zend_throw_exception (uri_invalid_uri_exception_ce , "Failed to update the fragment" , 0 );
460+ zend_throw_exception (uri_error_ce , "Failed to update the fragment" , 0 );
461461 return FAILURE ;
462462 }
463463}
@@ -484,7 +484,7 @@ php_uri_parser_rfc3986_uris *php_uri_parser_rfc3986_parse_ex(const char *uri_str
484484 break ;
485485 default :
486486 /* This should be unreachable in practice. */
487- zend_throw_exception (uri_invalid_uri_exception_ce , "Failed to parse the specified URI" , 0 );
487+ zend_throw_exception (uri_error_ce , "Failed to parse the specified URI" , 0 );
488488 break ;
489489 }
490490 }
@@ -506,7 +506,7 @@ php_uri_parser_rfc3986_uris *php_uri_parser_rfc3986_parse_ex(const char *uri_str
506506 break ;
507507 default :
508508 /* This should be unreachable in practice. */
509- zend_throw_exception (uri_invalid_uri_exception_ce , "Failed to resolve the specified URI against the base URI" , 0 );
509+ zend_throw_exception (uri_error_ce , "Failed to resolve the specified URI against the base URI" , 0 );
510510 break ;
511511 }
512512 }
0 commit comments