Home >Backend Development >PHP Tutorial >Server migration, problems that may be caused by different php versions, migration php_PHP tutorial

Server migration, problems that may be caused by different php versions, migration php_PHP tutorial

WBOY
WBOYOriginal
2016-07-12 09:03:14899browse

Server migration, problems that may be caused by different php versions, migration of php

After migrating the server today, the front desk can be displayed and called normally, and the backend shows a 500 error when logging in, generally In this case, you have to check the core jump file. After checking, it is found that the login.php file is not called. Because the login.php file cannot be found, it proves that there is a syntax error in this file.
Open the server error message and find that Fatal error: Call-time pass-by-reference has been removed

After searching for information, I found that my original server environment was version 5.2, and I upgraded to version 5.2 after changing the server. Version 5.4, so a parameter passing error occurred.

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

When PHP is upgraded to 5.5, it will appear during program execution. The following error message is

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

means that the new version no longer allows the use of references when calling functions, such as getFormMethod(& $method),

is no longer allowed. You can write

when defining the function. function getFormMethod(&$method){},

when calling.

getFormMethod($method);



www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1082703.htmlTechArticleServer migration, problems that may be caused by different php versions. Migrate php. After migrating the server today, the front desk can work normally. Display and call, the login background displays a 500 error, generally this situation...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn