xref: /PHP-8.4/ext/opcache/tests/ref_range_2.phpt (revision 7368d0c4)
1--TEST--
2Range info for references (2)
3--FILE--
4<?php
5
6function test() {
7    escape_x($x);
8    $x = 0;
9    modify_x();
10    return PHP_INT_MAX + (int) $x;
11}
12
13function escape_x(&$x) {
14    $GLOBALS['x'] =& $x;
15}
16
17function modify_x() {
18    $GLOBALS['x']++;
19}
20
21var_dump(test());
22
23?>
24--EXPECTF--
25float(%s)
26