[Vtigercrm-commits] [vtiger-commits] r9040 - /vtigercrm/trunk/include/nusoap/nusoap.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri Aug 18 12:13:04 EDT 2006
Author: richie
Date: Fri Aug 18 10:12:58 2006
New Revision: 9040
Log:
function parse_http_headers changed to use $_SERVER to get the header informations as getallheaders has some issues in windows + PHP 5.1 ---Jeri
Modified:
vtigercrm/trunk/include/nusoap/nusoap.php
Modified: vtigercrm/trunk/include/nusoap/nusoap.php
==============================================================================
--- vtigercrm/trunk/include/nusoap/nusoap.php (original)
+++ vtigercrm/trunk/include/nusoap/nusoap.php Fri Aug 18 10:12:58 2006
@@ -3322,7 +3322,12 @@
$this->request = '';
$this->SOAPAction = '';
- if(function_exists('getallheaders')){
+
+ //Commented to fix the issue in PHP 5 Windows system ---Jeri
+ //when we use getallheaders function we are geting an error description invalid gzip crc value when parsing the response in VB
+ // hence the function is commented out and $_SERVER is used to get all the header informations.
+
+ /*if(function_exists('getallheaders')){
$this->debug("In parse_http_headers, use getallheaders");
$headers = getallheaders();
foreach($headers as $k=>$v){
@@ -3347,7 +3352,7 @@
// should be US-ASCII for HTTP 1.0 or ISO-8859-1 for HTTP 1.1
$this->xml_encoding = 'ISO-8859-1';
}
- } elseif(isset($_SERVER) && is_array($_SERVER)){
+ } else*/if(isset($_SERVER) && is_array($_SERVER)){
$this->debug("In parse_http_headers, use _SERVER");
foreach ($_SERVER as $k => $v) {
if (substr($k, 0, 5) == 'HTTP_') {
More information about the vtigercrm-commits
mailing list