Skip to content

Commit 38dfd20

Browse files
Remove main() from mysqli warning (#10321)
1 parent 9006f06 commit 38dfd20

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/mysqli/mysqli_result_iterator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static void php_mysqli_result_iterator_rewind(zend_object_iterator *iter)
120120

121121
if (mysqli_result_is_unbuffered(result)) {
122122
if (result->unbuf->eof_reached) {
123-
php_error_docref(NULL, E_WARNING, "Data fetched with MYSQLI_USE_RESULT can be iterated only once");
123+
zend_error(E_WARNING, "Data fetched with MYSQLI_USE_RESULT can be iterated only once");
124124
return;
125125
}
126126
} else {

ext/mysqli/tests/mysqli_query_iterators.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ array(1) {
151151
}
152152
======
153153

154-
Warning: main(): Data fetched with MYSQLI_USE_RESULT can be iterated only once in %s on line %d
154+
Warning: Data fetched with MYSQLI_USE_RESULT can be iterated only once in %s on line %d
155155
--- Testing STORE_RESULT ---
156156
array(1) {
157157
["id"]=>

0 commit comments

Comments
 (0)