php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41366 $SoapServer->handle () generates 500 internal server error
Submitted: 2007-05-11 15:16 UTC Modified: 2007-05-16 13:02 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: sebastiaan at bns dot nl Assigned:
Status: Not a bug Package: SOAP related
PHP Version: 5.2.2 OS: Debian
Private report: No CVE-ID: None
 [2007-05-11 15:16 UTC] sebastiaan at bns dot nl
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
)
 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-05-11 15:18 UTC] tony2001@php.net
What's in the error_log?
 [2007-05-11 16:50 UTC] sebastiaan at bns dot nl
Nothing strangely enough..
 [2007-05-16 13:02 UTC] tony2001@php.net
PHP doesn't generate any errors.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 05:01:33 2024 UTC