mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
e7e66d5275
Closes GH-4389.
(cherry picked from commit e6c2b28865
)
28 lines
330 B
PHP
28 lines
330 B
PHP
--TEST--
|
|
Bug #78271: Invalid result of if-else
|
|
--FILE--
|
|
<?php
|
|
function test($a, $b){
|
|
if ($a==10) {
|
|
$w="x";
|
|
} else {
|
|
$w="y";
|
|
}
|
|
|
|
if ($b) {
|
|
$d1="none";
|
|
$d2="block";
|
|
} else {
|
|
$d1="block";
|
|
$d2="none";
|
|
}
|
|
|
|
echo $d2.$b."\n";
|
|
|
|
}
|
|
|
|
test(1, 1);
|
|
?>
|
|
--EXPECT--
|
|
block1
|