summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-10-15 12:09:14 +0200
committerAnatol Belski <ab@php.net>2014-10-15 12:09:14 +0200
commitd6d856b6db68b152a9cf72d16324a10180735bee (patch)
tree00c23c2b2581a0c2151e566e16ce8756c0207d29
parent98a8481e5e6bb111e8bb17af929f6fdbda308cb9 (diff)
parent52b93004d070ff59a1ed6dcd91c8b08935fc1c04 (diff)
downloadphp-git-d6d856b6db68b152a9cf72d16324a10180735bee.tar.gz
Merge remote-tracking branch 'origin/master' into native-tls
* origin/master: Fixed ext/standard/tests/strings/pack64_32.phpt failure (In PHP7, we must not free array of arguments recieved using "+")
-rw-r--r--ext/standard/pack.c2
1 files changed, 0 insertions, 2 deletions
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");