diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-01-03 20:44:29 +0100 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-01-03 21:10:24 +0100 |
commit | aadd3aaed902a8f21c11984687a4e3d414a2caed (patch) | |
tree | 0bfab8aacc7044d2ed66ce86d8c92c22721ec97d /ext/standard/string.c | |
parent | bbcfa66e06110d8256595e644378a5358dda3558 (diff) | |
download | php-git-aadd3aaed902a8f21c11984687a4e3d414a2caed.tar.gz |
Use RETURN_THROWS() in various places
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); |