|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-01-29 07:35 UTC] derick@php.net
[2008-01-29 07:51 UTC] sv4php at fmethod dot com
[2008-01-29 07:54 UTC] derick@php.net
[2008-01-29 08:18 UTC] sv4php at fmethod dot com
[2008-01-29 08:50 UTC] jck_true at hotmail dot com
[2008-01-29 11:30 UTC] kissifrot at gmail dot com
[2008-01-31 00:49 UTC] felipe@php.net
[2008-02-01 22:32 UTC] jani@php.net
[2008-02-02 08:37 UTC] sv4php at fmethod dot com
[2008-09-02 09:46 UTC] dmitry@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 28 04:00:01 2025 UTC |
Description: ------------ IMPORTANT: DON'T MARK THIS BOGUS (like 43894) BEFORE READING *CAREFULLY* THE DESCRIPTION AND EXPECTED RESULTS. Run the snippet. It should produce two warnings. But the include function is inexplicably prefixed with my class name. Reproduce code: --------------- class MyClass { static public function loadCode($p) { return include $p; } } MyClass::loadCode('file-which-does-not-exist-on-purpose.php'); Expected result: ---------------- Warning: include(file-which-does-not-exist-on-purpose.php) [function.include]: ... Warning: include() [function.include]: ... Actual result: -------------- Warning: MyClass::include(file-which-does-not-exist-on-purpose.php) [function.MyClass-include]: ... Warning: MyClass::include() [function.include]: ...