summaryrefslogtreecommitdiff
path: root/ext/zip/php_zip.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2015-03-12 16:53:51 +0300
committerDmitry Stogov <dmitry@zend.com>2015-03-12 16:53:51 +0300
commit8633685675692e9a926cf9f97b1c406c37497ddf (patch)
treee0c82ad945a575f90f90dfd402c7e2dc013a3acc /ext/zip/php_zip.c
parent0e30c543ec8e6c371e0aef6e125e7b90f4b1b790 (diff)
downloadphp-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.c4
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);
}
/* }}} */