Update to Drupal 8.1.1. For more information, see https://www.drupal.org/node/2718713
This commit is contained in:
parent
c0a0d5a94c
commit
9eae24d844
669 changed files with 3873 additions and 1553 deletions
|
@ -76,11 +76,11 @@ abstract class LocalReadOnlyStream extends LocalStream {
|
|||
*/
|
||||
public function stream_lock($operation) {
|
||||
// Disallow exclusive lock or non-blocking lock requests
|
||||
if (in_array($operation, array(LOCK_EX, LOCK_EX|LOCK_NB))) {
|
||||
if (in_array($operation, array(LOCK_EX, LOCK_EX | LOCK_NB))) {
|
||||
trigger_error('stream_lock() exclusive lock operations not supported for read-only stream wrappers', E_USER_WARNING);
|
||||
return FALSE;
|
||||
}
|
||||
if (in_array($operation, array(LOCK_SH, LOCK_UN, LOCK_SH|LOCK_NB))) {
|
||||
if (in_array($operation, array(LOCK_SH, LOCK_UN, LOCK_SH | LOCK_NB))) {
|
||||
return flock($this->handle, $operation);
|
||||
}
|
||||
|
||||
|
|
|
@ -111,11 +111,11 @@ abstract class ReadOnlyStream implements StreamWrapperInterface {
|
|||
* @see http://php.net/manual/streamwrapper.stream-lock.php
|
||||
*/
|
||||
public function stream_lock($operation) {
|
||||
if (in_array($operation, array(LOCK_EX, LOCK_EX|LOCK_NB))) {
|
||||
if (in_array($operation, array(LOCK_EX, LOCK_EX | LOCK_NB))) {
|
||||
trigger_error('stream_lock() exclusive lock operations not supported for read-only stream wrappers', E_USER_WARNING);
|
||||
return FALSE;
|
||||
}
|
||||
if (in_array($operation, array(LOCK_SH, LOCK_UN, LOCK_SH|LOCK_NB))) {
|
||||
if (in_array($operation, array(LOCK_SH, LOCK_UN, LOCK_SH | LOCK_NB))) {
|
||||
return flock($this->handle, $operation);
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue