mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
Added a warning message
This commit is contained in:
parent
3230a77d89
commit
f704d2d37d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user