Skip to content

Commit 1fbbd2b

Browse files
committed
Remove unused is_recursive entry
This only takes up space and time.
1 parent eacfbd9 commit 1fbbd2b

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

UPGRADING.INTERNALS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ PHP 8.3 INTERNALS UPGRADE NOTES
118118
e. ext/spl
119119
- The PHPAPI spl_iterator_apply() function now returns zend_result instead of int.
120120
There are no functional changes.
121+
- The field _spl_filesystem_object->is_recursive has been removed.
121122

122123
f. ext/dom
123124
- A new function dom_get_doc_props_read_only() is added to gather the document

ext/spl/spl_directory.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -759,8 +759,6 @@ static void spl_filesystem_object_construct(INTERNAL_FUNCTION_PARAMETERS, zend_l
759759

760760
}
761761
zend_restore_error_handling(&error_handling);
762-
763-
intern->u.dir.is_recursive = instanceof_function(intern->std.ce, spl_ce_RecursiveDirectoryIterator) ? 1 : 0;
764762
}
765763
/* }}} */
766764

ext/spl/spl_directory.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ struct _spl_filesystem_object {
6464
php_stream *dirp;
6565
zend_string *sub_path;
6666
int index;
67-
int is_recursive;
6867
zend_function *func_rewind;
6968
zend_function *func_next;
7069
zend_function *func_valid;

0 commit comments

Comments
 (0)