Skip to content

Commit 1613d80

Browse files
committed
[skip ci] Improve bless_tests.php for opcache dump
1 parent cb62621 commit 1613d80

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

scripts/dev/bless_tests.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ function normalizeOutput(string $out): string {
7979
$out = preg_replace("/'(\/|[A-Z]:\\\\)\S+\\.\\.\\.'/", "'%s'", $out);
8080
$out = preg_replace("/'file:(\/|[A-Z]:\\\\)\S+\\.\\.\\.'/", "'%s'", $out);
8181
$out = str_replace("\0", '%0', $out);
82+
$out = preg_replace('(; .*\.php:\d+-\d+)', '; %s.php:%s', $out);
83+
$out = preg_replace('(; \(lines=(\d+), args=(\d+), vars=(\d+), tmps=\d+\))', '; (lines=$1, args=$2, vars=$3, tmps=%d)', $out);
84+
$out = preg_replace('((\d{4,}) (INIT_FCALL) (\d+) (\d+))', '$1 $2 $3 %d', $out);
8285
return $out;
8386
}
8487

0 commit comments

Comments
 (0)