Bug #62685 [Opn->Csd]: Wrong return datatype in PDO::inTransaction()
| From: | laruence@php.net | Date: | Thu, 02 Aug 2012 04:50:16 +0000 |
| Subject: | Bug #62685 [Opn->Csd]: Wrong return datatype in PDO::inTransaction() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-172380@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62685&edit=1
ID: 62685
Updated by: laruence@php.net
Reported by: bgrauer at a2er dot ch
Summary: Wrong return datatype in PDO::inTransaction()
-Status: Open
+Status: Closed
Type: Bug
Package: PDO related
Operating System: Windows 7
PHP Version: 5.3.15
-Assigned To:
+Assigned To: laruence
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2012-08-02 04:50:05] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=cd896d69d90c70fd13efec315fd8b1f6647497b9
Log: Fixed bug #62685 (Wrong return datatype in PDO::inTransaction())
------------------------------------------------------------------------
[2012-07-28 20:35:04] bgrauer at a2er dot ch
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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62685&edit=1