Server migration PHP version may be caused by different problems

Source: Internet
Author: User
Today, after the server has been migrated, the foreground can be displayed and called Normally, login background display 500 error, generally in this case to see the core jump file, the view found login.php file did not call. Because the login.php file cannot be found, it proves that there is a syntax error in the file.

Open Server error message found. Fatal error:call-time pass-by-reference has been removed

After finding the data found that their original server environment is version 5.2, replaced the server later upgraded to the 5.4 version, so there is a parameter delivery error.

Fatal error:call-time pass-by-reference has been removed

When PHP is upgraded to 5.5, the following error message will appear during program execution

Fatal error:call-time pass-by-reference has been removed,

That is, the new version is not allowed in the function call, in the way of reference, such as Getformmethod (& $method),

This method of parameter passing is not allowed and can be written when the function is defined

Function Getformmethod (& $method) {},

When called

Getformmethod ($method);

The above content to give you a brief introduction, the server migrated PHP version of the different may be induced problems, I hope that everyone in the future work to learn some help.

The above describes the server migration PHP version may be caused by different issues, including aspects of the content, I hope the PHP tutorial interested in a friend helpful.

  • Related Article

    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.