class name added into the error message
| Bug #43958 | class name added into the error message | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2008-01-29 03:24 UTC | Modified: | 2008-09-02 09:46 UTC |
|
||||||||||
| From: | sv4php at fmethod dot com | Assigned: | dmitry (profile) | |||||||||||
| Status: | Closed | Package: | Scripting Engine problem | |||||||||||
| PHP Version: | 5.2.5 | OS: | Windows XP | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2008-01-29 03:24 UTC] sv4php at fmethod dot com
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]: ...
Patches
Pull Requests
History
AllCommentsChangesGit/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 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-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