Skip to content

Commit d2fcf04

Browse files
committed
Merge branch 'PHP-8.5'
* PHP-8.5: Fix flaky gh19984.phpt test
2 parents f49ce04 + faa4c7f commit d2fcf04

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/opcache/tests/gh19984.phpt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ if (!function_exists('pcntl_fork')) die('skip pcntl_fork() not available');
1414
<?php
1515
$pid = pcntl_fork();
1616
require __DIR__ . '/warning_replay.inc';
17+
if ($pid) {
18+
// Wait for child to output its error message.
19+
pcntl_waitpid($pid, $status);
20+
}
1721
?>
1822
--EXPECTF--
1923
Warning: Unsupported declare 'unknown' in %s on line %d

0 commit comments

Comments
 (0)