summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-03-23 17:14:42 +0100
committerNikita Popov <nikita.ppv@gmail.com>2020-03-23 17:14:42 +0100
commit568592f1e9481c496fe2f141c4330fa653b6b20b (patch)
tree3e236746a7f1b8ace64fc443c45fa7ccf161fee8
parentdcbdcf87c83f996cb864acdb8dd7ff96ddd6465d (diff)
parent534e15b4778fa1ad422192888385bf41587ae8b3 (diff)
downloadphp-git-568592f1e9481c496fe2f141c4330fa653b6b20b.tar.gz
Merge branch 'PHP-7.4'
* PHP-7.4: Add test file
-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