1--TEST-- 2Dynamic call for static methods 3--FILE-- 4<?php 5class A { 6 static function foo() { return 'foo'; } 7} 8 9$classname = 'A'; 10$wrongClassname = 'B'; 11 12echo $classname::foo()."\n"; 13echo $wrongClassname::foo()."\n"; 14?> 15===DONE=== 16--EXPECTF-- 17foo 18 19Fatal error: Uncaught Error: Class 'B' not found in %s043.php:%d 20Stack trace: 21#0 {main} 22 thrown in %s043.php on line %d 23