xref: /PHP-8.2/ext/opcache/tests/jit/inc_obj_005.phpt (revision aa352c2c)
1--TEST--
2PRE_INC_OBJ: 005
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.jit_buffer_size=1M
8opcache.protect_memory=1
9--FILE--
10<?php
11json_encode($y)->y++;
12?>
13--EXPECTF--
14Warning: Undefined variable $y in %sinc_obj_005.php on line 2
15
16Fatal error: Uncaught Error: Attempt to increment/decrement property "y" on string in %sinc_obj_005.php:2
17Stack trace:
18#0 {main}
19  thrown in %sinc_obj_005.php on line 2
20