diff --git a/ext/mysqlnd/mysqlnd_ps.c b/ext/mysqlnd/mysqlnd_ps.c index 87d0ba738a67..5b81eb8e211e 100644 --- a/ext/mysqlnd/mysqlnd_ps.c +++ b/ext/mysqlnd/mysqlnd_ps.c @@ -764,7 +764,7 @@ mysqlnd_fetch_stmt_row_cursor(MYSQLND_RES * result, zval **row_ptr, const unsign DBG_ENTER("mysqlnd_fetch_stmt_row_cursor"); - if (!stmt || !stmt->conn || !result || !result->conn || !result->unbuf) { + if (!stmt->conn || !result->conn) { DBG_ERR("no statement"); DBG_RETURN(FAIL); }