|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-04-08 20:40 UTC] jani@php.net
-Package: Feature/Change Request
+Package: Scripting Engine problem
[2014-07-13 22:55 UTC] yohgaki@php.net
-Status: Open
+Status: Feedback
-PHP Version: 5.2.9RC2
+PHP Version: *
[2014-07-13 22:55 UTC] yohgaki@php.net
[2014-12-30 10:41 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 11:00:02 2025 UTC |
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*