Today, I suddenly found that the installed host control panel reported this error, but the function can still be used normally. I found two solutions online. I hope the following methods will help you. the error message is as follows: Warning: Call-timepass-B... today, I suddenly found that the installed host control panel reported this error, but the function can still be used normally. I found two solutions online. I hope the following methods will help you.
The error message is as follows:
Warning: Call-time pass-by-reference has been deprecated in E: Website Directory www Directory a. php on line 46
Warning: Call-time pass-by-reference has been deprecated in E: www Directory a. php on line 47
Warning: Call-time pass-by-reference has been deprecated in E: www Directory a. php on line 47
Warning: Call-time pass-by-reference has been deprecated in E: Website Directory www Directory a. php on line 48
Warning: Call-time pass-by-reference has been deprecated in E: Website Directory www Directory a. php on line 49
Warning: Call-time pass-by-reference has been deprecated in E: Website Directory www Directory a. php on line 51
Warning: Call-time pass-by-reference has been deprecated in E: Website Directory www Directory a. php on line 56
Warning: Call-time pass-by-reference has been deprecated in E: Website Directory www Directory a. php on line 56 // phprm.com
The solution is as follows:
Method 1:Change display_errors = on of php. ini to display_errors = off // (no error is displayed). However, this method is not very good, but does not display errors. In fact, errors still exist.
Method 2:
1. search for the keyword allow_call_time_pass_reference in PHP. ini and create it by yourself.
2. change Off to On, and the Web Server will be OK when it is restarted ~
Allow_call_time_pass_reference = Off to allow_call_time_pass_reference = On
By the way, the meaning of the allow_call_time_pass_reference parameter is explained: whether to enable the mandatory parameter to be passed by reference when the function is called.
This method is not supported and may not be supported in future PHP/Zend versions. we recommend that you specify which parameters should be passed by reference in function definition, we encourage you to disable this option and ensure that the script runs properly to ensure that the script can run in future versions. every time you use this feature, you will receive a warning, parameters are passed by value instead of by reference.
It is not recommended to pass parameters by reference during function calling because it affects code cleanliness. if the function parameter is not declared as a reference, A function can modify its parameters without writing a document. to avoid its side effects, it is best to specify the parameter only when the function declaration needs to be passed through reference.
Permanent address:
Reprint at will ~ Please bring the tutorial URL ^