Skip to content

Commit 008d32e

Browse files
Merge branch '3.4' into 4.4
* 3.4: [3.4] CS fixes
2 parents a270c64 + c537472 commit 008d32e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Store/SemaphoreStoreTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ public function testResourceRemoval()
4848
private function getOpenedSemaphores()
4949
{
5050
if ('Darwin' === PHP_OS) {
51-
$lines = explode(PHP_EOL, trim(`ipcs -s`));
51+
$lines = explode(PHP_EOL, trim(shell_exec('ipcs -s')));
5252
if (-1 === $start = array_search('Semaphores:', $lines)) {
5353
throw new \Exception('Failed to extract list of opened semaphores. Expected a Semaphore list, got '.implode(PHP_EOL, $lines));
5454
}
5555

5656
return \count(\array_slice($lines, ++$start));
5757
}
5858

59-
$lines = explode(PHP_EOL, trim(`LC_ALL=C ipcs -su`));
59+
$lines = explode(PHP_EOL, trim(shell_exec('LC_ALL=C ipcs -su')));
6060
if ('------ Semaphore Status --------' !== $lines[0]) {
6161
throw new \Exception('Failed to extract list of opened semaphores. Expected a Semaphore status, got '.implode(PHP_EOL, $lines));
6262
}

0 commit comments

Comments
 (0)