xref: /PHP-7.4/ext/phar/tests/bug81726.phpt (revision 404e8bdb)
1--TEST--
2Bug #81726 (phar wrapper: DOS when using quine gzip file)
3--SKIPIF--
4<?php
5if (!extension_loaded("phar")) die("skip phar extension not available");
6if (!extension_loaded("zlib")) die("skip zlib extension not available");
7?>
8--FILE--
9<?php
10var_dump(fopen("phar://" . __DIR__ . "/bug81726.gz", "r"));
11?>
12--EXPECTF--
13Warning: fopen(phar://%s): failed to open stream: unable to decompress gzipped phar archive "%s" in %s on line %d
14bool(false)
15