1
0
mirror of https://github.com/php/php-src.git synced 2026-04-18 05:21:02 +02:00
Files
archived-php-src/ext/reflection/tests/bug32981.phpt
Fabien Villepinte a555cc0b3d Clean DONE tags from tests
Remove most of the `===DONE===` tags and its variations.
Keep `===DONE===` if the test output otherwise becomes empty.

Closes GH-4872.
2019-11-07 21:31:47 +01:00

33 lines
500 B
PHP

--TEST--
Reflection Bug #32981 (ReflectionMethod::getStaticVariables() causes apache2.0.54 seg fault)
--FILE--
<?php
class TestClass
{
static function test()
{
static $enabled = true;
}
}
$class = new ReflectionClass('TestClass');
foreach ($class->getMethods() as $method)
{
var_dump($method->getName());
$arr_static_vars[] = $method->getStaticVariables();
}
var_dump($arr_static_vars);
?>
--EXPECT--
string(4) "test"
array(1) {
[0]=>
array(1) {
["enabled"]=>
bool(true)
}
}