ID:               41366
 Updated by:       [EMAIL PROTECTED]
 Reported By:      sebastiaan at bns dot nl
-Status:           Open
+Status:           Bogus
 Bug Type:         SOAP related
 Operating System: Debian
 PHP Version:      5.2.2
 New Comment:

PHP doesn't generate any errors.


Previous Comments:
------------------------------------------------------------------------

[2007-05-11 16:50:36] sebastiaan at bns dot nl

Nothing strangely enough..

------------------------------------------------------------------------

[2007-05-11 15:18:54] [EMAIL PROTECTED]

What's in the error_log?

------------------------------------------------------------------------

[2007-05-11 15:16:08] 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
)
 


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=41366&edit=1

Reply via email to