mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1: Ignore optional warning output in test
This commit is contained in:
commit
6aa20956fb
@ -25,11 +25,21 @@ $cmd = [
|
||||
];
|
||||
|
||||
$proc = proc_open($cmd, [['null'], ['pipe', 'w'], ['redirect', 1]], $pipes);
|
||||
echo stream_get_contents($pipes[1]);
|
||||
$output = stream_get_contents($pipes[1]);
|
||||
|
||||
// Ignore warnings if opcache loads twice or duplicate modules are loaded by searching for the preloaded marker
|
||||
$flag = false;
|
||||
foreach (explode("\n", $output) as $line) {
|
||||
if ($line === "preloaded") {
|
||||
$flag = true;
|
||||
}
|
||||
if ($flag) {
|
||||
echo $line, "\n";
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
%A
|
||||
preloaded
|
||||
PHP %s
|
||||
Copyright (c) The PHP Group
|
||||
|
Loading…
Reference in New Issue
Block a user