Skip to content

Commit cd896d6

Browse files
committed
Fixed bug #62685 (Wrong return datatype in PDO::inTransaction())
1 parent 433089c commit cd896d6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

NEWS

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ PHP NEWS
1313
(r.hampartsumyan@gmail.com, Laruence)
1414

1515
- DateTime:
16-
. Fixed Bug #62500 (Segfault in DateInterval class when extended). (Laruence)
16+
. Fixed bug #62500 (Segfault in DateInterval class when extended). (Laruence)
17+
18+
- PDO:
19+
. Fixed bug #62685 (Wrong return datatype in PDO::inTransaction()). (Laruence)
1720

1821
- Reflection:
1922
. Fixed bug #62715 (ReflectionParameter::isDefaultValueAvailable() wrong

ext/pdo/pdo_dbh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ static PHP_METHOD(PDO, inTransaction)
694694
}
695695
PDO_CONSTRUCT_CHECK;
696696

697-
RETURN_LONG(dbh->in_txn);
697+
RETURN_BOOL(dbh->in_txn);
698698
}
699699
/* }}} */
700700

0 commit comments

Comments
 (0)