|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33083 Segmentation fault on recursive set_error_handler calls
Submitted: 2005-05-20 16:29 UTC Modified: 2005-05-20 16:51 UTC
Avg. Score:4.3 ± 0.5
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:3 (100.0%)
From: ron at nexweb dot ca Assigned:
Status: Wont fix Package: Unknown/Other Function
PHP Version: 5.0.4 OS: Linux 2.4.28
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: ron at nexweb dot ca
New email:
PHP Version: OS:


 [2005-05-20 16:29 UTC] ron at nexweb dot ca
PHP gives a Segmentation fault on execution of the code below...
The logic error is obvious but in application this may happen...

Reproduce code:
#!/usr/local/bin/php -c/usr/local/php/lib/php.ini
function err_handler($errno, $errstr, $errfile, $errline)
function createAnotherError()
	trigger_error("error 2");
	trigger_error("error 1");	

Expected result:
An error message maybe that tells recursivity or tells error happen in error handler...

Actual result:
Segmentation fault


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-20 16:51 UTC]
There is no protection against infinite resursion.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Jun 07 10:01:24 2020 UTC