1--TEST--
2Using an uninitialized DirectoryIterator
3--FILE--
4<?php
5
6class MyDirectoryIterator extends DirectoryIterator {
7    public function __construct() {}
8}
9
10$it = new MyDirectoryIterator;
11try {
12    $it->key();
13} catch (Error $e) {
14    echo $e->getMessage(), "\n";
15}
16
17?>
18--EXPECT--
19Object not initialized
20