1--TEST-- 2Testing 'new static;' calling parent method 3--FILE-- 4<?php 5 6class bar { 7 public function show() { 8 var_dump(new static); 9 } 10} 11 12class foo extends bar { 13 public function test() { 14 parent::show(); 15 } 16} 17 18$foo = new foo; 19$foo->test(); 20 21call_user_func(array($foo, 'test')); 22 23?> 24--EXPECTF-- 25object(foo)#%d (0) { 26} 27object(foo)#%d (0) { 28} 29