Added a warning message

This commit is contained in:
Ilia Alshanetsky 2008-03-30 15:05:48 +00:00
parent 3230a77d89
commit f704d2d37d

View 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;
}