diff options
author | Dmitry Stogov <dmitry@zend.com> | 2015-03-12 16:53:51 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2015-03-12 16:53:51 +0300 |
commit | 8633685675692e9a926cf9f97b1c406c37497ddf (patch) | |
tree | e0c82ad945a575f90f90dfd402c7e2dc013a3acc /ext/iconv/iconv.c | |
parent | 0e30c543ec8e6c371e0aef6e125e7b90f4b1b790 (diff) | |
download | php-git-8633685675692e9a926cf9f97b1c406c37497ddf.tar.gz |
Use specialized macro for string zval creation
Diffstat (limited to 'ext/iconv/iconv.c')
-rw-r--r-- | ext/iconv/iconv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c index e723f6e2eb..81dfd51136 100644 --- a/ext/iconv/iconv.c +++ b/ext/iconv/iconv.c @@ -2080,7 +2080,7 @@ PHP_FUNCTION(iconv_substr) _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset); if (err == PHP_ICONV_ERR_SUCCESS && str->val[0] != '\0' && retval.s != NULL) { - RETURN_STR(retval.s); + RETURN_NEW_STR(retval.s); } smart_str_free(&retval); RETURN_FALSE; |