Bug #62599 [Opn->Fbk]: Some SPL Exceptions do not display any backtrace / error message via mod_php5
| From: | kalle@php.net | Date: | Sat, 30 Jul 2016 19:54:47 +0000 |
| Subject: | Bug #62599 [Opn->Fbk]: 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-202738@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: kalle@php.net
Reported by: peter at netkey dot at
Summary: Some SPL Exceptions do not display any backtrace /
error message via mod_php5
-Status: Open
+Status: Feedback
Type: Bug
Package: SPL related
Operating System: FreeBSD
PHP Version: 5.4.4
Block user comment: N
Private report: N
New Comment:
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?
Previous Comments:
------------------------------------------------------------------------
[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