bug27669.phpt 351 B

1234567891011121314151617
  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. function hello() {
  7. echo "Hello World\n";
  8. }
  9. }
  10. $y[0] = 'hello';
  11. A::{$y[0]}();
  12. ?>
  13. ===DONE===
  14. --EXPECTF--
  15. Deprecated: Non-static method A::hello() should not be called statically in %s on line %d
  16. Hello World
  17. ===DONE===