]> granicus.if.org Git - php/commitdiff
- Fix #44018 (RecursiveDirectoryIterator options inconsistancy)
authorMarcus Boerger <helly@php.net>
Mon, 4 Feb 2008 18:46:02 +0000 (18:46 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 4 Feb 2008 18:46:02 +0000 (18:46 +0000)
ext/spl/spl_directory.c

index b6c4a24e7e74700b84d38cb451dac6b64c017128..60bc4093f00b93e8b1050981c5de3f6e3ac16416 100755 (executable)
@@ -602,10 +602,8 @@ void spl_filesystem_object_construct(INTERNAL_FUNCTION_PARAMETERS, int ctor_flag
        php_set_error_handling(EH_THROW, spl_ce_RuntimeException TSRMLS_CC);
 
        if (ctor_flags & DIT_CTOR_FLAGS) {
-               flags = SPL_FILE_DIR_CURRENT_AS_FILEINFO;
                parsed = zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "t|l", &path, &len, &path_type, &flags);
        } else {
-               flags = 0;
                parsed = zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "t", &path, &len, &path_type);
        }
        if (parsed == FAILURE) {