objects_028.phpt 303 B

12345678910111213141516171819202122232425
  1. --TEST--
  2. Testing 'static::' and 'parent::' in calls
  3. --FILE--
  4. <?php
  5. class bar {
  6. public function __call($a, $b) {
  7. print "hello\n";
  8. }
  9. }
  10. class foo extends bar {
  11. public function __construct() {
  12. static::bar();
  13. parent::bar();
  14. }
  15. }
  16. new foo;
  17. ?>
  18. --EXPECT--
  19. hello
  20. hello