php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #53076
Patch file_put_contents.patch revision 2010-10-15 15:14 UTC by admin at saltwaterc dot net

Patch file_put_contents.patch for Scripting Engine problem Bug #53076

Patch version 2010-10-15 15:14 UTC

Return to Bug #53076 | Download this patch
Patch Revisions:

Developer: admin@saltwaterc.net

Index: file.c
===================================================================
--- file.c	(revision 304437)
+++ file.c	(working copy)
@@ -703,6 +703,9 @@
 			numbytes = -1;
 			break;
 	}
+	if (flags & LOCK_EX) {
+		php_stream_lock(stream, LOCK_UN);
+	}
 	php_stream_close(stream);
 
 	if (numbytes < 0) {
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 06:01:34 2024 UTC