Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* PHP-8.2: Fix new bug81726.phpt for PHP 8.0
- Loading branch information
Showing
1 changed file
with
4 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |