summaryrefslogtreecommitdiff
path: root/main/streams
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2008-06-11 09:01:56 +0000
committerDmitry Stogov <dmitry@php.net>2008-06-11 09:01:56 +0000
commit99933df5e2064cd751e4bbe8f7a52ee6af12954f (patch)
tree6115fdd883ca8a2da96fdbd0b7e672022cec4c25 /main/streams
parent8d260b6b7169de3083a2bbe059e283d9c2c572a3 (diff)
downloadphp-git-99933df5e2064cd751e4bbe8f7a52ee6af12954f.tar.gz
closeder/readdir/rewinddir must work only with directories
Diffstat (limited to 'main/streams')
-rwxr-xr-xmain/streams/streams.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/streams/streams.c b/main/streams/streams.c
index bd14748b28..03aea23f60 100755
--- a/main/streams/streams.c
+++ b/main/streams/streams.c
@@ -1724,7 +1724,7 @@ PHPAPI php_stream *_php_stream_opendir(char *path, int options,
if (stream) {
stream->wrapper = wrapper;
- stream->flags |= PHP_STREAM_FLAG_NO_BUFFER;
+ stream->flags |= PHP_STREAM_FLAG_NO_BUFFER | PHP_STREAM_FLAG_IS_DIR;
}
} else if (wrapper) {
php_stream_wrapper_log_error(wrapper, options ^ REPORT_ERRORS TSRMLS_CC, "not implemented");