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