xref: /PHP-8.0/ext/phar/tests/bug60164.phpt (revision a555cc0b)
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--EXPECT--
18string(5) "a.php"
19string(5) "b.php"
20