Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.14.0

Bug #2466 Calling any Object Constructor Causes Error
Submitted: 2004-10-05 22:34 UTC
From: jfxberns at hotmail dot com Assigned: arnaud
Status: Closed Package: SOAP
PHP Version: 5.0.2 OS: Fedora Core 2
Roadmaps: (Not assigned)    
Subscription  


 [2004-10-05 22:34 UTC] jfxberns at hotmail dot com
Description: ------------ Any time an object constructor is called, a fatal error occurs when 'SOAP/Client.php" is included. Fails on development server with PHP 5.0.2 (PEAR packages installed and .configure as follows) INSTALLED PACKAGES: =================== PACKAGE VERSION STATE Archive_Tar 1.1 stable Console_Getopt 1.2 stable HTTP_Request 1.2.3 stable Mail_Mime 1.2.1 stable Net_DIME 0.3 beta Net_Socket 1.0.2 stable Net_URL 1.0.14 stable PEAR 1.3.2 stable SOAP 0.8RC3 beta XML_RPC 1.1.0 stable './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml' '--enable-soap' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-magic-quotes' '--with-mysql' '--enable-discard-path' '--with-pear' '--enable-sockets' '--enable-track-vars' '--enable-versioning' '--with-zlib' ---------------- End Config Notes ---------------- Also fails on deployment server (also PHP 5.0.2, PEAR Packages installed and PHP .configure as follows) jberns@server1 [~]# pear list INSTALLED PACKAGES: =================== PACKAGE VERSION STATE Archive_Tar 1.1 stable Console_Getopt 1.2 stable DB 1.6.2 stable HTTP 1.2.2 stable HTTP_Request 1.2 stable Mail 1.1.3 stable Mail_Mime 1.2.1 stable Net_DIME 0.3 beta Net_SMTP 1.2.3 stable Net_Socket 1.0.1 stable Net_URL 1.0.10 stable PEAR 1.3.2 stable SOAP 0.8RC2 beta XML_HTMLSax 2.1.2 stable XML_Parser 1.0.1 stable XML_RPC 1.1.0 stable './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml' '--enable-soap' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-magic-quotes' '--with-mysql' '--enable-discard-path' '--with-pear' '--enable-sockets' '--enable-track-vars' '--enable-versioning' '--with-zlib' Reproduce code: --------------- <?php require_once 'SOAP/Client.php'; $client = new SOAP_Client("http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl"); ?> Replacing "SOAP-Client" with anthing (i.e. "foo") produces the same result: <?php require_once 'SOAP/Client.php'; $client = new foo("http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl"); ?> Expected result: ---------------- An instance of an object to be created! Actual result: -------------- Fatal error: Method SOAP_Client::__call() must take exactly 2 arguments in /usr/local/lib/php/SOAP/Client.php on line 336

Comments

 [2004-10-08 14:14 UTC] dst at dmc dot de
I can confirm this Bug for PHP5.0.2 running on Windows XP.
 [2004-10-11 22:33 UTC] jkearsc at gmail dot com
I also get this error. Any ideas how to fix it?
 [2004-10-12 05:50 UTC] dhewe at transtv dot co dot id
Doesn'n work on PHP 5.0.2 running on Win 2000.
 [2004-10-13 08:39 UTC] andrew at breaks dot com dot au
Same error on 5.0.1 on FreeBSD
 [2004-10-13 19:26 UTC] toni dot viemero at iki dot fi
DB_DataObject has a solution for PHP4/PHP5 compatible __call() If maintainer of SOAP could take a look at http://cvs.php.net/co.php/pear/DB_DataObject/DataObject.php?r=1.300#171
 [2004-10-21 17:54 UTC] arnaud
Can you try latest CVS branch ZEND_ENGINE_1 I used DataObject solution.
 [2004-10-21 18:32 UTC] jfxberns at hotmail dot com
I would be glad to try it--if i could find it! Can you point it out to me? I tried looking--but I didn't find it. Can you give me a URL on http://cvs.php.net ?
 [2004-10-21 20:30 UTC] jfxberns at hotmail dot com
Yeah, that works, baby! You rock!