diff options
Diffstat (limited to 'ext/standard/string.c')
-rw-r--r-- | ext/standard/string.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c index d2cc1bb4a1..17e0abf75e 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -2271,7 +2271,7 @@ PHP_FUNCTION(substr_replace) if (Z_TYPE_P(from) != IS_ARRAY) { convert_to_long_ex(from); if (EG(exception)) { - return; + RETURN_THROWS(); } } @@ -4316,7 +4316,7 @@ static void php_str_replace_common(INTERNAL_FUNCTION_PARAMETERS, int case_sensit } if (EG(exception)) { - return; + RETURN_THROWS(); } /* if subject is an array */ @@ -4794,7 +4794,7 @@ PHP_FUNCTION(parse_str) arrayArg = zend_try_array_init(arrayArg); if (!arrayArg) { - return; + RETURN_THROWS(); } res = estrndup(arg, arglen); |