Ho installato PEAR SOAP per utilizzare delle API di un prodotto server via web service... Sarebbe la prima volta che faccio qualcosa del genere, ma l'ho fatto in altri contesti e non sarebbero cose dell'altro mondo.
Sul mio pc di sviluppo ho al momento l'ultimo easyphp con PHP 5.3 e utilizzo Eclipse PDT.
Lancio lo script che al momento importa il package delle API e provo a connettermi al server via web service - premetto che in Java la connessione funziona e il package API php non è altro la conversione del package Java rilasciato dalla community che gestisce il prodotto server.
Il problema non è del prodotto e del relativo package API (almeno al momento), bensì della mia configurazione locale di PHP con il PEAR SOAP.
Appena lancio lo script e controllo i risultati, la console mi dà una serie di warning che qui riporto:
Deprecated: Assigning the return value of new by reference is deprecated in C:\Programmi\EasyPHP-5.3.3.1\php\PEAR\HTTP\Request.php on line 736
Strict Standards: Non-static method PEAR::getStaticProperty() should not be called statically, assuming $this from incompatible context in C:\Programmi\EasyPHP-5.3.3.1\php\PEAR\HTTP\Request.php on line 724
PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\Programmi\EasyPHP-5.3.3.1\php\PEAR\SOAP\WSDL.php on line 214
PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\Programmi\EasyPHP-5.3.3.1\php\PEAR\SOAP\WSDL.php on line 791
PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\Programmi\EasyPHP-5.3.3.1\php\PEAR\SOAP\WSDL.php on line 1159
PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\Programmi\EasyPHP-5.3.3.1\php\PEAR\SOAP\WSDL.php on line 1685
PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\Programmi\EasyPHP-5.3.3.1\php\PEAR\HTTP\Request.php on line 412
PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\Programmi\EasyPHP-5.3.3.1\php\PEAR\HTTP\Request.php on line 736
PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\Programmi\EasyPHP-5.3.3.1\php\PEAR\HTTP\Request.php on line 749
PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\Programmi\EasyPHP-5.3.3.1\php\PEAR\HTTP\Request.php on line 794
PHP Strict Standards: Redefining already defined constructor for class Net_URL in C:\Programmi\EasyPHP-5.3.3.1\php\PEAR\Net\URL.php on line 124
PHP Strict Standards: Non-static method PEAR::getStaticProperty() should not be called statically, assuming $this from incompatible context in C:\Programmi\EasyPHP-5.3.3.1\php\PEAR\HTTP\Request.php on line 724
PHP Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\Programmi\EasyPHP-5.3.3.1\php\PEAR\HTTP\Request.php on line 739
PHP Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\Programmi\EasyPHP-5.3.3.1\php\PEAR\HTTP\Request.php on line 741
PHP Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\Programmi\EasyPHP-5.3.3.1\php\PEAR\HTTP\Request.php on line 771
In che modo posso risolvere?
Io avevo pensato ad installare una versione più vecchia di PHP ma, a prescindere da easyPHP, volevo capire come posso installare diverse versioni di PHP e farle lavorare insieme, in base al progetto che sto tentando di far girare. Non mi serve che tutte siano configurate con Apache - la console mi è più che sufficiente - anche se la cosa è interessante.
Oppure cos'altro potrei fare? Vorrei evitare di smantellare il pc che ho al momento :D anche perché devo solamente testare, sviluppare qualche prototipo e scrivere due righe in proposito...
Grazie.