summaryrefslogtreecommitdiff
path: root/ext/phar/tests/bug60164.phpt
blob: 8fd5de51468794faefc9792a3e93944399f38e43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--TEST--
Phar: verify stub of specific length does not break __HALT_COMPILER(); scanning in php
--SKIPIF--
<?php
if (!extension_loaded("phar")) die("skip");
?>
--INI--
phar.require_hash=0
phar.readonly=0
--FILE--
<?php
$phar = __DIR__ . '/files/stuboflength1041.phar';
foreach (new RecursiveIteratorIterator(new Phar($phar, null, 'stuboflength1041.phar')) as $item) {
    var_dump($item->getFileName());
}
?>
===DONE===
--EXPECT--
string(5) "a.php"
string(5) "b.php"
===DONE===