update v1.0.6
This commit is contained in:
6
vendor/symfony/filesystem/Filesystem.php
vendored
6
vendor/symfony/filesystem/Filesystem.php
vendored
@@ -446,7 +446,7 @@ class Filesystem
|
||||
return strspn($file, '/\\', 0, 1)
|
||||
|| (strlen($file) > 3 && ctype_alpha($file[0])
|
||||
&& substr($file, 1, 1) === ':'
|
||||
&& (strspn($file, '/\\', 2, 1))
|
||||
&& strspn($file, '/\\', 2, 1)
|
||||
)
|
||||
|| null !== parse_url($file, PHP_URL_SCHEME)
|
||||
;
|
||||
@@ -530,14 +530,14 @@ class Filesystem
|
||||
throw new IOException(sprintf('Failed to write file "%s".', $filename), 0, null, $filename);
|
||||
}
|
||||
|
||||
$this->rename($tmpFile, $filename, true);
|
||||
if (null !== $mode) {
|
||||
if (func_num_args() > 2) {
|
||||
@trigger_error('Support for modifying file permissions is deprecated since version 2.3.12 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||
}
|
||||
|
||||
$this->chmod($filename, $mode);
|
||||
$this->chmod($tmpFile, $mode);
|
||||
}
|
||||
$this->rename($tmpFile, $filename, true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
2
vendor/symfony/filesystem/LICENSE
vendored
2
vendor/symfony/filesystem/LICENSE
vendored
@@ -1,4 +1,4 @@
|
||||
Copyright (c) 2004-2015 Fabien Potencier
|
||||
Copyright (c) 2004-2016 Fabien Potencier
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
6
vendor/symfony/filesystem/LockHandler.php
vendored
6
vendor/symfony/filesystem/LockHandler.php
vendored
@@ -68,9 +68,8 @@ class LockHandler
|
||||
return true;
|
||||
}
|
||||
|
||||
// Silence both userland and native PHP error handlers
|
||||
$errorLevel = error_reporting(0);
|
||||
set_error_handler('var_dump', 0);
|
||||
// Silence error reporting
|
||||
set_error_handler(function() {});
|
||||
|
||||
if (!$this->handle = fopen($this->file, 'r')) {
|
||||
if ($this->handle = fopen($this->file, 'x')) {
|
||||
@@ -81,7 +80,6 @@ class LockHandler
|
||||
}
|
||||
}
|
||||
restore_error_handler();
|
||||
error_reporting($errorLevel);
|
||||
|
||||
if (!$this->handle) {
|
||||
$error = error_get_last();
|
||||
|
Reference in New Issue
Block a user