]> granicus.if.org Git - php/commitdiff
remove automatic file unlocking on shutdown and/or stream close
authorAntony Dovgal <tony2001@php.net>
Fri, 25 Dec 2009 20:34:59 +0000 (20:34 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 25 Dec 2009 20:34:59 +0000 (20:34 +0000)
(make it win32-specific for 5_2, as discussed with Ilia)

main/streams/plain_wrapper.c

index 5a4f1b6e164d9c239920e50d35b4e6053d6d769e..5da4d80d43ebf1c1670792d2c8b142012cb735bc 100644 (file)
@@ -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;