#34756 [NEW]: PDOExceptions aren't derived from Exception which will cause a Fatal error
| From: | spheroid@php.net | Date: | Thu, 06 Oct 2005 11:59:10 +0000 |
| Subject: | #34756 [NEW]: PDOExceptions aren't derived from Exception which will cause a Fatal error | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-86097@lists.php.net to get a copy of this message | ||
From: spheroid@php.net
Operating system: Mac OS X 10.4
PHP version: 5CVS-2005-10-06 (CVS)
PHP Bug Type: PDO related
Bug description: PDOExceptions aren't derived from Exception which will cause a Fatal error
Description:
------------
The summary says it all. I upgraded to RC2-dev and noticed that if
something goes wrong and PDO::ERRMODE_EXCEPTION is set I get a Fatal
error.
Reproduce code:
---------------
<?php
$pdo = New PDO(...);
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$pdo->query("SELECT FROM");
?>
Expected result:
----------------
Exception thrown as usual.
Actual result:
--------------
PHP Fatal error: Exceptions must be valid objects derived from the
Exception base class in ...
--
Edit bug report at http://bugs.php.net/?id=34756&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34756&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34756&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34756&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34756&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34756&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34756&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34756&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34756&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34756&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34756&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34756&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34756&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34756&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34756&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34756&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34756&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34756&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34756&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34756&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34756&r=mysqlcfg