1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 17:38:14 +02:00
Files
archived-php-src/ext/opcache/tests/jit/inc_obj_005.phpt
T
Dmitry Stogov aa352c2c54 JIT: Fixed memory leak
Fixes oss-fuzz #45981
2022-03-25 16:54:50 +03:00

20 lines
441 B
PHP

--TEST--
PRE_INC_OBJ: 005
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.protect_memory=1
--FILE--
<?php
json_encode($y)->y++;
?>
--EXPECTF--
Warning: Undefined variable $y in %sinc_obj_005.php on line 2
Fatal error: Uncaught Error: Attempt to increment/decrement property "y" on string in %sinc_obj_005.php:2
Stack trace:
#0 {main}
thrown in %sinc_obj_005.php on line 2