summaryrefslogtreecommitdiff
path: root/ext/opcache
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-03-23 17:14:16 +0100
committerNikita Popov <nikita.ppv@gmail.com>2020-03-23 17:14:16 +0100
commit534e15b4778fa1ad422192888385bf41587ae8b3 (patch)
treeabdf1d79b8b5b90a4a219cd94e5213d3f86fa03b /ext/opcache
parentdd9b5c86809b573c5bad257d7f3b4fae51373f57 (diff)
parent2e8db5d6be60325f79dc1b40b5163b47d8ef65d5 (diff)
downloadphp-git-534e15b4778fa1ad422192888385bf41587ae8b3.tar.gz
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: Add test file
Diffstat (limited to 'ext/opcache')
-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