|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56447 Error information is unable to be thrown.
Submitted: 2005-07-11 02:26 UTC Modified: 2005-07-11 08:52 UTC
From: noon at ms8 dot url dot com dot tw Assigned:
Status: Not a bug Package: PDO (PECL)
PHP Version: 5.0.3 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: noon at ms8 dot url dot com dot tw
New email:
PHP Version: OS:


 [2005-07-11 02:26 UTC] noon at ms8 dot url dot com dot tw
Scripts will terminate (immediately) when an error occured while accessing databases.

Reproduce code:
class xPDO
public static $pdo;
        public function connect ()
                $dsn = 'mssql:host=; dbname=mydb';
                $user = 'error_user';
                $password = 'error_passwd';
                try {
                $this->pdo = new PDO($dsn, $user, $password);
                } catch (PDOException $e) {
                   echo 'Connection failed: ' . $e->getMessage();
$a = new xPDO();

Expected result:
The statement is excuted normally and throws error information.

Actual result:
script crash


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-11 08:52 UTC]
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PEAR.

Please try a PHP 5.1 snapshot.
 [2005-07-11 08:52 UTC]
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Oct 26 08:01:22 2020 UTC