We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b964298 + 249c200 commit 829d046Copy full SHA for 829d046
ext/posix/tests/posix_errno_variation2.phpt
@@ -7,23 +7,14 @@ Francesco Fullone ff@ideato.it
7
--SKIPIF--
8
<?php
9
if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
10
- if(!extension_loaded("pcntl")) print "skip - PCNTL extension required";
11
?>
12
--FILE--
13
14
-
15
echo "*** Test by calling function with pid error ***\n";
16
17
-$pid = 10000;
18
19
-do {
20
- $pid += 1;
21
- $result = shell_exec("ps -p " . $pid);
22
-} while (strstr($pid, $result));
+posix_kill((2 ** 22) + 1, SIGKILL);
23
24
-posix_kill($pid, SIGKILL);
25
var_dump(posix_errno());
26
27
28
--EXPECT--
29
*** Test by calling function with pid error ***
0 commit comments