Home > Article > Backend Development > Use case management platform maintenance records
The work requires maintaining a use case management platform, mainly optimizing individual function points. This platform saves test cases for each project in each period, as well as use case query, management, review and other functions.
First build a simulated online environment locally. xampp+php+mysql, copy the platform source code files to the xampp/htdocs/ directory. Open the browser and visit: http://localhost/xxx.php to access the local simulation environment.
Optimization point 1: Delete invalid js, css, etc. that cause the resource waiting time to be too long.
Solution: Use browser F12 to check the warning items of network connection timeout and no resource return, locate the position of the resource request statement in the source code, comment it out, and the problem is solved.
Optimization point 2: The function of replying to use case review emails is invalid.
Solution: To avoid suspicion, the problem will not be described in detail. Listed below are several key points in the solution process:
1) The local PHP version should be newer than the online version, resulting in a local error under the same source code:
Fatal error: Call-time pass-by-reference has been removed in D:Program Filesxampphtdocsxxxxxxxxx.php on line xx
The cause of the problem should be: the reference parameter writing syntax is different between different versions of PHP. Reference: Here
New version of php, when the function is defined:
<span>function myFunc<span>(<span>&<span>$arg<span>) <span>{ <span>do something<span>... <span>}</span></span></span></span></span></span></span></span></span>
When the function is called:
myFunc<span>(<span>$var<span>)<span>;<span>//Call myFunc</span></span></span></span></span>
That is, when the new version of php function is called, there is no & before the parameter.
The above introduces the use case management platform maintenance records, including aspects of the content. I hope it will be helpful to friends who are interested in PHP tutorials.