mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
22 lines
425 B
PHP
Executable File
22 lines
425 B
PHP
Executable File
--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
|
|
|