File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -51,15 +51,15 @@ public function testResourceRemoval()
5151 private function getOpenedSemaphores ()
5252 {
5353 if ('Darwin ' === PHP_OS ) {
54- $ lines = explode (PHP_EOL , trim (` ipcs -s ` ));
54+ $ lines = explode (PHP_EOL , trim (shell_exec ( ' ipcs -s ' ) ));
5555 if (-1 === $ start = array_search ('Semaphores: ' , $ lines )) {
5656 throw new \Exception ('Failed to extract list of opened semaphores. Expected a Semaphore list, got ' .implode (PHP_EOL , $ lines ));
5757 }
5858
5959 return \count (\array_slice ($ lines , ++$ start ));
6060 }
6161
62- $ lines = explode (PHP_EOL , trim (` LC_ALL=C ipcs -su ` ));
62+ $ lines = explode (PHP_EOL , trim (shell_exec ( ' LC_ALL=C ipcs -su ' ) ));
6363 if ('------ Semaphore Status -------- ' !== $ lines [0 ]) {
6464 throw new \Exception ('Failed to extract list of opened semaphores. Expected a Semaphore status, got ' .implode (PHP_EOL , $ lines ));
6565 }
You can’t perform that action at this time.
0 commit comments