Skip to content

Commit 5fba3ba

Browse files
committed
Fixed bug #55807 (Wrong value for splFileObject::SKIP_EMPTY)
1 parent 3dabada commit 5fba3ba

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ PHP NEWS
2020
- SPL:
2121
. FilesystemIterator, GlobIterator and (Recursive)DirectoryIterator now use
2222
the default stream context. (Hannes)
23+
. Fixed bug #55807 (Wrong value for splFileObject::SKIP_EMPTY).
24+
(jgotti at modedemploi dot fr, Hannes)
2325

2426
- CLI SAPI:
2527
. Fixed bug #55726 (Changing the working directory makes router script

ext/spl/spl_directory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ static inline spl_filesystem_object* spl_filesystem_iterator_to_object(spl_files
117117

118118
#define SPL_FILE_OBJECT_DROP_NEW_LINE 0x00000001 /* drop new lines */
119119
#define SPL_FILE_OBJECT_READ_AHEAD 0x00000002 /* read on rewind/next */
120-
#define SPL_FILE_OBJECT_SKIP_EMPTY 0x00000006 /* skip empty lines */
120+
#define SPL_FILE_OBJECT_SKIP_EMPTY 0x00000004 /* skip empty lines */
121121
#define SPL_FILE_OBJECT_READ_CSV 0x00000008 /* read via fgetcsv */
122122
#define SPL_FILE_OBJECT_MASK 0x0000000F /* read via fgetcsv */
123123

0 commit comments

Comments
 (0)