diff options
Diffstat (limited to 'ext/opcache/tests/opt/sccp_018.phpt')
-rw-r--r-- | ext/opcache/tests/opt/sccp_018.phpt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ext/opcache/tests/opt/sccp_018.phpt b/ext/opcache/tests/opt/sccp_018.phpt new file mode 100644 index 0000000000..66a4b6ca15 --- /dev/null +++ b/ext/opcache/tests/opt/sccp_018.phpt @@ -0,0 +1,23 @@ +--TEST-- +SCCP 018: Object assignemnt +--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 |