Skip to content

Commit 3e5173b

Browse files
committed
Display more information in php_cli_server_pdeathsig.phpt
1 parent ec6893e commit 3e5173b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sapi/cli/tests/php_cli_server_pdeathsig.phpt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ include "php_cli_server.inc";
2828
$cliServerInfo = php_cli_server_start('');
2929

3030
$master = proc_get_status($cliServerInfo->processHandle)['pid'];
31-
$workers = find_workers_by_ppid($master);
32-
if (count($workers) === 0) {
31+
$workersBefore = find_workers_by_ppid($master);
32+
if (count($workersBefore) === 0) {
3333
throw new \Exception('Could not find worker pids');
3434
}
3535

3636
proc_terminate($cliServerInfo->processHandle, 9); // SIGKILL
3737

38-
$workers = find_workers_by_pids($workers);
39-
if (count($workers) !== 0) {
40-
throw new \Exception('Workers were not properly terminated');
38+
$workersAfter = find_workers_by_pids($workersBefore);
39+
if (count($workersAfter) !== 0) {
40+
throw new \Exception('Workers were not properly terminated. Before: ' . join(', ', $workersBefore) . ', after: ' . join(', ', $workersAfter));
4141
}
4242

4343
echo 'Done';

0 commit comments

Comments
 (0)