summaryrefslogtreecommitdiff
path: root/ext/standard/proc_open.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-07-22 14:09:24 +0000
committerFelipe Pena <felipe@php.net>2008-07-22 14:09:24 +0000
commitfdfbfb96a14f46aa7ff457d97e713725c0e69e32 (patch)
tree966f191df49221395fdda380b986c8e210dab797 /ext/standard/proc_open.c
parentcb3bc158076026430722bb408c736496b1c88277 (diff)
downloadphp-git-fdfbfb96a14f46aa7ff457d97e713725c0e69e32.tar.gz
- MFH: Fixed bug #44246 (closedir() accepts a file resource opened by fopen())
Diffstat (limited to 'ext/standard/proc_open.c')
-rw-r--r--ext/standard/proc_open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c
index cd4c7b70e0..f6f469a54a 100644
--- a/ext/standard/proc_open.c
+++ b/ext/standard/proc_open.c
@@ -969,7 +969,7 @@ PHP_FUNCTION(proc_open)
zval *retfp;
/* nasty hack; don't copy it */
- stream->flags |= PHP_STREAM_FLAG_NO_SEEK;
+ stream->flags |= PHP_STREAM_FLAG_NO_SEEK | PHP_STREAM_FLAG_FCLOSE;
MAKE_STD_ZVAL(retfp);
php_stream_to_zval(stream, retfp);