php-src/ext/reflection/tests/bug31651.phpt
Marcus Boerger e16bba12b1 - Prefix test names
- Add missing skipif
2006-03-12 12:38:25 +00:00

27 lines
383 B
PHP
Executable File

--TEST--
Reflection Bug #31651 (ReflectionClass::getDefaultProperties segfaults with arrays.)
--SKIPIF--
<?php extension_loaded('reflection') or die('skip'); ?>
--FILE--
<?php
class Test
{
public $a = array('a' => 1);
}
$ref = new ReflectionClass('Test');
print_r($ref->getDefaultProperties());
?>
--EXPECT--
Array
(
[a] => Array
(
[a] => 1
)
)