Bug #62599 [Com]: Some SPL Exceptions do not display any backtrace / error message via mod_php5
| From: | peter at netkey dot at | Date: | Mon, 01 Aug 2016 07:37:13 +0000 |
| Subject: | Bug #62599 [Com]: 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-202791@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
Comment by: peter at netkey dot at
Reported by: peter at netkey dot at
Summary: Some SPL Exceptions do not display any backtrace /
error message via mod_php5
Status: Feedback
Type: Bug
Package: SPL related
Operating System: FreeBSD
PHP Version: 5.4.4
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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