Go Class ' Think\log ' not found

Source: Internet
Author: User

Transferred from: http://www.thinkphp.cn/topic/26815.html

Solve the occasional Class ' think\log ' not Found's wonderful problem (not every time must be, occasionally delete the cache can be resolved, occasionally delete the cache page does not), php5.3 version of the bug (PHP 5.4.21 has fixed this bug), Set_error_ Handler handler function cannot invoke Spl_autoload_register to load the log class from the problem
Workaround:
Files: thinkphp/library/think/think.class.php
Location: Storage::connect (Storage_type); Add the following line of code Version_compare (php_version, ' 5.4.21 ', ' < ') && Log::info; pre-loading the Log class before Error_Handler
Reason reference:
Http://stackoverflow.com/questions/1942507/set-error-handler-function-not-calling-autoload]
https://bugs.php.net/bug.php?id=47987
https://bugs.php.net/bug.php?id=65322

Go Class ' Think\log ' not found

Related Article

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.