Skip to content

Commit

Permalink
Fixed bug #40935 (pdo_mysql does not raise an exception on empty
Browse files Browse the repository at this point in the history
fetchAll()).
  • Loading branch information
Ilia Alshanetsky committed Apr 15, 2007
1 parent 42429ca commit 2f3e330
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NEWS
Expand Up @@ -10,6 +10,8 @@ PHP NEWS
(Johannes)
- Fixed bug #41034 (json_encode() ignores null byte started keys in arrays).
(Ilia)
- Fixed bug #40935 (pdo_mysql does not raise an exception on empty
fetchAll()). (Ilia)
- Fixed bug #40861 (strtotime() doesn't handle double negative relative time
units correctly). (Derick)
- Fixed bug #40290 (strtotime() returns unexpected result with particular
Expand Down
1 change: 1 addition & 0 deletions ext/pdo_mysql/mysql_statement.c
Expand Up @@ -413,6 +413,7 @@ static int pdo_mysql_stmt_fetch(pdo_stmt_t *stmt,
#endif

if (!S->result) {
strcpy(stmt->error_code, "HY000");
return 0;
}
if ((S->current_data = mysql_fetch_row(S->result)) == NULL) {
Expand Down

0 comments on commit 2f3e330

Please sign in to comment.