diff options
author | Felipe Pena <felipe@php.net> | 2008-07-22 14:09:24 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-07-22 14:09:24 +0000 |
commit | fdfbfb96a14f46aa7ff457d97e713725c0e69e32 (patch) | |
tree | 966f191df49221395fdda380b986c8e210dab797 /ext/standard/proc_open.c | |
parent | cb3bc158076026430722bb408c736496b1c88277 (diff) | |
download | php-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.c | 2 |
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); |