PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Web Services » SOAP » Bug #6744

Invalid Header

Details

Submitted2006-02-10 12:58 UTC
Frommvonarx at tiscali dot ch
Assignedyunosh
StatusClosed
PackageSOAP
PHP Version4.4.2
OSwinxpsp2
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";
}