summaryrefslogtreecommitdiff
path: root/sapi/cli/tests/bug65275.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'sapi/cli/tests/bug65275.phpt')
-rw-r--r--sapi/cli/tests/bug65275.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/sapi/cli/tests/bug65275.phpt b/sapi/cli/tests/bug65275.phpt
new file mode 100644
index 0000000000..1d59515996
--- /dev/null
+++ b/sapi/cli/tests/bug65275.phpt
@@ -0,0 +1,12 @@
+--TEST--
+Bug #65275: Calling exit() in a shutdown function does not change the exit value in CLI
+--FILE--
+<?php
+
+$php = getenv('TEST_PHP_EXECUTABLE');
+exec($php . ' ' . __DIR__ . '/bug65275.inc', $output, $exit_status);
+var_dump($exit_status);
+
+?>
+--EXPECT--
+int(111)