Skip to content

Commit 8560d16

Browse files
committed
Align types with the output of zend_hash_num_elements()
1 parent caaf2e9 commit 8560d16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/standard/file.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1853,7 +1853,7 @@ PHP_FUNCTION(fputcsv)
18531853
/* {{{ PHPAPI size_t php_fputcsv(php_stream *stream, zval *fields, char delimiter, char enclosure, int escape_char, zend_string *eol_str) */
18541854
PHPAPI ssize_t php_fputcsv(php_stream *stream, zval *fields, char delimiter, char enclosure, int escape_char, zend_string *eol_str)
18551855
{
1856-
int count, i = 0;
1856+
uint32_t count, i = 0;
18571857
size_t ret;
18581858
zval *field_tmp;
18591859
smart_str csvline = {0};
@@ -1899,7 +1899,7 @@ PHPAPI ssize_t php_fputcsv(php_stream *stream, zval *fields, char delimiter, cha
18991899
}
19001900
zend_tmp_string_release(tmp_field_str);
19011901
} ZEND_HASH_FOREACH_END();
1902-
1902+
19031903
if (eol_str) {
19041904
smart_str_append(&csvline, eol_str);
19051905
} else {

0 commit comments

Comments
 (0)