Skip to content

Commit b1d38fd

Browse files
committed
Merge branch 'PHP-8.2' of github.com:php/php-src into PHP-8.2
2 parents f41eb54 + bb34bc4 commit b1d38fd

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)