|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21467 crash without any error
Submitted: 2003-01-06 11:34 UTC Modified: 2003-01-07 03:48 UTC
From: ceco at noxis dot net Assigned:
Status: Not a bug Package: Class/Object related
PHP Version: 4.3.0 OS: linux debian
Private report: No CVE-ID: None
 [2003-01-06 11:34 UTC] ceco at noxis dot net
when I try this

        class test {
                function test(){
                        echo 'b';
                function test($a){
                        echo 'a';


I minimized the problem, which I found with an old code using FastTemplate

nothing happens - no errors, no warning, no output - just sending headers and thats all

I am not sure if it is leagal code, but I'm sure it should get some error or warning message at least, or work of course

I installed it on apache web server, but the cli version is working the same way ( not working )

compiled the PHP with --enable-debug, and still no difference - no messages of any kind


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-06 11:37 UTC] ceco at noxis dot net
forgot to mention that the version it worked correctly is 4.1.2

(if can be defined correctly at all, i mean the script was working)
 [2003-01-06 16:24 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

I am not sure why you are not seeing an error, it could be due to error_reporting being set to 0 or php.ini directive indicate errors should not be shown.
The code you have does generate a fatal error, for your benefit I am including it here:
PHP Fatal error:  Cannot redeclare test() in c.php on line 6
php4/c.php(6) : Fatal error - Cannot redeclare test()

Fatal error: Cannot redeclare test() in c.php on line 6
 [2003-01-07 03:32 UTC] ceco at noxis dot net
I reported it because in php there is only one line containing error_reporting, and it is

error_reporting =       7
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Dec 05 14:01:27 2023 UTC