Bug #62599 [Fbk->NoF]: Some SPL Exceptions do not display any backtrace / error message via mod_php5
| From: | php-bugs at lists dot php dot net | Date: | Sun, 07 Aug 2016 04:22:24 +0000 |
| Subject: | Bug #62599 [Fbk->NoF]: 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-203016@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: php-bugs@lists.php.net
Reported by: peter at netkey dot at
Summary: Some SPL Exceptions do not display any backtrace /
error message via mod_php5
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: SPL related
Operating System: FreeBSD
PHP Version: 5.4.4
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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