{"id":23179,"date":"2024-11-21T09:16:54","date_gmt":"2024-11-21T01:16:54","guid":{"rendered":"https:\/\/fwq.ai\/blog\/23179\/"},"modified":"2024-11-21T09:16:54","modified_gmt":"2024-11-21T01:16:54","slug":"thinkphp6-1-2%e7%89%88%e6%9b%b4%e6%96%b0%e4%ba%86%e5%93%aa%e4%ba%9b%e5%86%85%e5%ae%b9","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/23179\/","title":{"rendered":"ThinkPHP6.1.2\u7248\u66f4\u65b0\u4e86\u54ea\u4e9b\u5185\u5bb9"},"content":{"rendered":"<\/p>\n<blockquote><p>\n  V6.1.2\u7248\u672c\u4e3b\u8981\u589e\u52a0\u4e86PHP8.2\u517c\u5bb9\u4ee5\u53caThinkORM3.0\u7248\u672c\u7684\u652f\u6301\u3002\n<\/p><\/blockquote>\n<h4>\u4e3b\u8981\u66f4\u65b0<\/h4>\n<ul>\n<li>\n<p>\u517c\u5bb9PHP8.2<\/p>\n<\/li>\n<li>\n<p>\u79fb\u9664\u57fa\u7840\u7c7b\u4e2dFilesystem\u7533\u660e\u5c5e\u6027<\/p>\n<\/li>\n<li>\n<p>fix: container\u7ed1\u5b9a\u53c2\u6570\u65f6\u53ef\u53d8\u53c2\u6570\u5904\u7406<\/p>\n<\/li>\n<li>\n<p>File\u7c7b\u589e\u52a0setExtension\u65b9\u6cd5\u8bbe\u7f6e\u4fdd\u5b58\u6587\u4ef6\u7684\u5b9e\u9645\u540e\u7f00\u540d<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<\/li>\n<li>\n<p>ValidateRule\u6ce8\u91ca\u8c03\u6574<\/p>\n<\/li>\n<li>\n<p>Fix: \u53c2\u6570\u7c7b\u578b\u4e3a\u591a\u4e2a\u65f6\u5bfc\u81f4\u7684\u62a5\u9519<\/p>\n<\/li>\n<li>\n<p>\u66f4\u65b0think-orm\u7248\u672c\u4f9d\u8d56\u652f\u63013.0<\/p>\n<\/li>\n<\/ul>\n<h4>ThinkORM3.0\u4e3b\u8981\u66f4\u65b0<\/h4>\n<ul>\n<li>\n<p>\u57fa\u4e8ePHP8.0\u91cd\u6784<\/p>\n<\/li>\n<li>\n<p>\u5b8c\u5168\u517c\u5bb92.0\u7248\u672c<\/p>\n<\/li>\n<li>\n<p>\u66f4\u65b0\u4ee3\u7801\u89c4\u8303<\/p>\n<\/li>\n<li>\n<p>\u4e25\u683c\u53c2\u6570\u7c7b\u578b<\/p>\n<\/li>\n<\/ul>\n<p>\u540e\u671f6.0\u53ca6.1\u7248\u672c\u5c06\u4f1a\u505c\u6b62\u529f\u80fd\u66f4\u65b0\uff0c\u7eb3\u5165LTS\u7248\u672c\u7ef4\u62a4\u8ba1\u5212\u3002\u57fa\u4e8ePHP8.0\u7684ThinkPHP8\u5df2\u7ecf\u5728\u8fdb\u884c\u6700\u7ec8\u6d4b\u8bd5\u4e86\uff0c\u76f8\u4fe1\u5f88\u5feb\u5c31\u80fd\u53d1\u5e03\u6b63\u5f0f\u7248\u672c\u4e86^_^<\/p>\n<h4>\u7248\u672c\u7ef4\u62a4\u8ba1\u5212\uff086.0\u4e4b\u524d\u7248\u672c\u5b98\u65b9\u4e0d\u518d\u66f4\u65b0\u548c\u7ef4\u62a4\uff0c\u5305\u62ec\u5b89\u5168\u66f4\u65b0\uff09<\/h4>\n<table width=\"770\">\n<thead>\n<tr>\n<th>ThinkPHP\u7248\u672c<\/th>\n<th>\u53d1\u5e03\u65f6\u95f4<\/th>\n<th>BUG\u4fee\u590d<\/th>\n<th>\u5b89\u5168\u66f4\u65b0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>6.0\uff08PHP7.1+\uff09<\/td>\n<td>2019\u5e7410\u670824\u65e5<\/td>\n<td>2024\u5e7410\u670824\u65e5<\/td>\n<td>2024\u5e7410\u670824\u65e5<\/td>\n<\/tr>\n<tr>\n<td>6.1\uff08PHP7.2+\uff09<\/td>\n<td>2022\u5e7410\u670825\u65e5<\/td>\n<td>2024\u5e7410\u670824\u65e5<\/td>\n<td>2024\u5e7410\u670824\u65e5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<blockquote>\n<p>6.1\u548c6.0\u7248\u672c\u5c5e\u4e8e\u540c\u4e00\u4e2a\u5927\u7248\u672c\uff0c\u7ef4\u62a4\u5468\u671f\u76f8\u540c<\/p>\n<\/blockquote>\n<h2> \u662f\u4ec0\u4e48<\/h2>\n<p>thinkphp\u5c5e\u4e8e\u4e00\u79cd\u514d\u8d39\u7684\u5f00\u53d1\u6846\u67b6\uff0c\u80fd\u591f\u7528\u4e8e\u5f00\u53d1\u524d\u7aef\u7f51\u9875\uff0c\u6700\u65e9thinkphp\u662f\u4e3a\u4e86\u7b80\u5316\u5f00\u53d1\u800c\u4ea7\u751f\u7684\uff0cthinkphp\u540c\u65f6\u4e5f\u662f\u9075\u5faaApache2\u534f\u8bae\uff0c\u6700\u521d\u662f\u4eceStruts\u6f14\u53d8\u8fc7\u6765\uff0c\u4e5f\u628a\u56fd\u5916\u4e00\u4e9b\u597d\u7684\u6846\u67b6\u6a21\u5f0f\u8fdb\u884c\u5229\u7528\uff0c\u4f7f\u7528\u9762\u5411\u5bf9\u8c61\u7684\u5f00\u53d1\u7ed3\u6784\uff0c\u517c\u5bb9\u4e86\u5f88\u591a\u6807\u7b7e\u5e93\u7b49\u6a21\u5f0f\uff0c\u5b83\u80fd\u591f\u66f4\u65b9\u4fbf\u548c\u5feb\u6377\u7684\u5f00\u53d1\u548c\u90e8\u7f72\u5e94\u7528\uff0c\u5f53\u7136\u4e0d\u4ec5\u4ec5\u662f\u4f01\u4e1a\u7ea7\u5e94\u7528\uff0c\u4efb\u4f55php\u5e94\u7528\u5f00\u53d1\u90fd\u53ef\u4ee5\u4ecethinkphp\u7684\u7b80\u5355\u3001\u517c\u5bb9\u548c\u5feb\u901f\u7684\u7279\u6027\u4e2d\u53d7\u76ca\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fThinkPHP6.1.2\u7248\u66f4\u65b0\u4e86\u54ea\u4e9b\u5185\u5bb9\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>V6.1.2\u7248\u672c\u4e3b\u8981\u589e\u52a0\u4e86PHP8.2\u517c\u5bb9\u4ee5\u53caThinkORM3.0\u7248\u672c\u7684\u652f\u6301\u3002 \u4e3b\u8981\u66f4\u65b0 \u517c\u5bb9PHP8.2 \u79fb\u9664\u57fa\u7840\u7c7b\u4e2dFilesystem\u7533\u660e\u5c5e\u6027 fix: container\u7ed1\u5b9a\u53c2\u6570\u65f6\u53ef\u53d8\u53c2\u6570\u5904\u7406 File\u7c7b\u589e\u52a0setExtension\u65b9\u6cd5\u8bbe\u7f6e\u4fdd\u5b58\u6587\u4ef6\u7684\u5b9e\u9645\u540e\u7f00\u540d \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b ValidateRule\u6ce8\u91ca\u8c03\u6574 Fix: \u53c2\u6570\u7c7b\u578b\u4e3a\u591a\u4e2a\u65f6\u5bfc\u81f4\u7684\u62a5\u9519 \u66f4\u65b0think-orm\u7248\u672c\u4f9d\u8d56\u652f\u63013.0 ThinkORM3.0\u4e3b\u8981\u66f4\u65b0 \u57fa\u4e8ePHP8.0\u91cd\u6784 \u5b8c\u5168\u517c\u5bb92.0\u7248\u672c \u66f4\u65b0\u4ee3\u7801\u89c4\u8303 \u4e25\u683c\u53c2\u6570\u7c7b\u578b \u540e\u671f6.0\u53ca6.1\u7248\u672c\u5c06\u4f1a\u505c\u6b62\u529f\u80fd\u66f4\u65b0\uff0c\u7eb3\u5165LTS\u7248\u672c\u7ef4\u62a4\u8ba1\u5212\u3002\u57fa\u4e8ePHP8.0\u7684ThinkPHP8\u5df2\u7ecf\u5728\u8fdb\u884c\u6700\u7ec8\u6d4b\u8bd5\u4e86\uff0c\u76f8\u4fe1\u5f88\u5feb\u5c31\u80fd\u53d1\u5e03\u6b63\u5f0f\u7248\u672c\u4e86^_^ \u7248\u672c\u7ef4\u62a4\u8ba1\u5212\uff086.0\u4e4b\u524d\u7248\u672c\u5b98\u65b9\u4e0d\u518d\u66f4\u65b0\u548c\u7ef4\u62a4\uff0c\u5305\u62ec\u5b89\u5168\u66f4\u65b0\uff09 ThinkPHP\u7248\u672c \u53d1\u5e03\u65f6\u95f4 BUG\u4fee\u590d \u5b89\u5168\u66f4\u65b0 6.0\uff08PHP7.1+\uff09 2019\u5e7410\u670824\u65e5 2024\u5e7410\u670824\u65e5 2024\u5e7410\u670824\u65e5 6.1\uff08PHP7.2+\uff09 2022\u5e7410\u670825\u65e5 2024\u5e7410\u670824\u65e5 2024\u5e7410\u670824\u65e5 6.1\u548c6.0\u7248\u672c\u5c5e\u4e8e\u540c\u4e00\u4e2a\u5927\u7248\u672c\uff0c\u7ef4\u62a4\u5468\u671f\u76f8\u540c \u662f\u4ec0\u4e48 thinkphp\u5c5e\u4e8e\u4e00\u79cd\u514d\u8d39\u7684\u5f00\u53d1\u6846\u67b6\uff0c\u80fd\u591f\u7528\u4e8e\u5f00\u53d1\u524d\u7aef\u7f51\u9875\uff0c\u6700\u65e9thinkphp\u662f\u4e3a\u4e86\u7b80\u5316\u5f00\u53d1\u800c\u4ea7\u751f\u7684\uff0cthinkphp\u540c\u65f6\u4e5f\u662f\u9075\u5faaApache2\u534f\u8bae\uff0c\u6700\u521d\u662f\u4eceStruts\u6f14\u53d8\u8fc7\u6765\uff0c\u4e5f\u628a\u56fd\u5916\u4e00\u4e9b\u597d\u7684\u6846\u67b6\u6a21\u5f0f\u8fdb\u884c\u5229\u7528\uff0c\u4f7f\u7528\u9762\u5411\u5bf9\u8c61\u7684\u5f00\u53d1\u7ed3\u6784\uff0c\u517c\u5bb9\u4e86\u5f88\u591a\u6807\u7b7e\u5e93\u7b49\u6a21\u5f0f\uff0c\u5b83\u80fd\u591f\u66f4\u65b9\u4fbf\u548c\u5feb\u6377\u7684\u5f00\u53d1\u548c\u90e8\u7f72\u5e94\u7528\uff0c\u5f53\u7136\u4e0d\u4ec5\u4ec5\u662f\u4f01\u4e1a\u7ea7\u5e94\u7528\uff0c\u4efb\u4f55php\u5e94\u7528\u5f00\u53d1\u90fd\u53ef\u4ee5\u4ecethinkphp\u7684\u7b80\u5355\u3001\u517c\u5bb9\u548c\u5feb\u901f\u7684\u7279\u6027\u4e2d\u53d7\u76ca\u3002 \u4ee5\u4e0a\u5c31\u662fThinkPHP6.1.2\u7248\u66f4\u65b0\u4e86\u54ea\u4e9b\u5185\u5bb9\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-23179","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/23179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=23179"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/23179\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=23179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=23179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=23179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}