Skip to content

Commit 92c26ae

Browse files
Update ext/mysqli/mysqli_nonapi.c
Co-authored-by: Máté Kocsis <kocsismate@woohoolabs.com>
1 parent be2be6d commit 92c26ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/mysqli/mysqli_nonapi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ PHP_FUNCTION(mysqli_fetch_column)
450450
MYSQLI_FETCH_RESOURCE(result, MYSQL_RES *, mysql_result, "mysqli_result", MYSQLI_STATUS_VALID);
451451

452452
if(col_no < 0) {
453-
zend_value_error("Column index must be greater than or equal to 0");
453+
zend_argument_value_error(ERROR_ARG_POS(2), "must be greater than or equal to 0");
454454
RETURN_THROWS();
455455
}
456456
if(col_no >= result->field_count) {

ext/mysqli/tests/mysqli_fetch_column.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ NULL
119119
[007]
120120
int(1)
121121
[008]
122-
Column index must be greater than or equal to 0
122+
mysqli_fetch_column(): Argument #2 ($column) must be greater than or equal to 0
123123
[009]
124124
Invalid column index
125125
mysqli_result object is already closed

0 commit comments

Comments
 (0)