]> granicus.if.org Git - php/commitdiff
- Setting flags once is enough
authorMarcus Boerger <helly@php.net>
Mon, 4 Feb 2008 18:35:08 +0000 (18:35 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 4 Feb 2008 18:35:08 +0000 (18:35 +0000)
ext/spl/spl_directory.c

index 26a467d5e5a78e1d58c1e1949b365107354a5a56..b6c4a24e7e74700b84d38cb451dac6b64c017128 100755 (executable)
@@ -619,8 +619,6 @@ void spl_filesystem_object_construct(INTERNAL_FUNCTION_PARAMETERS, int ctor_flag
        }
 
        intern = (spl_filesystem_object*)zend_object_store_get_object(getThis() TSRMLS_CC);
-
-       intern->flags = flags;
        if ((ctor_flags & DIT_CTOR_GLOB) && (
                (path_type == IS_STRING && strstr(path.s, "glob://") != path.s) ||
                (path_type == IS_UNICODE && u_strstr(path.u, u_glob) != path.u)