Skip to content

Commit 4f79dbd

Browse files
committed
Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0: Fix new bug81726.phpt for PHP 8.0
2 parents 4552f62 + 1a3c9b0 commit 4f79dbd

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

ext/phar/tests/bug81726.phpt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
--TEST--
22
Bug #81726 (phar wrapper: DOS when using quine gzip file)
3-
--SKIPIF--
4-
<?php
5-
if (!extension_loaded("phar")) die("skip phar extension not available");
6-
if (!extension_loaded("zlib")) die("skip zlib extension not available");
7-
?>
3+
--EXTENSIONS--
4+
phar
5+
zlib
86
--FILE--
97
<?php
108
var_dump(fopen("phar://" . __DIR__ . "/bug81726.gz", "r"));
119
?>
1210
--EXPECTF--
13-
Warning: fopen(phar://%s): failed to open stream: unable to decompress gzipped phar archive "%s" in %s on line %d
11+
Warning: fopen(phar://%s): Failed to open stream: unable to decompress gzipped phar archive "%s" in %s on line %d
1412
bool(false)

0 commit comments

Comments
 (0)