|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-04-20 07:34 UTC] dmitry@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 13 08:00:02 2025 UTC |
Description: ------------ Ummm... Sorry if I missed this one as being already submitted. My __autoload logs the non-existing class calls, so... Maybe you could do something about it... Why should one load self or parent anyway? Reproduce code: --------------- 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 (); Expected result: ---------------- EHLO EHLO EHLO Actual result: -------------- EHLO string(4) "self" EHLO string(6) "parent" EHLO