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/zip/php_zip.c | |
parent | 0e30c543ec8e6c371e0aef6e125e7b90f4b1b790 (diff) | |
download | php-git-8633685675692e9a926cf9f97b1c406c37497ddf.tar.gz |
Use specialized macro for string zval creation
Diffstat (limited to 'ext/zip/php_zip.c')
-rw-r--r-- | ext/zip/php_zip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index e90ee9f979..375df46bc9 100644 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@ -1279,7 +1279,7 @@ static PHP_NAMED_FUNCTION(zif_zip_entry_read) if (n > 0) { buffer->val[n] = '\0'; buffer->len = n; - RETURN_STR(buffer); + RETURN_NEW_STR(buffer); } else { zend_string_free(buffer); RETURN_EMPTY_STRING() @@ -2648,7 +2648,7 @@ static void php_zip_get_from(INTERNAL_FUNCTION_PARAMETERS, int type) /* {{{ */ zip_fclose(zf); buffer->val[n] = '\0'; buffer->len = n; - RETURN_STR(buffer); + RETURN_NEW_STR(buffer); } /* }}} */ |