summaryrefslogtreecommitdiff
path: root/ext/intl/collator/collator_error.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/intl/collator/collator_error.c')
-rw-r--r--ext/intl/collator/collator_error.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/intl/collator/collator_error.c b/ext/intl/collator/collator_error.c
index 337696fb2f..679c4557b4 100644
--- a/ext/intl/collator/collator_error.c
+++ b/ext/intl/collator/collator_error.c
@@ -34,7 +34,7 @@ PHP_FUNCTION( collator_get_error_code )
if( zend_parse_method_parameters( ZEND_NUM_ARGS(), getThis(), "O",
&object, Collator_ce_ptr ) == FAILURE )
{
- return;
+ RETURN_THROWS();
}
/* Fetch the object (without resetting its last error code). */
@@ -62,7 +62,7 @@ PHP_FUNCTION( collator_get_error_message )
if( zend_parse_method_parameters( ZEND_NUM_ARGS(), getThis(), "O",
&object, Collator_ce_ptr ) == FAILURE )
{
- return;
+ RETURN_THROWS();
}
/* Fetch the object (without resetting its last error code). */