|  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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Jun 14 21:01:30 2024 UTC