Bug #62419 [NEW]: RuntimeException throws fatal error if passing a previous exception to the ctor
| From: | bugs dot php at mohiva dot com | Date: | Tue, 26 Jun 2012 11:26:52 +0000 |
| Subject: | Bug #62419 [NEW]: RuntimeException throws fatal error if passing a previous exception to the ctor | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-171532@lists.php.net to get a copy of this message | ||
From: bugs dot php at mohiva dot com
Operating system: Gentoo Linux
PHP version: 5.4.4
Package: SPL related
Bug Type: Bug
Bug description:RuntimeException throws fatal error if passing a previous exception to the ctor
Description:
------------
If you pass a previous exception to the constructor of the RuntimeException
class, then PHP throws a fatal error without an error message. I have
tested those exceptions which are derived from RuntimeException, and they
all work fine. The same counts for the base Exception class.
Test script:
---------------
<?php
throw new RuntimeException("Exception message", 0, new Exception());
Expected result:
----------------
Fatal error: Uncaught exception 'RuntimeException' ... on line 3
Actual result:
--------------
Fatal error: in exception.php on line 3
--
Edit bug report at https://bugs.php.net/bug.php?id=62419&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62419&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62419&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62419&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=62419&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62419&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=62419&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=62419&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=62419&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=62419&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=62419&r=support
Expected behavior: https://bugs.php.net/fix.php?id=62419&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=62419&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=62419&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=62419&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62419&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=62419&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=62419&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=62419&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=62419&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=62419&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=62419&r=mysqlcfg