Home > php教程 > php手册 > Server migration, problems that may be caused by different PHP versions

Server migration, problems that may be caused by different PHP versions

WBOY
Release: 2016-07-06 13:30:41
Original
1620 people have browsed it

After the server was migrated today, the front desk can be displayed and called normally. When logging in, a 500 error is displayed in the backend. Generally, in this case, the core jump file must be checked. After checking, it is found that the login.php file is not called. Because the login.php file is not called. If the login.php file is not found, it proves that there is a syntax error in this file. Open the server error message and find. Fatal error: Call-time

After the server was migrated today, the front desk can be displayed and called normally. When logging in, a 500 error is displayed in the backend. Generally, in this case, the core jump file must be checked. After checking, it is found that the login.php file is not called. Because the login.php file is not called. If the login.php file is not 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);




source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template