diff options
-rw-r--r-- | ext/opcache/tests/exit_in_call_arg.phpt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/opcache/tests/exit_in_call_arg.phpt b/ext/opcache/tests/exit_in_call_arg.phpt new file mode 100644 index 0000000000..4969780806 --- /dev/null +++ b/ext/opcache/tests/exit_in_call_arg.phpt @@ -0,0 +1,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 |