Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ext/spl/spl_directory.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ static zend_object *spl_filesystem_object_clone(zend_object *old_object)
spl_filesystem_dir_open(intern, source->path);
/* read until we hit the position in which we were before */
bool skip_dots = SPL_HAS_FLAG(source->flags, SPL_FILE_DIR_SKIPDOTS);
int index;
zend_long index;
for (index = 0; index < source->u.dir.index; ++index) {
do {
spl_filesystem_dir_read(intern);
Expand Down
2 changes: 1 addition & 1 deletion ext/spl/spl_directory.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ struct _spl_filesystem_object {
struct {
php_stream *dirp;
zend_string *sub_path;
int index;
zend_long index;
zend_function *func_rewind;
zend_function *func_next;
zend_function *func_valid;
Expand Down