ID: 43958
Updated by: dmitry@php.net
Reported By: sv4php at fmethod dot com
-Status: Open
+Status: Closed
Bug Type: Scripting Engine problem
Operating System: Windows XP
PHP Version: 5.2.5
-Assigned To:
+Assigned To: dmitry
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2008-02-02 08:37:48] sv4php at fmethod dot com
'Exactly why it shouldn't print the class in which this happens?'
Four solid reasons:
1. Because running a method in the class is not the same as defining a
method for the class.
2. Replace 'include $p' with 'file_get_contents($p)' above, it does NOT
print the class (and it shouldn't).
3. If you have html_errors on, it prints a link that directs you to the
manual for method "include" in class "MyClass", which doesn't exist.
4. For us wild experimenters, makes re-routing errors in error handlers
less trivial, since the output is wrong...
------------------------------------------------------------------------
[2008-02-01 22:32:29] jani@php.net
Exactly why it shouldn't print the class in which this happens?
------------------------------------------------------------------------
[2008-01-31 00:49:31] felipe@php.net
My suggestion:
http://ecl.zoone.com.br/etc/patches/bug43958.diff
------------------------------------------------------------------------
[2008-01-29 11:30:43] kissifrot at gmail dot com
Reproduces with PHP 5.2.5 on Windows Vista too
PHP Version 5.2.5; Windows NT 6.0 build 6000; Zend Engine v2.2.0,
Copyright (c) 1998-2007 Zend Technologies
This happens with require function too
------------------------------------------------------------------------
[2008-01-29 08:50:45] jck_true at hotmail dot com
PHP Version 5.2.3
Build date: May 31 2007 09:36:39
Windows XP Profesional SP2
Reproduced
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/43958--
Edit this bug report at http://bugs.php.net/?id=43958&edit=1