|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-04-19 15:06 UTC] kfbombar at us dot ibm dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 17 20:00:01 2025 UTC |
Description: ------------ In PHP 5.2.0 I have seen issues when trying to set the PDO::ATTR_AUTOCOMMIT attribut via the connect. This issue was not apparent in 5.1.4. I have reproduced the same issue with the following PDO based extensions: - PDO_IBM - PDO_INFOMRIX - PDO_ODBC Thank you. Reproduce code: --------------- <?php $db = new PDO("ibm:db", "uname", "***", array(PDO::ATTR_AUTOCOMMIT => 0)); if ($db) print "Connection Established"; ?> Expected result: ---------------- Connection Established Actual result: -------------- Fatal error: Uncaught exception 'PDOException' with message 'The auto-commit mode cannot be changed for this driver' in repro.php:3 Stack trace: #0 repro.php(3): PDO->__construct('ibm:db', 'unam', '***', Array) #1 {main} thrown in repro.php on line 3