Tests: made tests compatible with PHP 5.3.

This commit is contained in:
Andrey Zelenkov
2019-03-01 18:58:16 +03:00
parent 557a792b33
commit ae36276cfc
3 changed files with 10 additions and 4 deletions

View File

@@ -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');
?>