From de120f6698a683872c306a756defdc431f95b5e4 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Mon, 4 Feb 2008 18:46:02 +0000 Subject: [PATCH] - Fix #44018 (RecursiveDirectoryIterator options inconsistancy) --- ext/spl/spl_directory.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/ext/spl/spl_directory.c b/ext/spl/spl_directory.c index b6c4a24e7e..60bc4093f0 100755 --- a/ext/spl/spl_directory.c +++ b/ext/spl/spl_directory.c @@ -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) { -- 2.50.1