Home > Article > Backend Development > ThinkPHP3.0 runtime file branch operation_PHP tutorial
STRIP_RUNTIME_SPACE constant was removed in tp3.0. So it's useless.
I just looked at the source code of tp and found that removing whitespace and comments in the code has become the default behavior and is beyond the control of developers.
So the only way is to modify the source code. Modification method:
The last
file_put_contents(RUNTIME_FILE,strip_whitespace('
//Comment out and change to:
file_put_contents(RUNTIME_FILE,'
Or start directly with the strip_whitespace() method in ThinkPHP/Common/common.php
return $content;
Remember to change it back after debugging.