Today, when writing a reference, the following error occurs: Warning: Call-timepass-by-referencehasbeendeprecated-argumentpassedbyvalue; Ifyouw.
Today, when writing a reference, the following error occurs: Warning: Call-time pass-by-reference has been deprecated-argument passed by value; If you wocould like to pass it by reference, modify the declaration of getimagesize (). if you wowould 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. later I learned that this method was no longer supported and may not be supported in future PHP/Zend versions.
Solution
First, change display_errors = on of php. ini to display_errors = off (no error is displayed)
Method 2: convert allow_call_time_pass_reference = Off to allow_call_time_pass_reference = On
The above is to modify php. ini, but if you do not have the permission to modify the program, the following is a simple example. the code that may cause problems is as follows:
- Function test1 ($ a, $ B ){
- $ B = "fun_test1 ";
- Return;
- }
- $ A = "a_value ";
- $ B = "B _value ";
- Test1 ($ a, & $ B );
The code is as follows:
- Function test2 ($ a, & $ B ){
- $ B = "fun_test2 ";
- Return;
- }
- $ A = "a_value ";
- $ B = "B _value ";
- Test2 ($ a, $ B );