"cannot be used in MYSQLI_USE_RESULT mode" sounds more correct than "cannot be used with MYSQLI_USE_RESULT"
Closes GH-6137.
if (mysqli_result_is_unbuffered(result)) {
if (getThis()) {
- zend_throw_error(NULL, "mysqli_result::data_seek() cannot be used with MYSQLI_USE_RESULT");
+ zend_throw_error(NULL, "mysqli_result::data_seek() cannot be used in MYSQLI_USE_RESULT mode");
} else {
- zend_throw_error(NULL, "mysqli_data_seek() cannot be used with MYSQLI_USE_RESULT");
+ zend_throw_error(NULL, "mysqli_data_seek() cannot be used in MYSQLI_USE_RESULT mode");
}
RETURN_THROWS();
}
MYSQLI_FETCH_RESOURCE(result, MYSQL_RES *, mysql_result, "mysqli_result", MYSQLI_STATUS_VALID);
if (mysqli_result_is_unbuffered_and_not_everything_is_fetched(result)) {
- zend_throw_error(NULL, "mysqli_num_rows() cannot be used with MYSQLI_USE_RESULT");
+ zend_throw_error(NULL, "mysqli_num_rows() cannot be used in MYSQLI_USE_RESULT mode");
RETURN_THROWS();
}
?>
--EXPECT--
bool(true)
-mysqli_num_rows() cannot be used with MYSQLI_USE_RESULT
+mysqli_num_rows() cannot be used in MYSQLI_USE_RESULT mode
array(1) {
[1]=>
string(1) "1"
}
-mysqli_num_rows() cannot be used with MYSQLI_USE_RESULT
+mysqli_num_rows() cannot be used in MYSQLI_USE_RESULT mode
NULL
int(1)
done
?>
--EXPECT--
mysqli_data_seek(): Argument #2 ($offset) must be greater than or equal to 0
-mysqli_data_seek() cannot be used with MYSQLI_USE_RESULT
+mysqli_data_seek() cannot be used in MYSQLI_USE_RESULT mode
mysqli_result object is already closed
done!
--EXPECT--
mysqli_result object is already closed
mysqli_result::data_seek(): Argument #1 ($offset) must be greater than or equal to 0
-mysqli_result::data_seek() cannot be used with MYSQLI_USE_RESULT
+mysqli_result::data_seek() cannot be used in MYSQLI_USE_RESULT mode
mysqli_result object is already closed
done!
mysqli_result object is already closed
mysqli_result object is already closed
run_tests.php don't fool me with your 'ungreedy' expression '.+?'!
-mysqli_num_rows() cannot be used with MYSQLI_USE_RESULT
+mysqli_num_rows() cannot be used in MYSQLI_USE_RESULT mode
done!
require_once("clean_table.inc");
?>
--EXPECT--
-mysqli_data_seek() cannot be used with MYSQLI_USE_RESULT
+mysqli_data_seek() cannot be used in MYSQLI_USE_RESULT mode
mysqli object is already closed
done!