1
0
mirror of https://github.com/php/php-src.git synced 2026-03-30 12:13:02 +02:00

Merge branch 'PHP-8.1' into PHP-8.2

* PHP-8.1:
  Fix new bug81726.phpt for PHP 8.0
This commit is contained in:
Christoph M. Becker
2022-09-27 18:32:09 +02:00

View File

@@ -1,14 +1,12 @@
--TEST--
Bug #81726 (phar wrapper: DOS when using quine gzip file)
--SKIPIF--
<?php
if (!extension_loaded("phar")) die("skip phar extension not available");
if (!extension_loaded("zlib")) die("skip zlib extension not available");
?>
--EXTENSIONS--
phar
zlib
--FILE--
<?php
var_dump(fopen("phar://" . __DIR__ . "/bug81726.gz", "r"));
?>
--EXPECTF--
Warning: fopen(phar://%s): failed to open stream: unable to decompress gzipped phar archive "%s" in %s on line %d
Warning: fopen(phar://%s): Failed to open stream: unable to decompress gzipped phar archive "%s" in %s on line %d
bool(false)