Server migration PHP version of different possible problems _php instance

Source: Internet
Author: User

Today, after the server did a migration, the front desk can be normal display and call, log in the background to display 500 errors, generally in this case to see the core jump file, the view found login.php file and did not call. Because the login.php file is not found, it proves that there are grammatical errors in the file.

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

After finding 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 pass error.

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

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

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

That is, the new version has not allowed the use of references in function calls, such as Getformmethod (& $method),

Such 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 you briefly introduced, the Server migration PHP version may be caused by different problems, I hope that the future of our work to learn help.

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.