mirror of
https://github.com/php/php-src.git
synced 2024-11-28 12:26:37 +08:00
22 lines
425 B
PHP
22 lines
425 B
PHP
--TEST--
|
|
Bug #37138 (__autoload tries to load callback'ed self and parent)
|
|
--FILE--
|
|
<?php
|
|
function __autoload ($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 ();
|
|
?>
|
|
--EXPECT--
|
|
EHLO
|
|
EHLO
|
|
EHLO
|
|
|