]> granicus.if.org Git - php/commitdiff
MFB: Fixed bug #44171 (Invalid FETCH_COLUMN index does not raise an error)
authorIlia Alshanetsky <iliaa@php.net>
Wed, 20 Feb 2008 03:12:16 +0000 (03:12 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 20 Feb 2008 03:12:16 +0000 (03:12 +0000)
NEWS
ext/pdo/pdo_stmt.c

diff --git a/NEWS b/NEWS
index 16a8631a3632f6a4fd13c9090642f3741713d3b0..b720bf12f7bbcd2aa1d17227c83daa85111d1202 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,7 @@ PHP                                                                        NEWS
   which to group by data is specified. (Ilia)
 - Upgraded PCRE to version 7.6 (Nuno)
 
+- Fixed bug #44171 (Invalid FETCH_COLUMN index does not raise an error). (Ilia)
 - Fixed Bug #44159 (Crash: $pdo->setAttribute(PDO::STATEMENT_ATTR_CLASS, NULL)).
   (Felipe)
 - Fixed bug #44069 (Huge memory usage with concatenation using . instead of
index 763360fa928ffa7470c0ce2f18852f47d928964b..eac65790cf36c028bfbd88c98b923a137478bab6 100755 (executable)
@@ -965,6 +965,8 @@ static int do_fetch(pdo_stmt_t *stmt, int do_bind, zval *return_value,
                                        } else {
                                                break;
                                        }
+                               } else {
+                                       pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "Invalid column index" TSRMLS_CC);
                                }
                                return 0;