File manager - Edit - /opt/alt/tests/alt-php83-pecl-rar_4.2.0-3.el8/tests/115.phpt
Back
--TEST-- getIterator() (PHP 8+) --SKIPIF-- <?php if (!extension_loaded("rar")) die("skip"); if (PHP_VERSION_ID < 80000) print "skip for PHP 8"; ?> --FILE-- <?php $a = rar_open(dirname(__FILE__).'/linux_rar.rar'); $it = $a->getIterator(); var_dump($it); foreach ($it as $e) { echo $e->getName(), "\n"; } echo "Done\n"; ?> --EXPECT-- object(InternalIterator)#3 (0) { } plain.txt test file with whitespaces.txt Done
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings