Several minor issues referenced in PHP5.4

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.