xref: /PHP-8.0/ext/opcache/tests/jit/assign_032.phpt (revision fc94e0fc)
1--TEST--
2JIT ASSIGN: 032
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.jit_buffer_size=1M
8opcache.protect_memory=1
9;opcache.jit_debug=257
10--SKIPIF--
11<?php require_once('skipif.inc'); ?>
12--FILE--
13<?php
14$var = "intergalactic";
15$var1 = "space";
16$var2 = &$var1;
17$var = $var2;
18var_dump($var);
19var_dump($var1);
20var_dump($var2);
21echo "Done\n";
22?>
23--EXPECT--
24string(5) "space"
25string(5) "space"
26string(5) "space"
27Done
28