]> granicus.if.org Git - php/commitdiff
Fixed bug #41215 (setAttribute return code reversed).
authorIlia Alshanetsky <iliaa@php.net>
Sun, 29 Apr 2007 14:47:34 +0000 (14:47 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 29 Apr 2007 14:47:34 +0000 (14:47 +0000)
NEWS
ext/pdo/pdo_dbh.c

diff --git a/NEWS b/NEWS
index 6b6f51bbc982b93eed521f0e89d2323e86cc53d9..1f93e12c0a19f1df0a05e7b421e93f5c15111e6b 100644 (file)
--- 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)
index cac979c73251f3a9b343d5856bb3182e11cc0bdc..6d4143e04c91c08b00a39cbb15b410fac2e66664 100755 (executable)
@@ -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;