Edit report at https://bugs.php.net/bug.php?id=62685&edit=1

 ID:                 62685
 Updated by:         larue...@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] larue...@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

Reply via email to