com php-src: Don't explicitly set return value on ZPP failure in ext/iconv: ext/iconv/iconv.c
| From: | Christoph Michael Becker | Date: | Fri, 23 Aug 2019 16:14:46 +0000 |
| Subject: | com php-src: Don't explicitly set return value on ZPP failure in ext/iconv: ext/iconv/iconv.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-108018@lists.php.net to get a copy of this message | ||
Commit: bba7f38c4f8cbdbac391739b0fc905aaa8a09ce9
Author: Christoph M. Becker <cmbecker69@gmx.de> Fri, 23 Aug 2019 18:11:48 +0200
Parents: d420336115cd5c0bf5b0a5df2c7acc0de76853ae
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=bba7f38c4f8cbdbac391739b0fc905aaa8a09ce9
Log:
Don't explicitly set return value on ZPP failure in ext/iconv
Failing ZPP throws as of PHP 8.0.0, so explicitly setting a return
value is useless, and also slightly confusing..
Changed paths:
M ext/iconv/iconv.c
Diff:
diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c
index e57a912..0757e42 100644
--- a/ext/iconv/iconv.c
+++ b/ext/iconv/iconv.c
@@ -2004,7 +2004,7 @@ PHP_FUNCTION(iconv_strlen)
if (zend_parse_parameters(ZEND_NUM_ARGS(), "S|s",
&str, &charset, &charset_len) == FAILURE) {
- RETURN_FALSE;
+ return;
}
if (charset_len >= ICONV_CSNMAXLEN) {
@@ -2038,7 +2038,7 @@ PHP_FUNCTION(iconv_substr)
if (zend_parse_parameters(ZEND_NUM_ARGS(), "Sl|ls",
&str, &offset, &length,
&charset, &charset_len) == FAILURE) {
- RETURN_FALSE;
+ return;
}
if (charset_len >= ICONV_CSNMAXLEN) {
@@ -2078,7 +2078,7 @@ PHP_FUNCTION(iconv_strpos)
if (zend_parse_parameters(ZEND_NUM_ARGS(), "SS|ls",
&haystk, &ndl,
&offset, &charset, &charset_len) == FAILURE) {
- RETURN_FALSE;
+ return;
}
if (charset_len >= ICONV_CSNMAXLEN) {
@@ -2132,7 +2132,7 @@ PHP_FUNCTION(iconv_strrpos)
if (zend_parse_parameters(ZEND_NUM_ARGS(), "SS|s",
&haystk, &ndl,
&charset, &charset_len) == FAILURE) {
- RETURN_FALSE;
+ return;
}
if (ZSTR_LEN(ndl) < 1) {
@@ -2177,7 +2177,7 @@ PHP_FUNCTION(iconv_mime_encode)
&field_name, &field_value,
&pref) == FAILURE) {
- RETURN_FALSE;
+ return;
}
if (pref != NULL) {
@@ -2275,7 +2275,7 @@ PHP_FUNCTION(iconv_mime_decode)
if (zend_parse_parameters(ZEND_NUM_ARGS(), "S|ls",
&encoded_str, &mode, &charset, &charset_len) == FAILURE) {
- RETURN_FALSE;
+ return;
}
if (charset_len >= ICONV_CSNMAXLEN) {
@@ -2315,7 +2315,7 @@ PHP_FUNCTION(iconv_mime_decode_headers)
if (zend_parse_parameters(ZEND_NUM_ARGS(), "S|ls",
&encoded_str, &mode, &charset, &charset_len) == FAILURE) {
- RETURN_FALSE;
+ return;
}
if (charset_len >= ICONV_CSNMAXLEN) {