mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
15 lines
288 B
PHP
15 lines
288 B
PHP
--TEST--
|
|
GlobIterator without constructor breaks count()
|
|
--FILE--
|
|
<?php
|
|
$rc = new ReflectionClass(GlobIterator::class);
|
|
$in = $rc->newInstanceWithoutConstructor();
|
|
try {
|
|
count($in);
|
|
} catch (Error $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
GlobIterator is not initialized
|