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

Deprecated: Use of "self" in callables is deprecated in %s on line %d
EHLO

Deprecated: Use of "parent" in callables is deprecated in %s on line %d
EHLO