mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2: fix flaky posix test
This commit is contained in:
commit
249c20023d
@ -7,23 +7,14 @@ Francesco Fullone ff@ideato.it
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
|
||||
if(!extension_loaded("pcntl")) print "skip - PCNTL extension required";
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
echo "*** Test by calling function with pid error ***\n";
|
||||
|
||||
$pid = 10000;
|
||||
posix_kill((2 ** 22) + 1, SIGKILL);
|
||||
|
||||
do {
|
||||
$pid += 1;
|
||||
$result = shell_exec("ps -p " . $pid);
|
||||
} while (strstr($pid, $result));
|
||||
|
||||
posix_kill($pid, SIGKILL);
|
||||
var_dump(posix_errno());
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
*** Test by calling function with pid error ***
|
||||
|
Loading…
Reference in New Issue
Block a user