* Fixed bug: PHP 5.3 throws a deprecation warning in typo3/mod/tools/em/class.em_soap...
authorIngo Renner <ingo.renner@typo3.org>
Wed, 6 Aug 2008 18:37:16 +0000 (18:37 +0000)
committerIngo Renner <ingo.renner@typo3.org>
Wed, 6 Aug 2008 18:37:16 +0000 (18:37 +0000)
* Fixed bug: PHP 5.3 throws a warning in class.t3lib_div.php on line 3286: strcmp() expects parameter 1 to be string, array given

git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3944 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_div.php
typo3/mod/tools/em/class.em_soap.php

index 85629c5..b1248c1 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@
 2008-08-06  Ingo Renner  <ingo@typo3.org>
 
        * Fixed bug: PHP 5.3 throws a warning in class.t3lib_befunc.php on line 3348: trim() expects parameter 1 to be string, array given
+       * Fixed bug: PHP 5.3 throws a deprecation warning in typo3/mod/tools/em/class.em_soap.php on lines 108, 112, 115, 213, 218: Assigning the return value of new by reference is deprecated
+       * Fixed bug: PHP 5.3 throws a warning in class.t3lib_div.php on line 3286: strcmp() expects parameter 1 to be string, array given
 
 2008-08-05  Dmitry Dulepov  <dmitry@typo3.org>
 
index 9e8116a..18cb7bd 100755 (executable)
@@ -3283,7 +3283,7 @@ final class t3lib_div {
                $params = t3lib_div::_GET();
 
                foreach($getParams as $k => $v) {
-                       if (strcmp($v,''))      {
+                       if (!is_array($v) && strcmp($v,''))     {
                                $params[$k]=$v;
                        } else unset($params[$k]);
                }
index e7f87be..07019d7 100644 (file)
@@ -105,14 +105,14 @@ class em_soap {
 
                switch ($this->options['implementation']) {
                        case 'nusoap':
-                               $this->client =& new soapclient($this->options['wsdl'], true);
+                               $this->client = new soapclient($this->options['wsdl'], true);
                                $this->client->getProxy();
                                break;
                        case 'pearsoap':
-                               $this->client =& new SOAP_Client($this->options['wsdl'], true);
+                               $this->client = new SOAP_Client($this->options['wsdl'], true);
                                break;
                        case 'phpsoap':
-                               $this->client =& new SoapClient($options['wsdl'],(array)$options['soapoptions']);
+                               $this->client = new SoapClient($options['wsdl'],(array)$options['soapoptions']);
                                break;
                        default:
                                $this->client = false;
@@ -210,12 +210,12 @@ class em_soap {
                $header = null;
                if ($this->options['authentication'] == 'headers') {
                        if ($this->reactid) {
-                               $header =& new SoapHeader(
+                               $header = new SoapHeader(
                                '','HeaderAuthenticate',
                                (object)array('reactid' => $this->reactid), 1
                                );
                        } elseif ($this->username && $this->password) {
-                               $header =& new SoapHeader(
+                               $header = new SoapHeader(
                                '','HeaderLogin',
                                (object)array(
                                'username' => $this->username,