[php-src] master: [skip ci] Fix tmps count in test expectation

From: Date: Tue, 21 Jul 2026 18:24:08 +0000
Subject: [php-src] master: [skip ci] Fix tmps count in test expectation
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-140151@lists.php.net to get a copy of this message
Author: Ilija Tovilo (iluuu1994) Date: 2026-07-21T20:23:27+02:00 Commit: https://github.com/php/php-src/commit/786e42386d0dbc1f3e86cf0bcc8c7d3104cc8fe0 Raw diff: https://github.com/php/php-src/commit/786e42386d0dbc1f3e86cf0bcc8c7d3104cc8fe0.diff [skip ci] Fix tmps count in test expectation Variation build enables observers, which add an extra tmp. Changed paths: M ext/standard/tests/array/array_map_foreach_optimization_006.phpt M ext/standard/tests/array/array_map_foreach_optimization_007.phpt Diff: diff --git a/ext/standard/tests/array/array_map_foreach_optimization_006.phpt b/ext/standard/tests/array/array_map_foreach_optimization_006.phpt index e21e3e0a9a8b..4d37697a616c 100644 --- a/ext/standard/tests/array/array_map_foreach_optimization_006.phpt +++ b/ext/standard/tests/array/array_map_foreach_optimization_006.phpt @@ -53,7 +53,7 @@ LIVE RANGES: 5: 0009 - 0013 (tmp/var) plusn: - ; (lines=4, args=2, vars=2, tmps=1) + ; (lines=4, args=2, vars=2, tmps=%d) ; (after optimizer) ; %s 0000 CV0($x) = RECV 1 diff --git a/ext/standard/tests/array/array_map_foreach_optimization_007.phpt b/ext/standard/tests/array/array_map_foreach_optimization_007.phpt index 67654b9e7640..8a406ef11ca6 100644 --- a/ext/standard/tests/array/array_map_foreach_optimization_007.phpt +++ b/ext/standard/tests/array/array_map_foreach_optimization_007.phpt @@ -44,7 +44,7 @@ $_main: 0016 RETURN int(1) plusn: - ; (lines=4, args=2, vars=2, tmps=1) + ; (lines=4, args=2, vars=2, tmps=%d) ; (after optimizer) ; %s 0000 CV0($x) = RECV 1 @@ -53,7 +53,7 @@ plusn: 0003 RETURN T2 $_main: - ; (lines=4, args=0, vars=1, tmps=1) + ; (lines=4, args=0, vars=1, tmps=%d) ; (after optimizer) ; %s:1-9 0000 T1 = DECLARE_LAMBDA_FUNCTION 0 @@ -64,7 +64,7 @@ LIVE RANGES: 1: 0001 - 0002 (tmp/var) {closure:pfa:%s:9}: - ; (lines=18, args=1, vars=2, tmps=2) + ; (lines=18, args=1, vars=2, tmps=%d) ; (after optimizer) ; %s:9-9 0000 CV0($x) = RECV 1

« previous php.cvs (#140151) next »