Home » Database » DB » Bug #4706
DB::connect halts output
Details
| Submitted | 2005-06-29 17:36 UTC |
|---|---|
| From | blair dot trosper at gmail dot com |
| Assigned | danielc |
| Status | Bogus |
| Package | DB |
| PHP Version | 4.3.10 |
| OS | Windows 2003 |
| Roadmaps | (Not assigned) |
Comments
[2005-06-29 17:36 UTC] blair dot trosper at gmail dot com
Description:
------------
Using a correct DSN with DB::connect causes the output to truncate and go no further. PEAR reports no errors, and with error reporting on, PHP also recognizes nothing. The output just stops.
If I use an incorrect DSN, I *do* get an error message. Like I said -- if I use a correct DSN, the PHP file just ceases to be processed. Here is the code I'm using (with obfuscated user/pass/db)...the only thing it says it "Starting" then "Instantiated"...then it just dies with no explanation.
Reproduce code:
---------------
Starting.
<?
require("DB.php");
$db = DB::connect("mysql://user:pass@localhost/db");
if (PEAR::isError($db)) {
print("Errored out.");
die($db->getMessage());
} else {
print("Success!");
}
$db->disconnect();
?>
<p>
Finished.
Expected result:
----------------
A message saying "Success" then "Finished."
Actual result:
--------------
I only see "Starting.", nothing further. Not even the error from PEAR::isError()...the script doesn't get past the connect method.