Req #47432 [Fbk->NoF]: Error message for built-in override is very non-obvious
| From: | php-bugs at lists dot php dot net | Date: | Tue, 30 Dec 2014 10:41:31 +0000 |
| Subject: | Req #47432 [Fbk->NoF]: Error message for built-in override is very non-obvious | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-189383@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=47432&edit=1
ID: 47432
Updated by: php-bugs@lists.php.net
Reported by: spam at paulisageek dot com
Summary: Error message for built-in override is very
non-obvious
-Status: Feedback
+Status: No Feedback
Type: Feature/Change Request
Package: Scripting Engine problem
Operating System: *
PHP Version: *
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2014-07-13 22:55:17] yohgaki@php.net
This applies to built in and module functions also.
This bug is reported for 5.2 and we have namespace now. Is this needed? Distinguishing between built
in and user defined class does not give us any benefits. Redefinition is redefinition anyway.
------------------------------------------------------------------------
[2009-02-18 02:11:51] spam at paulisageek dot com
Description:
------------
If you have a c extension defining certain classes, then defining the same class in user land gives
the message :
Fatal error: Cannot redeclare class *classname* in *file* on line *linenum*
This is quite confusing, since most people will know to look through all their user land scripts for
the redefinition, and few will actually look at their installed extensions to find conflicts.
I recommend changing the error message to:
Fatal error: Cannot redeclare built-in class *classname* in *file* on line *linenum*
Reproduce code:
---------------
<?php
class Exception {
}
?>
Expected result:
----------------
Fatal error: Cannot redeclare built-in class *classname* in *file* on line *linenum*
Actual result:
--------------
Fatal error: Cannot redeclare class *classname* in *file* on line *linenum*
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=47432&edit=1