Home » Web Services » SOAP » Bug #6744
Invalid Header
Details
| Submitted | 2006-02-10 12:58 UTC |
|---|---|
| From | mvonarx at tiscali dot ch |
| Assigned | yunosh |
| Status | Closed |
| Package | SOAP |
| PHP Version | 4.4.2 |
| OS | winxpsp2 |
| Roadmaps | (Not assigned) |
Comments
[2006-02-10 12:58 UTC] mvonarx at tiscali dot ch
Description:
------------
I always get 'malformed header from script' in my apache2 error.log
no service can receive soap answers do to this bug.
Test script:
---------------
solution:
change lines 259 and 262 in file SOAP/Server.php (inside function _sendResponse)
to the following:
-----
$hdrs = $hdrs_type . ' ' . $this->__options['http_status_fault'] . "\r\n";
$response = $this->fault->message();
and:
-----
$hdrs = $hdrs_type . ' ' . $this->__options['http_status_success'] . "\r\n";
}
[2006-03-10 08:15 UTC] ixti at pitfall dot ru
You can also just replace ' with " on lines 259 and 262
$hdrs = "$hdrs_type " . $this->__options['http_status_fault'] .
"\r\n";
$response = $this->fault->message();
-----
and:
-----
$hdrs = "$hdrs_type " . $this->__options['http_status_success'] .
"\r\n";
}