ID:               34729
 User updated by:  matthew_peters at uk dot ibm dot com
 Reported By:      matthew_peters at uk dot ibm dot com
-Status:           No Feedback
+Status:           Open
 Bug Type:         SOAP related
 Operating System: WinXP
 PHP Version:      5CVS-2005-10-04 (snap)
 Assigned To:      dmitry
 New Comment:

I just checked and still fails in the same way - that is it fails and
works alternately - with the latest from snaps, that is, a build dated
1014. Note I am using Windows, not Linux. I just also checked that it
does work perfectly with my php5-RC1. I would try to build a debug
build and look at the problem myself but my attempt to build with the
soap extension enabled failed at the link step...I am not exactly sure
what the right config options are. 

BTW we had a similar (but not identical) problem with the SDO extension
that turned out to be our code calling xmlCleanupParser and reinstalling
the default input handlers so they no longer went through PHP. That
would cause the failures on every call from the second onward though. 

The exact code I am using, cut and pasted, is:
the client:

<?php
ini_set("soap.wsdl_cache_enabled", 0);
$client = new SoapClient("stockquote.wsdl", array("trace" => 1,
"exceptions" => 0));
print($client->getQuote("ibm"));
?>

the server:<?php
$quotes = array("ibm" => 98.45);

function getQuote($symbol) {
        global $quotes;
        return $quotes[$symbol];
}

ini_set("soap.wsdl_cache_enabled", 0);

$server = new SoapServer("C:\Program Files\Apache
Group\Apache2\htdocs\stockquote.wsdl");
$server->addFunction("getQuote");
$server->handle();

?>

The wsdl is a bit larger and is taken from the article, unchanged
except for the 
    <soap:address location='http://localhost/server1.php'/> 
at the bottom.


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

[2005-10-12 01:00:05] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

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

[2005-10-04 19:00:55] [EMAIL PROTECTED]

I can't reproduce on Linux.
Please provide the reproduce case you've used (the code from the
article works perfectly here).

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

[2005-10-04 18:29:58] [EMAIL PROTECTED]

Assigned to the maintainer.

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

[2005-10-04 14:43:13] matthew_peters at uk dot ibm dot com

Description:
------------
Running the samples in http://www.zend.com/php5/articles/php5-SOAP.php

Specifically using the sample client5.php to talk to server1.php, both
locally onthe same apache.

Works OK with 5.1.0RC1 but every two times pops up dialog box "Apache
HTTP server has encountered a problem..." with 5.1.0RC2. Actually
Apache is still running. 

Environment:
PHP 5.1.0RC2 - reports build date Oct 3 2005 20:23:30
WinXP
Apache 2.0
just the one php_soap.dll extension enabled in php.ini

I have also tried with 0916 build of RC2 (see stack trace below)

Reproduce code:
---------------
Use the samples straight from the SOAP article. Run at least twice as
working alternates with failing. 


Expected result:
----------------
Normal results as I see with RC1

Actual result:
--------------
Dialog box as mentioned,  

I also tried with a copy of RC2 I took from snaps at 200509160830 and
built with debug, and went into the debugger - the stack trace was:
NTDLL! 77f585c0()
_emalloc(unsigned int 10, char * 0x014165d0 `string', unsigned int 240,
char * 0x00000000, unsigned int 0) line 182 + 63 bytes
_estrdup(const char * 0x007d47f0, char * 0x014165d0 `string', unsigned
int 240, char * 0x00000000, unsigned int 0) line 403 + 25 bytes
sapi_get_default_content_type(void * * * 0x00b0a678) line 240 + 29
bytes
php_apache_request_ctor(request_rec * 0x005e1508, php_struct *
0x005e2da0, void * * * 0x00b0a678) line 419 + 12 bytes
php_handler(request_rec * 0x005e1508) line 535 + 17 bytes
LIBHTTPD! 6ff0155f()



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


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

Reply via email to