#35677 [Opn->Asn]: Using PDO with SOAP (Webservices) causes errors.
ID: 35677
Updated by: sniper@php.net
Reported By: prefab5 at hotmail dot com
-Status: Open
+Status: Assigned
Bug Type: SOAP related
Operating System: Windows
PHP Version: 5CVS-2005-12-15 (snap)
-Assigned To:
+Assigned To: dmitry
Previous Comments:
------------------------------------------------------------------------
[2005-12-15 10:33:55] prefab5 at hotmail dot com
Description:
------------
When connecting to a SoapServer that also includes PDO to create a
database connection, the SoapServer stops sending SOAP-ENV resulting in
a "Fatal error: Uncaught SoapFault exception: [Client] looks like we got
no XML document in..."
Using mysqli to connect to a database within the SoapServer (you
actually call PDO/mysqli from within the class that the SoapServer
uses) works fine and directly calling the class itself also causes no
problems.
PHP doesn't crash, but sometimes Apache (2.0.55) does.
Reproduce code:
---------------
http://www.mindstix.com/persistenceTestServer.zip
Expected result:
----------------
Count: 1
Count: 2
Count: 3
Actual result:
--------------
Fatal error: Uncaught SoapFault exception: [Client] looks like we got
no XML document in C:\test\webservices\persistenceTestClient.php:6
Stack trace: #0 [internal function]: SoapClient->__call('count', Array)
#1 C:\test\webservices\persistenceTestClient.php(6): SoapClient->count()
#2 {main} thrown in C:\test\webservices\persistenceTestClient.php on
line 6
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35677&edit=1
Thread (6 messages)