summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rwxr-xr-xext/pdo/pdo_dbh.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 6b6f51bbc9..1f93e12c0a 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? Apr 2007, PHP 5.2.3RC3
+- Fixed bug #41215 (setAttribute return code reversed). (Ilia)
26 Apr 2007, PHP 5.2.2RC2
- Added GMP_VERSION constant. (Tony)
diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c
index cac979c732..6d4143e04c 100755
--- a/ext/pdo/pdo_dbh.c
+++ b/ext/pdo/pdo_dbh.c
@@ -823,7 +823,7 @@ static PHP_METHOD(PDO, setAttribute)
PDO_CONSTRUCT_CHECK;
- if (pdo_dbh_attribute_set(dbh, attr, value TSRMLS_CC)) {
+ if (pdo_dbh_attribute_set(dbh, attr, value TSRMLS_CC) != FAILURE) {
RETURN_TRUE;
}
RETURN_FALSE;