Download TP 3.2.3 and upgrade your local TP3.2.2. Found some still not fixed and new bug (welcome communication, if need to reprint, please famous from [email protected]):
1) file thinkphp/library/behavior/tokenbuildbehavior.class.php line 47th:
Original code: $tokenValue = $tokenType (Microtime (TRUE));
should read: $tokenValue = is_callable ($tokenType)? $tokenType (Microtime (TRUE)): MD5 (Microtime (true));
Otherwise it will: Execute Error!
2) File: thinkphp/library/think/upload/driver/bcs/requestcore.class.php start:
Should be the beginning of the following 3 lines namespace comment out, or will error repeating definition!
Use Think\upload\driver\bcs\bcs_requestcore;use think\upload\driver\bcs\bcs_responsecore;use THink\Upload\Driver\ Bcs\bcs_requestcore_exception;
3) file: thinkphp/library/behavior/writehtmlcachebehavior.class.php The local cache should be saved only when the HTTP header is 2xx
1 Filter criteria file name is not empty
2 and HTTP header is 2xx
Should read as follows:
Namespace Behavior;use think\storage;/** * system behavior extension: Static cache write */class writehtmlcachebehavior{ //Behavior extension the execution portal must be run Public function run (& $content) { //2014-11-28 modified if there is an HTTP 4xx 3xx 5xx header, disable storage //2014-12-1 modify the injected URL to prevent generation, example such as/game/lst/sorttype/hot/-e8-90-8c-e5-85-94-e7-88-b1-e6-b6-88-e9-99-a4/- E8-bf-9b-e5-87-bb-e7-9a-84-e9-83-a8-e8-90-bd/-e9-a3-8e-e4-ba-91-e5-a4-a9-e4-b8-8b/index.shtml if (C (' HTML_ cache_on ') && defined (' Html_file_name ') &&!preg_match ('/status.*[345]{1}\d{2}/i ', implode (', Headers_list ())) &&!preg_match ('/(-[a-z0-9]{2}) {3,}/i ', html_file_name) ) { //static file write Storage::p ut (html_file_name, $content, ' HTML ');}}}
4) File: thinkphp/library/think/storage/driver/file.class.php line 45th:
Original code: mkdir ($dir, 0755,true);
should read: mkdir ($dir, 0777,true);
Otherwise, there will be a write permission problem in some hosts, such as Win VPS, write failure.
original by [email protected]
thinkphp 3.2.3 Bug List (2015-1-15)