tony2001 Mon Nov 13 20:31:15 2006 UTC
Modified files:
/php-src/ext/standard file.c
Log:
don't forget to close the stream when/if flock() fails
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/file.c?r1=1.466&r2=1.467&diff_format=u
Index: php-src/ext/standard/file.c
diff -u php-src/ext/standard/file.c:1.466 php-src/ext/standard/file.c:1.467
--- php-src/ext/standard/file.c:1.466 Mon Nov 13 20:17:05 2006
+++ php-src/ext/standard/file.c Mon Nov 13 20:31:15 2006
@@ -21,7 +21,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: file.c,v 1.466 2006/11/13 20:17:05 tony2001 Exp $ */
+/* $Id: file.c,v 1.467 2006/11/13 20:31:15 tony2001 Exp $ */
/* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */
@@ -649,6 +649,7 @@
}
if (flags & LOCK_EX && php_stream_lock(stream, LOCK_EX)) {
+ php_stream_close(stream);
RETURN_FALSE;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php