Commit 1613d800aba for php.net
commit 1613d800aba1507faba1c3f47db23674782e83d4
Author: Ilija Tovilo <ilija.tovilo@me.com>
Date: Mon Aug 3 20:13:21 2026 +0200
[skip ci] Improve bless_tests.php for opcache dump
diff --git a/scripts/dev/bless_tests.php b/scripts/dev/bless_tests.php
index b38935503ae..6e72344a342 100755
--- a/scripts/dev/bless_tests.php
+++ b/scripts/dev/bless_tests.php
@@ -79,6 +79,9 @@ function normalizeOutput(string $out): string {
$out = preg_replace("/'(\/|[A-Z]:\\\\)\S+\\.\\.\\.'/", "'%s'", $out);
$out = preg_replace("/'file:(\/|[A-Z]:\\\\)\S+\\.\\.\\.'/", "'%s'", $out);
$out = str_replace("\0", '%0', $out);
+ $out = preg_replace('(; .*\.php:\d+-\d+)', '; %s.php:%s', $out);
+ $out = preg_replace('(; \(lines=(\d+), args=(\d+), vars=(\d+), tmps=\d+\))', '; (lines=$1, args=$2, vars=$3, tmps=%d)', $out);
+ $out = preg_replace('((\d{4,}) (INIT_FCALL) (\d+) (\d+))', '$1 $2 $3 %d', $out);
return $out;
}