Skip to content

Commit ef07676

Browse files
committed
Use true/false and comment when arg correspond to silent arg
1 parent 2f74c2f commit ef07676

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/spl/spl_directory.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1944,7 +1944,7 @@ static inline zend_result spl_filesystem_file_read(spl_filesystem_object *intern
19441944
static zend_result spl_filesystem_file_read_csv(spl_filesystem_object *intern, char delimiter, char enclosure, int escape, zval *return_value) /* {{{ */
19451945
{
19461946
do {
1947-
zend_result ret = spl_filesystem_file_read(intern, 1);
1947+
zend_result ret = spl_filesystem_file_read(intern, /* silent */ true);
19481948
if (ret != SUCCESS) {
19491949
return ret;
19501950
}
@@ -2640,7 +2640,7 @@ PHP_METHOD(SplFileObject, fscanf)
26402640
CHECK_SPL_FILE_OBJECT_IS_INITIALIZED(intern);
26412641

26422642
/* Get next line */
2643-
if (spl_filesystem_file_read(intern, 0) == FAILURE) {
2643+
if (spl_filesystem_file_read(intern, /* silent */ false) == FAILURE) {
26442644
RETURN_THROWS();
26452645
}
26462646

0 commit comments

Comments
 (0)