#define MYSQLND_OPT_INT_AND_YEAR_AS_INT 201
/* r->data should be always NULL, at least in recent libmysql versions, the status changes once data is read*/
-#define mysqli_result_is_unbuffered(r) (((r)->handle && (r)->handle->status == MYSQL_STATUS_USE_RESULT) || ((r)->data == NULL))
-#define mysqli_result_is_unbuffered_and_not_everything_is_fetched(r) (((r)->handle && (r)->handle->status == MYSQL_STATUS_USE_RESULT) || ((r)->data == NULL))
+#define mysqli_result_is_unbuffered(r) ((r)->handle && (r)->handle->status == MYSQL_STATUS_USE_RESULT && (r)->data == NULL)
+#define mysqli_result_is_unbuffered_and_not_everything_is_fetched(r) mysqli_result_is_unbuffered(r)
#define mysqli_server_status(c) (c)->server_status
#define mysqli_stmt_get_id(s) ((s)->stmt_id)
#define mysqli_stmt_warning_count(s) mysql_warning_count((s)->mysql)
require_once('skipif.inc');
require_once('skipifconnectfailure.inc');
require_once("connect.inc");
-if(!$IS_MYSQLND) die("skip This bug is for mysqlnd only");
?>
--FILE--
<?php