Several problems referenced in PHP5.4 I. PHPNotice: & nbsp; Onlyvariablereferencesshouldbereturnedbyreference function & amp; GetSellerList ($ request) {$ request-& gt; setVersion (several issues referenced in ebay php 5.4
Problem I. PHP Notice: Only variable references shocould be returned by reference
When debugging a function
function &GetSellerList($request) { $request->setVersion(EBAY_WSDL_VERSION); return ($res = & $this->call('GetSellerList', $request););}
Error returned: PHP Notice: Only variable references shocould be returned by reference in/projects/ebay_api/tradding_api/EbatNsSamples/EbatNs/EbatNs_ServiceProxy.php on line 979
To:
function &GetSellerList($request) { $request->setVersion(EBAY_WSDL_VERSION); $res = & $this->call('GetSellerList', $request); return ($res);}
You can.
Problem II. PHP Fatal error: Call-time pass-by-reference has been removed
Error returned when running the code: [30-Jan-2013 10:51:57 UTC] PHP Fatal error: call-time pass-by-reference has been removed in/projects/ebay_api/tradding_api/EbatNsSamples/EbatNs/EbatNs_Client.php on line 245
Because the PHP5.4 syntax is changed, the 245 lines of code are
$this->_parser = &new EbatNs_ResponseParser( &$this, $tns, $this->_parserOptions );
To:
$this->_parser = &new EbatNs_ResponseParser( $this, $tns, $this->_parserOptions );
You can.