mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
20 lines
307 B
PHP
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
|