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

index dd72f81d0f80e889789e4f917476d74325e694a2..81da078ae3ef0713c0dc493a6918f6eb4fd19090 100755 (executable)
@@ -556,10 +556,8 @@ void spl_filesystem_object_construct(INTERNAL_FUNCTION_PARAMETERS, int ctor_flag
        php_set_error_handling(EH_THROW, spl_ce_UnexpectedValueException TSRMLS_CC);
 
        if (ctor_flags & DIT_CTOR_FLAGS) {
-               flags = SPL_FILE_DIR_CURRENT_AS_FILEINFO;
                parsed = zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &path, &len, &flags);
        } else {
-               flags = 0;
                parsed = zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &path, &len);
        }
        if (parsed == FAILURE) {