Merge branch 'PHP-8.3'

* PHP-8.3:
  Ignore optional warning output in test
This commit is contained in:
Niels Dossche 2023-10-02 22:55:54 +02:00
commit cb0d04e9f4

View file

@ -25,11 +25,21 @@ $cmd = [
]; ];
$proc = proc_open($cmd, [['null'], ['pipe', 'w'], ['redirect', 1]], $pipes); $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-- --EXPECTF--
%A
preloaded preloaded
PHP %s PHP %s
Copyright (c) The PHP Group Copyright (c) The PHP Group