summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/exit_in_call_arg.phpt
blob: 49697808065a55ced9ef2cb52637b8feca5fe41c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
exit() may occur in a call argument
--FILE--
<?php

function test($c) {
    if ($c) {
        var_dump(var_dump(exit("exit\n")));
    } else {
        var_dump("test");
    }
}
test(false);
test(true);

?>
--EXPECT--
string(4) "test"
exit