diff options
author | Stanislav Malyshev <stas@php.net> | 2020-08-02 23:56:37 -0700 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2020-08-02 23:56:37 -0700 |
commit | 5b29af5c781980ea48320c612aa38d67bc737e90 (patch) | |
tree | 06e52098ac6b794f9a492f75bcd92982d144ad1f /ext/phar/tests | |
parent | 1e0bc6e30f9fb327cd06383c8290a8afab1e484d (diff) | |
parent | ff577b04c0d250473a0ef46f8e332960fec3ca2c (diff) | |
download | php-git-5b29af5c781980ea48320c612aa38d67bc737e90.tar.gz |
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
Fix #79877: getimagesize function silently truncates after a null byte
Fix #79797: Use of freed hash key in the phar_parse_zipfile function
Diffstat (limited to 'ext/phar/tests')
-rw-r--r-- | ext/phar/tests/bug79797.phar | bin | 0 -> 274 bytes | |||
-rw-r--r-- | ext/phar/tests/bug79797.phpt | 14 |
2 files changed, 14 insertions, 0 deletions
diff --git a/ext/phar/tests/bug79797.phar b/ext/phar/tests/bug79797.phar Binary files differnew file mode 100644 index 0000000000..21d43d9eeb --- /dev/null +++ b/ext/phar/tests/bug79797.phar diff --git a/ext/phar/tests/bug79797.phpt b/ext/phar/tests/bug79797.phpt new file mode 100644 index 0000000000..761e5379e0 --- /dev/null +++ b/ext/phar/tests/bug79797.phpt @@ -0,0 +1,14 @@ +--TEST-- +Bug #79797 (Use of freed hash key in the phar_parse_zipfile function) +--SKIPIF-- +<?php +if (!extension_loaded('phar')) die('skip phar extension not available'); +?> +--INI-- +phar.cache_list={PWD}/bug79797.phar +--FILE-- +<?php +echo "done\n"; +?> +--EXPECT-- +done |