Think3.1.3 solve problems running in PHP5.5 + Environment

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.