#35932 [Opn->Bgs]: PDO constructor failing on Windows 2000

From: Date: Wed, 11 Jan 2006 19:07:33 +0000
Subject: #35932 [Opn->Bgs]: PDO constructor failing on Windows 2000
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-91778@lists.php.net to get a copy of this message
ID: 35932 User updated by: j dot gizmo at aon dot at Reported By: j dot gizmo at aon dot at -Status: Open +Status: Bogus Bug Type: PDO related Operating System: Windows 2000 PHP Version: 5.1.1 New Comment: I just checked the ini directives, and found out that zend.ze1_compatibility_mode was turned on. Turning it off caused the object to behave as expected. I am sorry for any inconvenience I have caused. Maybe the PDO object should throw a warning when it's cloned. Previous Comments: ------------------------------------------------------------------------ [2006-01-11 19:53:33] j dot gizmo at aon dot at I was trying to connect to SQLite version 3. I tried different strings for $dsn, including: "sqlite:test.db" "sqlite::memory:" I used only the drivers that came with PHP 5.1.1. ------------------------------------------------------------------------ [2006-01-11 17:11:46] dbs@php.net Changed summary to more accurately reflect bug report. ------------------------------------------------------------------------ [2006-01-11 17:07:28] dbs@php.net In addition to trying the latest release snapshot, please provide more information: What PDO driver are you using? What database (including version) are you connecting to? What is the value of $dsn that you are passing to the PDO constructor? ------------------------------------------------------------------------ [2006-01-08 17:13:36] tony2001@php.net Please try using this CVS snapshot: http://snaps.php.net/php5.1-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.1-win32-latest.zip ------------------------------------------------------------------------ [2006-01-08 17:00:56] j dot gizmo at aon dot at In fact, I just found out that according to the online documentation, the syntax used in the docs is in fact correct. However, the correct syntax does not work on PHP 5.1.1 on Win2K; so it is more a PDO related issue than documentation related. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/35932 -- Edit this bug report at http://bugs.php.net/?id=35932&edit=1

« previous php.bugs (#91778) next »