summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-03-23 17:13:57 +0100
committerNikita Popov <nikita.ppv@gmail.com>2020-03-23 17:13:57 +0100
commit2e8db5d6be60325f79dc1b40b5163b47d8ef65d5 (patch)
tree42d7d70b854ab1045baddfeef341015933daa5b4
parent34f1266a9c038c57a8a6319a056b53cd93986655 (diff)
downloadphp-git-2e8db5d6be60325f79dc1b40b5163b47d8ef65d5.tar.gz
Add test file
Forgot the git add again...
-rw-r--r--ext/opcache/tests/exit_in_call_arg.phpt19
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