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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user