|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
40 - 5 = ?
Subscribe to this entry?

 [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-2023 The PHP Group
All rights reserved.
Last updated: Mon Dec 04 04:01:27 2023 UTC