/
proc
/
3430793
/
root
/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
opcache
/
tests
/
opt
/
File Upload :
llllll
Current File: //proc/3430793/root/usr/local/lsws/phpbuild/php-8.0.7/ext/opcache/tests/opt/sccp_011.phpt
--TEST-- SCCP 011: Conditional Constant Propagation of non-escaping object properties --INI-- opcache.enable=1 opcache.enable_cli=1 opcache.optimization_level=-1 opcache.opt_debug_level=0x20000 opcache.preload= --SKIPIF-- <?php require_once('skipif.inc'); ?> --FILE-- <?php function foo(int $x) { $o = new stdClass; if ($x) { $o->foo = 0; $o->bar = 1; } else { $o->foo = 0; $o->bar = 2; } echo $o->foo; } ?> --EXPECTF-- $_main: ; (lines=1, args=0, vars=0, tmps=0) ; (after optimizer) ; %ssccp_011.php:1-14 0000 RETURN int(1) foo: ; (lines=3, args=1, vars=1, tmps=0) ; (after optimizer) ; %ssccp_011.php:2-12 0000 CV0($x) = RECV 1 0001 ECHO string("0") 0002 RETURN null
Copyright ©2k19 -
Hexid
|
Tex7ure