/
proc
/
3430793
/
task
/
3430793
/
cwd
/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
Zend
/
tests
/
match
/
File Upload :
llllll
Current File: //proc/3430793/task/3430793/cwd/usr/local/lsws/phpbuild/php-8.0.7/Zend/tests/match/012.phpt
--TEST-- Strict comparison in match expression --FILE-- <?php function wrong() { throw new Exception(); } var_dump(match (0) { null => wrong(), false => wrong(), 0.0 => wrong(), [] => wrong(), '' => wrong(), 0 => 'int', }); function get_value() { return 0; } var_dump(match (get_value()) { null => wrong(), false => wrong(), 0.0 => wrong(), [] => wrong(), '' => wrong(), 0 => 'int', default => 'default', }); ?> --EXPECT-- string(3) "int" string(3) "int"
Copyright ©2k19 -
Hexid
|
Tex7ure