ID: 43958 Comment by: jck_true at hotmail dot com Reported By: sv4php at fmethod dot com Status: Open Bug Type: *General Issues Operating System: Windows XP PHP Version: 5.2.5 New Comment:
PHP Version 5.2.3 Build date: May 31 2007 09:36:39 Windows XP Profesional SP2 Reproduced Previous Comments: ------------------------------------------------------------------------ [2008-01-29 08:18:42] sv4php at fmethod dot com Hi, I reproduced this on a 5.3 nightly just now (on XP), on 5.2.5 (on XP), and here's a live link to a 5.2.1 (on Linux, CentOS): http://www.fmethod.com/include_fail.php This is the same exact example, but I added phpversion() call. Note for the archives: I'll remove this link in few days. ------------------------------------------------------------------------ [2008-01-29 07:54:56] [EMAIL PROTECTED] I can not reproduce this btw.... ------------------------------------------------------------------------ [2008-01-29 07:51:03] sv4php at fmethod dot com Hi Derick, no, it's 5.2.5 stable official Win32 binary build, 100% (just made sure again). PHP Version 5.2.5; Windows NT SV 5.1 build 2600; Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies Also I believe I tested this with earlier 5.x builds and it was like that again, but I'm lazy to check again. Let me know if I have to, I can do that. Also notice there's no namespace used or defined in the example (and the namespace is not "php", but my class name, which makes no sense to me). ------------------------------------------------------------------------ [2008-01-29 07:35:29] [EMAIL PROTECTED] Like due to namespaces... but that can only happen if you're running PHP 5.3. Did you fill in the wrong version? ------------------------------------------------------------------------ [2008-01-29 03:24:04] 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]: ... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43958&edit=1
