php.de

Zurück   php.de > Webentwicklung > PHP-Fortgeschrittene

PHP-Fortgeschrittene Arbeiten mit PHP ohne Einschränkungen

Antwort
 
LinkBack Themen-Optionen Thema bewerten
Alt 24.11.2004, 15:31  
Gast
 
Beiträge: n/a
Standard [Erledigt] SOAP/Client.php: PHP Fatal error: Method SOAP_Client::__call

Hallo zusammen,

ich versuche gerade einen SOAP/Client.php zu testen und beim Versuch

Code:
require_once "SOAP/Client.php";
erhalte ich die Fehlermeldung

Zitat:
PHP Fatal error: Method SOAP_Client::__call() must take exactly 2 arguments in /usr/local/share/pear/SOAP/Client.php on line 336
Die Funktion __call() in pear/SOAP/Client.php hat 3 Parameter:

Code:
class SOAP_Client extends SOAP_Base
{
[...]
    function &__call($method, &$args, &$return_value)
    {
        // XXX overloading lowercases the method name, we
        // need to look into the wsdl and try to find
        // the correct method name to get the correct
        // case for the call.
        if ($this->_wsdl)
            $this->_wsdl->matchMethod($method);

        $return_value =& $this->call($method, $args);
        return TRUE;
    }
[...]
}
Ich verstehe (vermutlich) grundsätzlich das Problem, jedoch weiß ich nicht, wo ich nach der Ursache suchen sollte. Konfiguration?


Das Basissystem ist FreeBSD 5.3, php5 und pear wurde aus den Ports heraus installiert und sind up-to-date. Folgende (relevante) Pakete habe ich im System:

php5-5.0.2 PHP Scripting Language (Apache Module and CLI)
php5-bz2-5.0.2 The bz2 shared extension for php
php5-ctype-5.0.2 The ctype shared extension for php
php5-curl-5.0.2 The curl shared extension for php
php5-dom-5.0.2 The dom shared extension for php
php5-extensions-1.0 A "meta-port" to install PHP extensions
php5-ftp-5.0.2 The ftp shared extension for php
php5-gd-5.0.2 The gd shared extension for php
php5-gettext-5.0.2 The gettext shared extension for php
php5-iconv-5.0.2 The iconv shared extension for php
php5-ldap-5.0.2 The ldap shared extension for php
php5-mcrypt-5.0.2 The mcrypt shared extension for php
php5-mhash-5.0.2 The mhash shared extension for php
php5-mysql-5.0.2 The mysql shared extension for php
php5-mysqli-5.0.2 The mysqli shared extension for php
php5-openssl-5.0.2 The openssl shared extension for php
php5-pcntl-5.0.2 The pcntl shared extension for php
php5-pcre-5.0.2 The pcre shared extension for php
php5-pear-5.0.2 PEAR framework for PHP
php5-posix-5.0.2 The posix shared extension for php
php5-session-5.0.2 The session shared extension for php
php5-simplexml-5.0.2 The simplexml shared extension for php
php5-soap-5.0.2 The soap shared extension for php
php5-sockets-5.0.2 The sockets shared extension for php
php5-sqlite-5.0.2 The sqlite shared extension for php
php5-tokenizer-5.0.2 The tokenizer shared extension for php
php5-xml-5.0.2 The xml shared extension for php
php5-xmlrpc-5.0.2 The xmlrpc shared extension for php
php5-zlib-5.0.2 The zlib shared extension for php

pear-Archive_Tar-1.2 PEAR tar file management class
pear-Auth-1.2.3 PEAR authentication methods
pear-Auth_SASL-1.0.1_1 PEAR abstraction of various SASL mechanism responses
pear-Console_Getopt-1.2 PEAR command-line option parser
pear-Date-1.4.3 PEAR Date and Time Zone Classes
pear-HTTP_Request-1.2.3 PEAR classes providing an easy way to perform HTTP requests
pear-Mail-1.1.4 PEAR class that provides multiple interfaces for sending em
pear-Mail_Mime-1.2.1_4 PEAR classes to create and decode MIME messages
pear-Net_DIME-0.3 The PEAR::Net_DIME class implements DIME encoding
pear-Net_SMTP-1.2.6_1 PEAR class that provides an implementation of the SMTP prot
pear-Net_Socket-1.0.2 PEAR Network Socket Interface
pear-Net_URL-1.0.14 Easy parsing of URLs
pear-OLE-0.5 PEAR class for reading and writing OLE containers
pear-PEAR-1.3.3.1 PEAR Base System
pear-SOAP-0.8 SOAP Client/Server for PHP
pear-Spreadsheet_Excel_Writer-0.8 PEAR class for writing Microsoft Excel files
pear-XML_Parser-1.2.1 PEAR XML parsing class based on PHP's bundled expat
pear-XML_RPC-1.1.0 PHP implementation of the XML-RPC protocol
pear-XML_Serializer-0.13.0 PEAR Swiss-army knive for reading and writing XML files
pear-XML_Util-1.1.0 PEAR XML utility class


Ist das irgendwie inkompatibel?
php4/php5 Probleme?

Sorry, falls das ein FAQ sein sollte, aber zu mindest die Fehlermeldung als Solche war bei google kaum zu finden, ich schätze daher, daß es ein individuelles Problem meiner Installation ist.

Danke für Eure Tipps!

Gruß
Raphael Becker
  Mit Zitat antworten
Sponsor Mitteilung
PHP Code Flüsterer

Registriert seit: 21.08.2005
Beiträge: 4682
PHP-Kenntnisse:
Fortgeschritten

Alt 24.11.2004, 15:37  
Gast
 
Beiträge: n/a
Standard

was ist denn wenn du ihm genau 2 gibst? meckerst er dann dass er 3 braucht
oder is alles gut?
  Mit Zitat antworten
Alt 24.11.2004, 16:06  
Gast
 
Beiträge: n/a
Standard Re: SOAP/Client.php: PHP Fatal error: Method SOAP_Client::__

Zitat:
Zitat von rabe
Zitat:
PHP Fatal error: Method SOAP_Client::__call() must take exactly 2 arguments in /usr/local/share/pear/SOAP/Client.php on line 336
pear-SOAP-0.8 SOAP Client/Server for PHP

Ist das irgendwie inkompatibel?
php4/php5 Probleme?
Ja.

Zitat:
Zitat von PEAR
# the problem is caused by the __call method which is different under PHP4 and PHP5. I took the solution from Alan's DataObject.
KA, ob der Fehler in RC3 beseitigt ist.
http://pear.php.net/package/SOAP/download
  Mit Zitat antworten
Alt 24.11.2004, 16:42  
Gast
 
Beiträge: n/a
Standard pear-SOAP 0.8 incompatibel zu php5.0.2 ???

Zitat:
Zitat von stef
was ist denn wenn du ihm genau 2 gibst? meckerst er dann dass er 3 braucht
oder is alles gut?
Ehm ... pear/SOAP/Client.php gehört zum Lieferumfang von pear, das ist nicht mein eigener Code.

Man könnte es auch anders ausdrücken:
PEAR funktioniert (bei mir) nicht , d.h. das alleinige Includieren von SOAP/Client.php führt schon zu diesem Fehler.
Ich selbst habe da noch keine einzige Zeile eigenen Code verfasst (abgesehen vom require_once-Aufruf).

Die Frage ist also, wo das Problem steckt, daß pear-SOAP nicht läuft.
Ich kann mir nicht vorstellen (bzw habe auch nichts dazu gefunden), daß PEAR nur mit php4 sauber läuft... oder??

Any Patches? Updates?

MfG
Raphael Becker
  Mit Zitat antworten
Alt 24.11.2004, 16:55  
Gast
 
Beiträge: n/a
Standard Re: SOAP/Client.php: PHP Fatal error: Method SOAP_Client::__

Zitat:
Zitat von meikel
Zitat:
Zitat von rabe
Zitat:
PHP Fatal error: Method SOAP_Client::__call() must take exactly 2 arguments in /usr/local/share/pear/SOAP/Client.php on line 336
pear-SOAP-0.8 SOAP Client/Server for PHP

Ist das irgendwie inkompatibel?
php4/php5 Probleme?
Ja.

Zitat:
Zitat von PEAR
# the problem is caused by the __call method which is different under PHP4 and PHP5. I took the solution from Alan's DataObject.
KA, ob der Fehler in RC3 beseitigt ist.
http://pear.php.net/package/SOAP/download
Hmm, ich habe, bevor ich hier aufgeschlagen bin, die Bug-Datenbank von pear

http://pear.php.net/bugs/search.php?...ame%5B%5D=SOAP

durchsucht und keinen Hinweis auf diese Inkompatiblität gefunden.
Ich bin doch sicher nicht der erste, der pear-SOAP versucht mit php5 zu verwenden?

Zitat:
Zitat von PEAR
I took the solution from Alan's DataObject.
Worauf bezieht sich diese Aussage? Kann ich da händisch was fixen oder gibt es irgendwo patches, die man nur applizieren müsste?

Danke für die Info!

MfG
Raphael Becker
  Mit Zitat antworten
Alt 24.11.2004, 18:10  
Gast
 
Beiträge: n/a
Standard Re: SOAP/Client.php: PHP Fatal error: Method SOAP_Client::__

Zitat:
Zitat von rabe
Worauf bezieht sich diese Aussage? Kann ich da händisch was fixen oder gibt es irgendwo patches, die man nur applizieren müsste?
Darauf: http://cvs.php.net/pear/SOAP/Client.php

Ich würde es mal mit
Code:
pear upgrade soap
versuchen.

So sieht zumindest der Code von Client.php v1.66 aus:
Code:
    public function __call($method, $args) {
  Mit Zitat antworten
Alt 25.11.2004, 09:48  
Gast
 
Beiträge: n/a
Standard Re: SOAP/Client.php: PHP Fatal error: Method SOAP_Client::__

Zitat:
Zitat von meikel
So sieht zumindest der Code von Client.php v1.66 aus:
Code:
    public function __call($method, $args) {
Die Version 1.62.2.4 scheint ein direkter Nachfolger der in RC3 erschienen, siehe http://cvs.php.net/co.php/pear/SOAP/...php?r=1.62.2.4

Funktioniert hier bei mir soweit.
Den diff zwischen 1.62 und 1.62.2.4 habe ich unter http://rabe.uugrn.org/FreeBSD/ports/..._1.62_1.62.2.4
abgelegt.

MfG
  Mit Zitat antworten
Antwort


Themen-Optionen
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
[PHP] preg_replace Fatal Error I-Spy PHP Tipps 2006 7 04.06.2006 20:53
Fatal error: Cannot use object of type FPDF as array in Alpha Centauri PHP Tipps 2006 5 22.03.2006 14:44
Fatal error: Using $this when not PHP Tipps 2006 4 08.03.2006 08:20
Fatal error? Aber wo? Fatal Error PHP Tipps 2007 13 29.12.2005 11:32
Fatal Error PHP Tipps 2005 3 12.05.2005 13:06
Fatal error: Allowed memory size of 8192 bytes exhausted at PHP Tipps 2005 11 06.03.2005 19:26
Fatal error: Call to undefined function: imagecreatefromjpeg DannyD PHP-Fortgeschrittene 10 05.12.2004 21:59
[Erledigt] Fatal error: Cannot redeclare CSQLAdmin PHP Tipps 2004-2 3 28.11.2004 14:42
Fatal error test022 PHP Tipps 2004 2 24.10.2004 15:25
Fatal error Meldung PHP Tipps 2004 1 26.08.2004 10:09
FATAL ERROR stefan-miti PHP Tipps 2004 15 15.08.2004 16:03
Fatal error: Cannot use string offset as an array in ... on PHP Tipps 2004 4 04.08.2004 16:47
Fatal error: Call to undefined function: sqlite_open()..... PHP Tipps 2004 11 01.08.2004 17:44
Fatal error: Call to undefined function: mail() in... PHP Tipps 2004 5 31.07.2004 17:25
[Erledigt] Fatal error: Call to undefined function:... PHP Tipps 2004 8 27.06.2004 12:56

Besucher kamen über folgende Suchanfragen bei Google auf diese Seite
php soapclient, soap_client, soapclient php, soap client php, php soap client, soap/client.php, php soap_client, php soapclient fatal error, method soap_client::__call() must take exactly 2 arguments, php5 fatal error: method soapclient::__call() must take exactly 2 arguments in, require_once(soap/client.php), soap __call, php soap fatal error, require_once(\'soap/client.php\');, soap client.php, php fatal error, php soapclient error, php soapclient download, soap client fatal error, soap php

Alle Zeitangaben in WEZ +2. Es ist jetzt 19:58 Uhr.




Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Aprilia-Forum, Aquaristik-Forum, Liebeskummer-Forum, Zierfisch-Forum, Geizkragen-Forum

Creative Commons License
Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.