|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-07-13 16:16 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Type: Feature/Change Request
+Type: Bug
-Assigned To:
+Assigned To: cmb
[2018-07-13 16:16 UTC] cmb@php.net
[2018-08-26 17:00 UTC] cmb@php.net
-Status: Feedback
+Status: No Feedback
[2018-08-26 17:00 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 12:00:01 2025 UTC |
Description: ------------ I noticed in php 5.6.30 that all thrown Exception are output to log_error. The only way i found to disable Output/logging this Exception, is to disable log_errors. I expected, only uncatched Exception are outputed with a backtrace. This makes using exception as internal Error handling not very usable. If log_error is disabled - no uncatched error is shown. If enabled... php commandline output exception , which are handled in the code by an try-Catch are logged. If log_error is redirected to an logfile - i think the logfile is spammed with unnecessary Errors. Perhaps there should be an option, to only protocol unhandled Exceptions. I found no documentation of this behavior. Package: php5 Version: 5.6.30+dfsg-0+deb8u1 php -v PHP 5.6.30-0+deb8u1 (cli) (built: Feb 8 2017 08:50:21) UPDATE: if xdebug extension is disabled - output disapears. Make this sense ? Test script: --------------- <?php try { throw new ErrorException("a"); } catch (Exception $ex) { echo "catched and handle Error"; } Expected result: ---------------- catched Actual result: -------------- PHP ErrorException: a in test.php on line 7 PHP Stack trace: PHP 1. {main}() test.php:0 catched