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 @@ -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 }
You can’t perform that action at this time.
0 commit comments