From: sebastiaan at bns dot nl
Operating system: Debian
PHP version: 5.2.2
PHP Bug Type: SOAP related
Bug description: $SoapServer->handle () generates 500 internal server error
Description:
------------
Server->handle () generates a 500 internal server error.
When calling server a 500 err-code is returned. ( With SoapClient ) of PHP
everything works as it should but clients software generates incorrect
Soap-message.
Reproduce code:
---------------
// Server.example.php
$SoapServer= new SoapServer(null, array('uri' => "http://test-uri/"));
$data = ( isset ( $HTTP_RAW_POST_DATA ) ) ? $HTTP_RAW_POST_DATA :
file_get_contents ( 'php://input' );
$SoapServer->handle ( $data );
// getheaders.php
$url = 'http://localhost/soap/server.example.php';
print_r(get_headers($url));
print_r(get_headers($url, 1));
?>
Expected result:
----------------
Array
(
[0] => HTTP/1.1 200 OK
[1] => Date: Fri, 11 May 2007 15:12:27 GMT
[2] => Server: Apache/2.2.3
[3] => X-Powered-By: PHP/5.2.2
[4] => Content-Length: 278
[5] => Connection: close
[6] => Content-Type: text/xml; charset=utf-8
)
Array
(
[0] => HTTP/1.1 200 OK
[Date] => Fri, 11 May 2007 15:12:27 GMT
[Server] => Apache/2.2.3
[X-Powered-By] => PHP/5.2.2
[Content-Length] => 278
[Connection] => close
[Content-Type] => text/xml; charset=utf-8
)
Actual result:
--------------
Array
(
[0] => HTTP/1.1 500 Internal Service Error
[1] => Date: Fri, 11 May 2007 15:12:27 GMT
[2] => Server: Apache/2.2.3
[3] => X-Powered-By: PHP/5.2.2
[4] => Content-Length: 278
[5] => Connection: close
[6] => Content-Type: text/xml; charset=utf-8
)
Array
(
[0] => HTTP/1.1 500 Internal Service Error
[Date] => Fri, 11 May 2007 15:12:27 GMT
[Server] => Apache/2.2.3
[X-Powered-By] => PHP/5.2.2
[Content-Length] => 278
[Connection] => close
[Content-Type] => text/xml; charset=utf-8
)
--
Edit bug report at http://bugs.php.net/?id=41366&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=41366&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=41366&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=41366&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41366&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=41366&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41366&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41366&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41366&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41366&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41366&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=41366&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=41366&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41366&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41366&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41366&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41366&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41366&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41366&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41366&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41366&r=mysqlcfg