From 8633685675692e9a926cf9f97b1c406c37497ddf Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 12 Mar 2015 16:53:51 +0300 Subject: Use specialized macro for string zval creation --- ext/zip/php_zip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/zip/php_zip.c') 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); } /* }}} */ -- cgit v1.2.1