]> granicus.if.org Git - php/commitdiff
Fixed ext/standard/tests/strings/pack64_32.phpt failure (In PHP7, we must not free...
authorDmitry Stogov <dmitry@zend.com>
Wed, 15 Oct 2014 08:38:04 +0000 (12:38 +0400)
committerDmitry Stogov <dmitry@zend.com>
Wed, 15 Oct 2014 08:38:04 +0000 (12:38 +0400)
ext/standard/pack.c

index a95c226b97fd345c2f1535983cccc56131c8199f..07206c8b7ba1ba38ff5b471ac0ffb60cc520469c 100644 (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");