|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-05-20 16:51 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 05:00:01 2025 UTC |
Description: ------------ 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 <?php function err_handler($errno, $errstr, $errfile, $errline) { createAnotherError(); } function createAnotherError() { set_error_handler("err_handler"); trigger_error("error 2"); } set_error_handler("err_handler"); trigger_error("error 1"); ?> Expected result: ---------------- An error message maybe that tells recursivity or tells error happen in error handler... Actual result: -------------- Segmentation fault