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