Skip to content

Commit 5a6be79

Browse files
committed
uri: Throw UriError when unable to recompose URIs
1 parent 054a11f commit 5a6be79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/uri/php_uri.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ PHP_METHOD(Uri_Rfc3986_Uri, withFragment)
676676

677677
static void throw_cannot_recompose_uri_to_string(zend_object *object)
678678
{
679-
zend_throw_exception_ex(NULL, 0, "Cannot recompose %s to a string", ZSTR_VAL(object->ce->name));
679+
zend_throw_exception_ex(uri_error_ce, 0, "Cannot recompose %s to a string", ZSTR_VAL(object->ce->name));
680680
}
681681

682682
static void uri_equals(INTERNAL_FUNCTION_PARAMETERS, zend_object *that_object, zend_object *comparison_mode)

0 commit comments

Comments
 (0)