Skip to content

Commit 418a954

Browse files
committed
Add function name to the message
1 parent 89b3439 commit 418a954

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

ext/mysqli/mysqli_api.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1489,7 +1489,11 @@ PHP_FUNCTION(mysqli_stmt_data_seek)
14891489
MYSQLI_FETCH_RESOURCE_STMT(stmt, mysql_stmt, MYSQLI_STATUS_VALID);
14901490

14911491
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");
1492+
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+
}
14931497
RETURN_THROWS();
14941498
}
14951499

0 commit comments

Comments
 (0)