note 114517 added to function.http-response-code

From: Date: Mon, 03 Mar 2014 07:44:43 +0000
Subject: note 114517 added to function.http-response-code
Groups: php.notes 
Request: Send a blank email to php-notes+get-198767@lists.php.net to get a copy of this message
It's not mentioned explicitly, but the return value when SETTING, is the OLD status code. e.g. <?php $a = http_response_code(); $b = http_response_code(202); $c = http_response_code(); var_dump($a, $b, $c); // Result: // int(200) // int(200) // int(202) ?> ---- Server IP: 64.71.164.2 Probable Submitter: 74.50.59.98 ---- Manual Page -- http://php.net/manual/en/function.http-response-code.php Edit -- https://master.php.net/note/edit/114517 Del: integrated -- https://master.php.net/note/delete/114517/integrated Del: useless -- https://master.php.net/note/delete/114517/useless Del: bad code -- https://master.php.net/note/delete/114517/bad+code Del: spam -- https://master.php.net/note/delete/114517/spam Del: non-english -- https://master.php.net/note/delete/114517/non-english Del: in docs -- https://master.php.net/note/delete/114517/in+docs Del: other reasons-- https://master.php.net/note/delete/114517 Reject -- https://master.php.net/note/reject/114517 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#198767) next »