We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89b3439 commit 418a954Copy full SHA for 418a954
1 file changed
ext/mysqli/mysqli_api.c
@@ -1489,7 +1489,11 @@ PHP_FUNCTION(mysqli_stmt_data_seek)
1489
MYSQLI_FETCH_RESOURCE_STMT(stmt, mysql_stmt, MYSQLI_STATUS_VALID);
1490
1491
if (!stmt->stmt->data || !stmt->stmt->data->result || !stmt->stmt->data->result->stored_data) {
1492
- zend_throw_error(NULL, "No result set associated with the statement");
+ if (hasThis()) {
1493
+ zend_throw_error(NULL, "mysqli_stmt::data_seek(): No result set associated with the statement");
1494
+ } else {
1495
+ zend_throw_error(NULL, "mysqli_stmt_data_seek(): No result set associated with the statement");
1496
+ }
1497
RETURN_THROWS();
1498
}
1499
0 commit comments