summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2005-05-09 22:29:54 +0000
committerAndrey Hristov <andrey@php.net>2005-05-09 22:29:54 +0000
commit8e97019a69b8c5d247216b651763fdcd22b75edc (patch)
treea0928b8484bebf7611c8e480444424e9d15f48e8
parentb4464a2d6a1a1fe478c40963c7b9769ca696e899 (diff)
downloadphp-git-8e97019a69b8c5d247216b651763fdcd22b75edc.tar.gz
after throwing an warning bail out
-rw-r--r--ext/mysqli/mysqli_api.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/mysqli/mysqli_api.c b/ext/mysqli/mysqli_api.c
index 42595223ee..c62b1da82b 100644
--- a/ext/mysqli/mysqli_api.c
+++ b/ext/mysqli/mysqli_api.c
@@ -1521,7 +1521,8 @@ PHP_FUNCTION(mysqli_stmt_data_seek)
return;
}
if (offset < 0) {
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "Offset must be positive");
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Offset must be positive");
+ RETURN_FALSE;
}
MYSQLI_FETCH_RESOURCE(stmt, MY_STMT *, &mysql_stmt, "mysqli_stmt");