1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/spl/tests/DirectoryIterator_uninitialized.phpt
2021-07-06 13:08:53 +02:00

20 lines
307 B
PHP

--TEST--
Using an uninitialized DirectoryIterator
--FILE--
<?php
class MyDirectoryIterator extends DirectoryIterator {
public function __construct() {}
}
$it = new MyDirectoryIterator;
try {
$it->key();
} catch (Error $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
Object not initialized