diff options
Diffstat (limited to 'Zend/tests/bug78271.phpt')
-rw-r--r-- | Zend/tests/bug78271.phpt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Zend/tests/bug78271.phpt b/Zend/tests/bug78271.phpt new file mode 100644 index 0000000000..70eba17467 --- /dev/null +++ b/Zend/tests/bug78271.phpt @@ -0,0 +1,27 @@ +--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 |