← Back
Editing: sccp_018.phpt
--TEST-- SCCP 018: Object assignment --INI-- opcache.enable=1 opcache.enable_cli=1 opcache.optimization_level=-1 ;opcache.opt_debug_level=0x20000 --SKIPIF-- <?php require_once('skipif.inc'); ?> --FILE-- <?php function foo() { $a = new stdClass; $b = $a; $a->x = 5; $b->x = 42; echo $a->x; echo "\n"; } foo(); ?> --EXPECT-- 42
Save File
Cancel