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