Provides various official and user-released code examples. For more information, see Think3.1.3. After Think3.1.3 runs in the PHP5.5 + environment, many Note errors may occur, that is, preg_replace needs to be replaced with preg_replace_callback.
Unzip the rarfile in the attachment and overwrite it to the root directory of the website. The modified file is:
ThinkPHP \ Core \ Dispatcher. class
ThinkPHP \ Template \ ThinkTemplate. class
We recommend that you back up the original file before overwriting.
This attachment is only applicable when ThinkPHP3.1.3 (core board) runs in the PHP5.5 + environment.
Because PHP5.5 + discards the preg_replace function. Replace it with preg_replace_callback.
The Runtime folder was not deleted in the previous test. The template class has a problem and has been fixed.
ThinkPHP.rar (10.45 KB download: 128 times)
AD: truly free, domain name + VM + enterprise mailbox = 0 RMB