diff options
| author | Dmitry Stogov <dmitry@zend.com> | 2014-10-15 12:38:04 +0400 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@zend.com> | 2014-10-15 12:38:04 +0400 |
| commit | 52b93004d070ff59a1ed6dcd91c8b08935fc1c04 (patch) | |
| tree | ad52723275fb58862d5faffacdd25875039eef90 | |
| parent | 01d17228dc62ea30b7ad25835f049ccd1998b5f2 (diff) | |
| download | php-git-52b93004d070ff59a1ed6dcd91c8b08935fc1c04.tar.gz | |
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.c | 2 |
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"); |
