#43958 [Opn]: class name added into the error message
| From: | jani@php.net | Date: | Sat, 02 Feb 2008 20:24:28 +0000 |
| Subject: | #43958 [Opn]: class name added into the error message | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-121910@lists.php.net to get a copy of this message | ||
ID: 43958
Updated by: jani@php.net
-Summary: Four reasons why it's a bug
Reported By: sv4php at fmethod dot com
Status: Open
Bug Type: *General Issues
Operating System: Windows XP
PHP Version: 5.2.5
New Comment:
Please don't change the summary again.
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