From: Dmitry Stogov Date: Wed, 15 Oct 2014 08:38:04 +0000 (+0400) Subject: Fixed ext/standard/tests/strings/pack64_32.phpt failure (In PHP7, we must not free... X-Git-Tag: POST_NATIVE_TLS_MERGE^2~68^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=52b93004d070ff59a1ed6dcd91c8b08935fc1c04;p=php Fixed ext/standard/tests/strings/pack64_32.phpt failure (In PHP7, we must not free array of arguments recieved using "+") --- diff --git a/ext/standard/pack.c b/ext/standard/pack.c index a95c226b97..07206c8b7b 100644 --- a/ext/standard/pack.c +++ b/ext/standard/pack.c @@ -55,7 +55,6 @@ #define INC_OUTPUTPOS(a,b) \ if ((a) < 0 || ((INT_MAX - outputpos)/((int)b)) < (a)) { \ - efree(argv); \ efree(formatcodes); \ efree(formatargs); \ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Type %c: integer overflow in format string", code); \ @@ -210,7 +209,6 @@ PHP_FUNCTION(pack) case 'J': case 'P': #if SIZEOF_ZEND_LONG < 8 - efree(argv); efree(formatcodes); efree(formatargs); php_error_docref(NULL TSRMLS_CC, E_WARNING, "64-bit format codes are not available for 32-bit versions of PHP");