summaryrefslogtreecommitdiff
path: root/main/streams/plain_wrapper.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2009-12-25 20:34:59 +0000
committerAntony Dovgal <tony2001@php.net>2009-12-25 20:34:59 +0000
commit5ef0a901841a18e82f30078403fa332776071c6c (patch)
treea6b40bc9ce33324245ae6e85f8c1a03b837a2a1b /main/streams/plain_wrapper.c
parent2d1e066e6f9c9316fdcb970f5a3deb44a6643ff0 (diff)
downloadphp-git-5ef0a901841a18e82f30078403fa332776071c6c.tar.gz
remove automatic file unlocking on shutdown and/or stream close
(make it win32-specific for 5_2, as discussed with Ilia)
Diffstat (limited to 'main/streams/plain_wrapper.c')
-rw-r--r--main/streams/plain_wrapper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c
index 8020731258..dd65417081 100644
--- a/main/streams/plain_wrapper.c
+++ b/main/streams/plain_wrapper.c
@@ -383,9 +383,11 @@ static int php_stdiop_close(php_stream *stream, int close_handle TSRMLS_DC)
#endif
if (close_handle) {
+#ifdef PHP_WIN32
if (data->lock_flag != LOCK_UN) {
php_stream_lock(stream, LOCK_UN);
}
+#endif
if (data->file) {
if (data->is_process_pipe) {
errno = 0;