From: Marcus Boerger Date: Mon, 4 Feb 2008 18:46:02 +0000 (+0000) Subject: - Fix #44018 (RecursiveDirectoryIterator options inconsistancy) X-Git-Tag: RELEASE_2_0_0a1~618 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=de120f6698a683872c306a756defdc431f95b5e4;p=php - Fix #44018 (RecursiveDirectoryIterator options inconsistancy) --- 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) {