1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 05:51:02 +02:00
Files
archived-php-src/Zend/tests/match/024.phpt
2020-07-11 16:50:51 +02:00

21 lines
270 B
PHP

--TEST--
Test match strict comparison with false expression
--FILE--
<?php
function wrong() {
throw new Exception();
}
echo match (false) {
'' => wrong(),
[] => wrong(),
0 => wrong(),
0.0 => wrong(),
false => "false\n",
};
?>
--EXPECT--
false