[PHP-CVS] [php-src] master: [skip ci] Improve bless_tests.php for opcache dump
[email protected] (Ilija Tovilo) Mon, 3 Aug 2026 18:14:57 +0000
| Newsgroups | php.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: Ilija Tovilo (iluuu1994)
Date: 2026-08-03T20:14:29+02:00
Commit: https://github.com/php/php-src/commit/1613d800aba1507faba1c3f47db23674782e83d4
Raw diff: https://github.com/php/php-src/commit/1613d800aba1507faba1c3f47db23674782e83d4.diff
[skip ci] Improve bless_tests.php for opcache dump
Changed paths:
M scripts/dev/bless_tests.php
Diff:
diff --git a/scripts/dev/bless_tests.php b/scripts/dev/bless_tests.php
index b38935503ae3..6e72344a3423 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;
}