mirror of
https://github.com/php/php-src.git
synced 2024-12-17 22:09:12 +08:00
18 lines
361 B
Plaintext
18 lines
361 B
Plaintext
|
--TEST--
|
||
|
Bug #53347 Segfault accessing static method
|
||
|
--FILE--
|
||
|
<?php class ezcConsoleOutput
|
||
|
{
|
||
|
protected static $color = array( 'gray' => 30 );
|
||
|
|
||
|
public static function isValidFormatCode( $type, $key )
|
||
|
{
|
||
|
return isset( self::${$type}[$key] );
|
||
|
}
|
||
|
}
|
||
|
|
||
|
var_dump( ezcConsoleOutput::isValidFormatCode( 'color', 'gray' ) );
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
bool(true)
|