#33310 [Fbk->Opn]: PDO/MySQL Driver takes MySQL in infinitive loop
| From: | martin dot stricker at rz dot hu-berlin dot de | Date: | Sat, 11 Jun 2005 15:11:02 +0000 |
| Subject: | #33310 [Fbk->Opn]: PDO/MySQL Driver takes MySQL in infinitive loop | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-80163@lists.php.net to get a copy of this message | ||
ID: 33310
User updated by: martin dot stricker at rz dot hu-berlin dot de
Reported By: martin dot stricker at rz dot hu-berlin dot de
-Status: Feedback
+Status: Open
Bug Type: PDO related
Operating System: OS X 10.4.1
PHP Version: 5CVS-2005-06-11 (dev)
New Comment:
Yes, I can confirm this fix for OS X 10.4.1 with snapshot 20050611-1230
Previous Comments:
------------------------------------------------------------------------
[2005-06-11 16:17:36] wez@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
This was fixed in CVS last night; try a snapshot.
------------------------------------------------------------------------
[2005-06-11 14:25:13] martin dot stricker at rz dot hu-berlin dot de
Description:
------------
This bug concerns 5.1beta1 / Apache 1.3 / MySQL 4.0.12
When using the MySQL-Driver for a new PDO-Object, the webserver (Apache
1.3) stalls. The MySQL-Log:
4 Query SET AUTOCOMMIT=1
and then in an infinite loop:
4 Query ROLLBACK
4 Query ROLLBACK
...
the MySQL-log filled quickly with that last line (about 12MB in 30
seconds). Server had to be killed.
Additionally, phpinfo() tells: "PDO Driver for MySQL 3.x Client
Libraries", instead of expected 4.x
Reproduce code:
---------------
$dsn = "mysql:host=localhost;dbname=xxxx";
$user = "xxxx";
$pass = "xxxx";
try {
$p =& new PDO($dsn,$user,$pass);
} catch(PDOException $e) {
echo $e->getMessage() . "\n";
}
Expected result:
----------------
PDO-Connection to MySQL
Actual result:
--------------
See above.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33310&edit=1