Skip to content

Commit

Permalink
Remove homebrew http response code function
Browse files Browse the repository at this point in the history
As part of removing support for PHP 5.3, remove homebrew http response
function as 5.4 features a built in one.
  • Loading branch information
GRyall committed Jul 14, 2020
1 parent fa9b17a commit 1de2ea3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 80 deletions.
69 changes: 0 additions & 69 deletions htdocs/PI/write/responseCode.php

This file was deleted.

11 changes: 0 additions & 11 deletions htdocs/PI/write/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,6 @@
*
/*====================================================== */

/*
* http_response_code() is implemented in php from php 5.4.0 onwards, when we
* upgrade, this block (and the associated file) can be deleted (having checked that http_response_code
* implments all the status codes that we may wish to use).
* See http://stackoverflow.com/questions/3258634/php-how-to-send-http-response-code
* and http://php.net/http_response_code#107261
*/
if (!function_exists('http_response_code')) {
require_once __DIR__ . '/responseCode.php';
}

/**
* following the processign of a write-api request, this function returns any
* object provided in a JSON format. It also sets the http resposne code given
Expand Down

0 comments on commit 1de2ea3

Please sign in to comment.