Warning suddenly appeared when writing a reference today: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of getimagesize(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer error, I later found out that the reason is that this method has been deprecated and is not available in PHP /Zend is likely to be no longer supported in future versions
Solution
The first method is to change the display_errors = on in php.ini to display_errors = off (do not display errors)
The second method, allow_call_time_pass_reference = Off becomes allow_call_time_pass_reference = On
The above is to modify php.ini, but if you do not have permission to modify the program, let me give a simple example below
Problems may occur
The code is as follows
|
Copy code
|
||||
function test1($a,$b){
|