From: Antony Dovgal Date: Fri, 25 Dec 2009 20:34:59 +0000 (+0000) Subject: remove automatic file unlocking on shutdown and/or stream close X-Git-Tag: php-5.4.0alpha1~191^2~2163 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=64845f388932ed0a51de0dba124bf9a2aa813e59;p=php remove automatic file unlocking on shutdown and/or stream close (make it win32-specific for 5_2, as discussed with Ilia) --- diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c index 5a4f1b6e16..5da4d80d43 100644 --- a/main/streams/plain_wrapper.c +++ b/main/streams/plain_wrapper.c @@ -388,9 +388,6 @@ static int php_stdiop_close(php_stream *stream, int close_handle TSRMLS_DC) #endif if (close_handle) { - if (data->lock_flag != LOCK_UN) { - php_stream_lock(stream, LOCK_UN); - } if (data->file) { if (data->is_process_pipe) { errno = 0;