From f704d2d37d1dd9e0c80ea416cd62658b2c9b26aa Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Sun, 30 Mar 2008 15:05:48 +0000 Subject: [PATCH] Added a warning message --- ext/standard/file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/standard/file.c b/ext/standard/file.c index db783325eee..38d2a1e34ff 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -614,6 +614,7 @@ PHP_FUNCTION(file_put_contents) if (flags & LOCK_EX && (!php_stream_supports_lock(stream) || php_stream_lock(stream, LOCK_EX))) { php_stream_close(stream); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Exclusive locks are not supported for this stream"); RETURN_FALSE; }