]> granicus.if.org Git - php/commitdiff
Added a warning message
authorIlia Alshanetsky <iliaa@php.net>
Sun, 30 Mar 2008 15:05:48 +0000 (15:05 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 30 Mar 2008 15:05:48 +0000 (15:05 +0000)
ext/standard/file.c

index db783325eeeda6ec00f079de2f5a0bff5706b94f..38d2a1e34ff02fd5fe5df28d41715e5b19082379 100644 (file)
@@ -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;
        }