bug27669.phpt 278 B

1234567891011121314
  1. --TEST--
  2. Bug #27669 (PHP 5 didn't support all possibilities for calling static methods dynamically)
  3. --FILE--
  4. <?php
  5. class A {
  6. static function hello() {
  7. echo "Hello World\n";
  8. }
  9. }
  10. $y[0] = 'hello';
  11. A::{$y[0]}();
  12. ?>
  13. --EXPECT--
  14. Hello World