From: peter at netkey dot at Operating system: FreeBSD PHP version: 5.4.4 Package: SPL related Bug Type: Bug Bug description:Some SPL Exceptions do not display any backtrace / error message via mod_php5
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 bug report at https://bugs.php.net/bug.php?id=62599&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62599&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62599&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62599&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=62599&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62599&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=62599&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=62599&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=62599&r=needscript Try newer version: https://bugs.php.net/fix.php?id=62599&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=62599&r=support Expected behavior: https://bugs.php.net/fix.php?id=62599&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=62599&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=62599&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=62599&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62599&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=62599&r=dst IIS Stability: https://bugs.php.net/fix.php?id=62599&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=62599&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=62599&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=62599&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=62599&r=mysqlcfg