bug53347.phpt 361 B

1234567891011121314151617
  1. --TEST--
  2. Bug #53347 Segfault accessing static method
  3. --FILE--
  4. <?php class ezcConsoleOutput
  5. {
  6. protected static $color = array( 'gray' => 30 );
  7. public static function isValidFormatCode( $type, $key )
  8. {
  9. return isset( self::${$type}[$key] );
  10. }
  11. }
  12. var_dump( ezcConsoleOutput::isValidFormatCode( 'color', 'gray' ) );
  13. ?>
  14. --EXPECT--
  15. bool(true)