summaryrefslogtreecommitdiff
path: root/sapi/cli/tests/bug62294.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'sapi/cli/tests/bug62294.phpt')
-rw-r--r--sapi/cli/tests/bug62294.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/sapi/cli/tests/bug62294.phpt b/sapi/cli/tests/bug62294.phpt
new file mode 100644
index 0000000000..04d0d8b60e
--- /dev/null
+++ b/sapi/cli/tests/bug62294.phpt
@@ -0,0 +1,12 @@
+--TEST--
+Bug #62294: register_shutdown_function() does not handle exit code correctly
+--FILE--
+<?php
+
+$php = getenv('TEST_PHP_EXECUTABLE');
+exec($php . ' -n ' . __DIR__ . '/bug62294.inc', $output, $exit_status);
+var_dump($exit_status);
+
+?>
+--EXPECT--
+int(255)