summaryrefslogtreecommitdiffhomepage
path: root/test/php/fastcgi_finish_request/index.php
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2020-11-11 14:24:40 +0000
committerAndrei Zeliankou <zelenkov@nginx.com>2020-11-11 14:24:40 +0000
commita0ee50826a4810595123460ed11629f87b1995a0 (patch)
tree293587f202e34031215de4b777a86c9d4d618b12 /test/php/fastcgi_finish_request/index.php
parente30db59168eb83ba65b55df22b021085ae700605 (diff)
downloadunit-a0ee50826a4810595123460ed11629f87b1995a0.tar.gz
unit-a0ee50826a4810595123460ed11629f87b1995a0.tar.bz2
Tests: added a test for fastcgi_finish_request() function.
Diffstat (limited to 'test/php/fastcgi_finish_request/index.php')
-rw-r--r--test/php/fastcgi_finish_request/index.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/php/fastcgi_finish_request/index.php b/test/php/fastcgi_finish_request/index.php
new file mode 100644
index 00000000..a6211303
--- /dev/null
+++ b/test/php/fastcgi_finish_request/index.php
@@ -0,0 +1,11 @@
+<?php
+if (!isset($_GET['skip'])) {
+ echo "0123";
+}
+
+if (!fastcgi_finish_request()) {
+ error_log("Error in fastcgi_finish_request");
+}
+
+echo "4567";
+?>