1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 17:22:15 +01:00
Files
archived-php-src/ext/spl/tests/bug51374.phpt
2010-04-27 05:58:39 +00:00

20 lines
345 B
PHP

--TEST--
SPL: SplFileObject wrongly initializes objects
--FILE--
<?php
class Foo extends SplFileObject
{
public $bam = array();
}
$fileInfo = new SplFileInfo('php://temp');
$fileInfo->setFileClass('Foo');
$file = $fileInfo->openFile('r');
print var_dump($file->bam); // is null or UNKNOWN:0
?>
===DONE===
--EXPECT--
array(0) {
}
===DONE===