1--TEST-- 2Bug #37138 (autoloader tries to load callback'ed self and parent) 3--FILE-- 4<?php 5spl_autoload_register(function ($CN) { var_dump ($CN); }); 6class st { 7 public static function e () {echo ("EHLO\n");} 8 public static function e2 () {call_user_func (array ('self', 'e'));} 9} 10class stch extends st { 11 public static function g () {call_user_func (array ('parent', 'e'));} 12} 13st::e (); 14st::e2 (); 15stch::g (); 16?> 17--EXPECTF-- 18EHLO 19 20Deprecated: Use of "self" in callables is deprecated in %s on line %d 21EHLO 22 23Deprecated: Use of "parent" in callables is deprecated in %s on line %d 24EHLO 25