summaryrefslogtreecommitdiffhomepage
path: root/test/php/404/index.php
diff options
context:
space:
mode:
authorAndrei Belov <defan@nginx.com>2019-05-30 17:44:29 +0300
committerAndrei Belov <defan@nginx.com>2019-05-30 17:44:29 +0300
commit4921df052be8437d912f3c60faa9a667890e4498 (patch)
tree3678c551f148a0d177721597de978c090237f205 /test/php/404/index.php
parent3b7a7ff2aa5840d4238584410ee1ebc6860fb9c5 (diff)
parent7da320a93af07765e79c929287704936c431f3cd (diff)
downloadunit-4921df052be8437d912f3c60faa9a667890e4498.tar.gz
unit-4921df052be8437d912f3c60faa9a667890e4498.tar.bz2
Merged with the default branch.1.9.0-1
Diffstat (limited to 'test/php/404/index.php')
-rw-r--r--test/php/404/index.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/php/404/index.php b/test/php/404/index.php
index 92afdf19..561dbec2 100644
--- a/test/php/404/index.php
+++ b/test/php/404/index.php
@@ -1,4 +1,10 @@
<?php
-http_response_code(404);
+if (!function_exists('http_response_code')) {
+ header('Temporary-Header: True', true, 404);
+ header_remove('Temporary-Header');
+} else {
+ http_response_code(404);
+}
+
include('404.html');
?>