Bug #64035 [Fbk->NoF]: In constructing \PDO an empty Fatal Error appears
| From: | php-bugs at lists dot php dot net | Date: | Tue, 15 Oct 2013 11:54:35 +0000 |
| Subject: | Bug #64035 [Fbk->NoF]: In constructing \PDO an empty Fatal Error appears | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-182217@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64035&edit=1
ID: 64035
Updated by: php-bugs@lists.php.net
Reported by: lionishy at gmail dot com
Summary: In constructing \PDO an empty Fatal Error appears
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: PDO related
Operating System: Windows 8
PHP Version: 5.4.11
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2013-08-20 12:54:48] mike@php.net
Please try using this snapshot:
http://snaps.php.net/php5.4-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Cannot reproduce.
------------------------------------------------------------------------
[2013-01-21 11:14:08] lionishy at gmail dot com
Description:
------------
When I construct an object I expect an exception to be thrown when there's any
problem. Still, on Windows 8 I get the Fatal Error with no message, while
expecting Fatal Error: Uncaught Exception. Moreover, if \PDOException is caught
and any other type exception is thrown, normal Fatal Error: Uncaught Exception
<bla bla bla> appears.
Test script:
---------------
<?php
/**
* an empty Fatal Error appears
*/
$pdo = new \PDO('mysql:host=localhost;dbname=test','user','password');
/**
* an expected Fatal Error Uncaught Exception apperas
*/
try {
$pso = new
\PDO('mysql:host=localhost;dbname=test','user','password');
} catch(\PDOException $ex) {
throw new Exception('\PDO Exception\'s been caught!');
}
/**
* an empty Fatal Error appears again
*/
try {
$pso = new
\PDO('mysql:host=localhost;dbname=test','user','password');
} catch(\PDOException $ex) {
throw new Exception($ex->getMessage());
}
Expected result:
----------------
Fatal Error: Uncaught Exception '\PDOException' with message '<message goes
here>'
in test.php on line 5
Actual result:
--------------
Fatal Error: in test.php on line 5
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64035&edit=1