From 8e97019a69b8c5d247216b651763fdcd22b75edc Mon Sep 17 00:00:00 2001 From: Andrey Hristov Date: Mon, 9 May 2005 22:29:54 +0000 Subject: [PATCH] after throwing an warning bail out --- ext/mysqli/mysqli_api.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"); -- 2.50.1