Some of the issues referenced in PHP 5.4
question I. PHP notice:only variable references should be returned by reference
When you debug a function
function &getsellerlist ($request) { $request->setversion (ebay_wsdl_version); return ($res = & $this->call (' getsellerlist ', $request););}
Return error: PHP notice:only variable references should be returned by reference In/projects/ebay_api/tradding_api/ebatnssample s/ebatns/ebatns_serviceproxy.php on line 979
Modified to:
function &getsellerlist ($request) { $request->setversion (ebay_wsdl_version); $res = & $this->call (' getsellerlist ', $request); return ($res);}
Can.
question II. PHP Fatal error:call-time pass-by-reference has been removed
Run code return error: [30-jan-2013 10:51:57 UTC] PHP Fatal error:call-time pass-by-reference has been removed in/projects/ebay_api/tr adding_api/ebatnssamples/ebatns/ebatns_client.php on line 245
Because the PHP5.4 syntax changes, the 245 lines of code
$this->_parser = &new ebatns_responseparser (& $this, $tns, $this->_parseroptions);
Modified to:
$this->_parser = &new ebatns_responseparser ($this, $tns, $this->_parseroptions);
Can.