PHPFatalerror: Call-timepass-by-referencehasbeenremove_PHP tutorial

Source: Internet
Author: User
PHPFatalerror: Call-timepass-by-referencehasbeenremove. This means that the reference parameter has been removed during the call, that is, the function cannot be called using function ($. solution: View Your php. ini configuration file, put the allo
This means that the reference parameter has been removed during the call, that is, the function cannot be called through function (& $.

Solution:

Check your php. ini configuration file, set the allow_call_time_pass_reference parameter to true, and restart the server.

==============================================
In addition, this error may occur when the previous php code is upgraded to php 5.4:

When we use a function (or class) like this, an error is generated:

Foo (& $ var );

In fact, this is an error, but the previous error level is only Deprecated.

The correct method of use should be when the function is defined:

Function foo (& $ var ){
// Other code
}

The parameter can be directly transferred during the call: foo ($ var );

Callback ($ a) calls the function by passing parameters in this way. Solution: View Your php. ini configuration file and put the allo...

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.