|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-08-02 04:50 UTC] laruence@php.net
[2012-08-02 04:50 UTC] laruence@php.net
[2012-08-02 04:50 UTC] laruence@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: laruence
[2012-08-02 04:53 UTC] laruence@php.net
[2012-08-02 04:53 UTC] laruence@php.net
[2012-08-02 04:53 UTC] laruence@php.net
[2012-08-02 04:53 UTC] laruence@php.net
[2014-10-07 23:23 UTC] stas@php.net
[2014-10-07 23:23 UTC] stas@php.net
[2014-10-07 23:34 UTC] stas@php.net
[2014-10-07 23:34 UTC] stas@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 09:00:01 2025 UTC |
Description: ------------ PDO::inTransaction() returns integer instead of boolean values. MySQL Version: 5.5.25a Test script: --------------- $pdo = new \PDO('mysql:dbname=testdb;host=127.0.0.1', 'testuser', '...'); var_dump($pdo->inTransaction()); $pdo->beginTransaction(); var_dump($pdo->inTransaction()); $pdo->commit(); var_dump($pdo->inTransaction()); Expected result: ---------------- boolean false boolean true boolean false Actual result: -------------- int 0 int 1 int 0