8000 Merge branch '2.8' into 3.4 · symfony/symfony@08b7874 · GitHub
[go: up one dir, main page]

Skip to content

Commit 08b7874

Browse files
Merge branch '2.8' into 3.4
* 2.8: [Filesystem] fix lock file mode [Console] fix typo in phpdoc
2 parents 6950972 + 881c46a commit 08b7874

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Symfony/Component/Console/Output/OutputInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ interface OutputInterface
3333
/**
3434
* Writes a message to the output.
3535
*
36-
* @param string|array $messages The message as an array of lines or a singl 8000 e string
36+
* @param string|array $messages The message as an array of strings or a single string
3737
* @param bool $newline Whether to add a newline
3838
* @param int $options A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL
3939
*/
@@ -42,7 +42,7 @@ public function write($messages, $newline = false, $options = 0);
4242
/**
4343
* Writes a message to the output and adds a newline at the end.
4444
*
45-
* @param string|array $messages The message as an array of lines of a single string
45+
* @param string|array $messages The message as an array of strings or a single string
4646
* @param int $options A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL
4747
*/
4848
public function writeln($messages, $options = 0);

src/Symfony/Component/Filesystem/LockHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function lock($blocking = false)
8383

8484
if (!$this->handle = fopen($this->file, 'r+') ?: fopen($this->file, 'r')) {
8585
if ($this->handle = fopen($this->file, 'x')) {
86-
chmod($this->file, 0644);
86+
chmod($this->file, 0666);
8787
} elseif (!$this->handle = fopen($this->file, 'r+') ?: fopen($this->file, 'r')) {
8888
usleep(100); // Give some time for chmod() to complete
8989
$this->handle = fopen($this->file, 'r+') ?: fopen($this->file, 'r');

src/Symfony/Component/Lock/Store/FlockStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private function lock(Key $key, $blocking)
8181
set_error_handler(function ($type, $msg) use (&$error) { $error = $msg; });
8282
if (!$handle = fopen($fileName, 'r+') ?: fopen($fileName, 'r')) {
8383
if ($handle = fopen($fileName, 'x')) {
84-
chmod($fileName, 0644);
84+
chmod($fileName, 0666);
8585
} elseif (!$handle = fopen($fileName, 'r+') ?: fopen($fileName, 'r')) {
8686
usleep(100); // Give some time for chmod() to complete
8787
$handle = fopen($fileName, 'r+') ?: fopen($fileName, 'r');

0 commit comments

Comments
 (0)
0