summaryrefslogtreecommitdiff
path: root/main/SAPI.c
diff options
context:
space:
mode:
authorEdin Kadribasic <edink@php.net>2003-06-03 10:06:45 +0000
committerEdin Kadribasic <edink@php.net>2003-06-03 10:06:45 +0000
commitb7713f411e468c01f4f6a5d3eae5f9441101ca12 (patch)
tree3e804969848551714cfe19cf15d8578950205876 /main/SAPI.c
parenta516171decc62a433d56648e27dfc659f8f481e5 (diff)
downloadphp-git-b7713f411e468c01f4f6a5d3eae5f9441101ca12.tar.gz
Fix for #23902 by Shane.
Removed bogus recommendation from php.ini files. # Basic authentication is actually possible # usign IIS + PHP cgi countrary to our current docs
Diffstat (limited to 'main/SAPI.c')
-rw-r--r--main/SAPI.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/main/SAPI.c b/main/SAPI.c
index 94a333c967..43bcef7259 100644
--- a/main/SAPI.c
+++ b/main/SAPI.c
@@ -456,6 +456,12 @@ static int sapi_extract_response_code(const char *header_line)
static void sapi_update_response_code(int ncode TSRMLS_DC)
{
+ /* if the status code did not change, we do not want
+ to change the status line, and no need to change the code */
+ if (SG(sapi_headers).http_response_code == ncode) {
+ return;
+ }
+
if (SG(sapi_headers).http_status_line) {
efree(SG(sapi_headers).http_status_line);
SG(sapi_headers).http_status_line = NULL;