--TEST-- JIT: FETCH_OBJ 006 --INI-- opcache.enable=1 opcache.enable_cli=1 opcache.file_update_protection=0 --FILE-- prop[] = 1; })->bindTo($test, Test::class); $appendProp2(); ?> --EXPECTF-- Fatal error: Uncaught Error: Cannot indirectly modify readonly property Test::$prop in %s:%d Stack trace: #0 %s(%d): Test->{closure:%s:%d}() #1 {main} thrown in %sfetch_obj_006.php on line 13