summaryrefslogtreecommitdiff
path: root/tests/lang/017.phpt
blob: 264b3906febcfcb02e3bee2dc1264d6c54a0daca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Testing user-defined function falling out of an If into another
--FILE--
<?php
$a = 1;
function Test ($a) {
    if ($a<3) {
        return(3);
    }
}

if ($a < Test($a)) {
    echo "$a\n";
    $a++;
}
?>
--EXPECT--
1