cvs: /php4/sapi/isapi php4isapi.c

From: Date: Sun, 06 Feb 2000 22:15:04 +0000
Subject: cvs: /php4/sapi/isapi php4isapi.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-9882@lists.php.net to get a copy of this message
zeev Sun Feb 6 14:15:04 2000 EDT Modified files: /php4/sapi/isapi php4isapi.c Log: Fix buglet Index: php4/sapi/isapi/php4isapi.c diff -u php4/sapi/isapi/php4isapi.c:1.15 php4/sapi/isapi/php4isapi.c:1.16 --- php4/sapi/isapi/php4isapi.c:1.15 Sun Feb 6 13:59:58 2000 +++ php4/sapi/isapi/php4isapi.c Sun Feb 6 14:14:34 2000 @@ -462,7 +462,6 @@ static SYSTEM_INFO si; static MEMORY_BASIC_INFORMATION mi; static DWORD dwOldProtect; - HSE_SEND_HEADER_EX_INFO header_info; GetSystemInfo(&si); @@ -487,16 +486,20 @@ CG(unclean_shutdown)=1; - header_info.pszStatus = "500 Internal Server Error"; + if (!SG(headers_sent)) { + HSE_SEND_HEADER_EX_INFO header_info; + + header_info.pszStatus = "500 Internal Server Error"; #ifndef WITH_ZEUS - header_info.cchStatus = strlen(header_info.pszStatus); + header_info.cchStatus = strlen(header_info.pszStatus); #endif - header_info.pszHeader = "Content-Type: text/html\r\n\r\n"; - header_info.cchHeader = strlen(header_info.pszHeader); + header_info.pszHeader = "Content-Type: text/html\r\n\r\n"; + header_info.cchHeader = strlen(header_info.pszHeader); - lpECB->dwHttpStatusCode = 500; - lpECB->ServerSupportFunction(lpECB->ConnID, HSE_REQ_SEND_RESPONSE_HEADER_EX, &header_info, NULL, NULL); - SG(headers_sent)=1; + lpECB->dwHttpStatusCode = 500; + lpECB->ServerSupportFunction(lpECB->ConnID, HSE_REQ_SEND_RESPONSE_HEADER_EX, &header_info, NULL, NULL); + SG(headers_sent)=1; + } sapi_isapi_ub_write("Stack Overflow", sizeof("Stack Overflow")-1); } else { ExitThread(0);

« previous php.version4 (#9882) next »