CakePHP 3.3.10 发布了,CakePHP 是一个运用了诸如 ActiveRecord、Association Data Mapping、Front Controller 和 MVC 等著名设计模式的快速开发框架。该项目主要目标是提供一个可以让各种层次的 PHP 开发人员快速地开发出健壮的 Web 应用,而又不失灵活性。
更新内容:
Bug 修复
-
Literal
%
in string template variables no longer cause errors. -
Query Logging now correctly replaces placeholders for
IN
clauses. -
BreadcrumbsHelper::render()
now returns''
when there are no crumbs. This makes its return type consistent in all cases. -
MissingHelper errors raised when rendering an error page, no longer cause a blank page response.
-
PaginatorComponent
now caps thelimit
option to themaxLimit
option if both are specified. -
All SQL dialects now correctly generate default values for
DATETIME
andTIMESTAMP
columns for values other thanCURRENT_TIMESTAMP
. -
Debugger
now HTML encodes error message contents. Previously, applications running in debug mode could be vulnerable to reflected cross-site-script ing (XSS) in some scenarios. Thank you to Teppei Fukuda for reporting this issue via the security disclosure process.
新功能
The 3.3.10 introduces a few new features:
-
FlashComponent
now supports aduplicate
option. When disabled, this option will prevent duplicate messages from being set. -
IntegrationTestCase::assertResponseRegExp()
andIntegrationTestCase::assertResponseNotRegExp()
were added. -
MissingElementException
provides more context now.