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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sebastiaan at bns dot nl
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jan 09 15:01:30 2025 UTC