The runtime file branch operation of ThinkPHP3.0. STRIP_RUNTIME_SPACE constant is removed in tp3.0. So it is useless. After reading the tp source code, we found that the removal of blank spaces and comments in the code has become the default behavior. the developer cannot control the STRIP_RUNTIME_SPACE constant and is removed in tp3.0. So it is useless.
After reading the source code of tp just now, it is found that the removal of white space and comments in the code has become the default behavior, and developers cannot control it.
So only the source code is modified. Modification method:
In ThinkPHP/Common/runtime. php, the last
File_put_contents (RUNTIME_FILE, strip_whitespace (' // Comment out and change it:
File_put_contents (RUNTIME_FILE ,'
Or the strip_whitespace () method in ThinkPHP/Common/common. php can be directly started.
Return $ content;
After debugging, remember to change it back.
The http://www.bkjia.com/PHPjc/477478.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/477478.htmlTechArticleSTRIP_RUNTIME_SPACE constant is removed in tp3.0. So it is useless. After reading the source code of tp just now, it is found that the removal of white space and comments in the code has become the default behavior, which is uncontrollable for developers...