1
0
mirror of https://github.com/php/php-src.git synced 2026-04-02 05:32:28 +02:00

Fixed ext/standard/tests/strings/pack64_32.phpt failure (In PHP7, we must not free array of arguments recieved using "+")

This commit is contained in:
Dmitry Stogov
2014-10-15 12:38:04 +04:00
parent 01d17228dc
commit 52b93004d0

View File

@@ -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");