Bug #62599 [NoF->Csd]: Some SPL Exceptions do not display any backtrace / error message via mod_php5

From: Date: Sun, 07 Aug 2016 05:44:25 +0000
Subject: Bug #62599 [NoF->Csd]: Some SPL Exceptions do not display any backtrace / error message via mod_php5
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-203021@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62599&edit=1 ID: 62599 Updated by: requinix@php.net Reported by: peter at netkey dot at Summary: Some SPL Exceptions do not display any backtrace / error message via mod_php5 -Status: No Feedback +Status: Closed Type: Bug Package: SPL related Operating System: FreeBSD PHP Version: 5.4.4 -Assigned To: +Assigned To: requinix Block user comment: N Private report: N New Comment: Closing as per comment. Test script on 3v4l https://3v4l.org/ZepNU does not reproduce. Previous Comments: ------------------------------------------------------------------------ [2016-08-07 04:22:23] php-bugs at lists dot php dot net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. ------------------------------------------------------------------------ [2016-08-01 07:37:12] peter at netkey dot at Thanks for getting back to me. I can not reproduce the error on 5.4.14 on FreeBSD, have no 5.4.4 lying around any more and also no FreeBSD with PHP 7 and mod_php at the moment. But I guess the error was fixed somewhere between 5.4.4 and 5.4.14. I lost the password to edit this bug, so I'm using the comment function. ------------------------------------------------------------------------ [2016-07-30 19:54:46] kalle@php.net Could you please try with a recent version of PHP, e.g. 7, which had some major changes to the way exceptions are dealt with internally? ------------------------------------------------------------------------ [2012-07-18 13:14:27] peter at netkey dot at Description: ------------ When called via apache2 (mod_php5), some SPL exception do not display any information: BadFunctionCallException, InvalidArgumentException, OutOfBoundsException, RuntimeException and UnexpectedValueException. When called vi CLI the backtrace and exception message is displayed. All other SPL exceptions display the expected message / backtrace. PHP was installed via the ports system, before the upgrade form 5.3 to 5.4 the mentioned exceptions displayed message and backtrace. Test script: --------------- <?php throw new InvalidArgumentException('SDF'); ?> Expected result: ---------------- Fatal error: Uncaught exception 'InvalidArgumentException' with message 'SDF' in /path/to/script.php Actual result: -------------- Fatal error: in /path/to/script.php ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=62599&edit=1

« previous php.bugs (#203021) next »