#34756 [Opn->Fbk]: PDOExceptions aren't derived from Exception which will cause a Fatal error

From: Date: Thu, 06 Oct 2005 12:17:44 +0000
Subject: #34756 [Opn->Fbk]: PDOExceptions aren't derived from Exception which will cause a Fatal error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-86100@lists.php.net to get a copy of this message
ID: 34756 Updated by: tony2001@php.net Reported By: spheroid@php.net -Status: Open +Status: Feedback Bug Type: PDO related Operating System: Mac OS X 10.4 PHP Version: 5CVS-2005-10-06 (CVS) New Comment: Can't reproduce. What was your ./configure line ? Previous Comments: ------------------------------------------------------------------------ [2005-10-06 13:59:09] spheroid@php.net 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 this bug report at http://bugs.php.net/?id=34756&edit=1

« previous php.bugs (#86100) next »