PHP 框架 CodeIgniter 3.1.7 发布,包含变更和错误修复

来源: OSCHINA
编辑:
2018-01-14 07:43:27

CodeIgniter 3.1.7 已发布,CodeIgniter 是一个简单快速的 PHP MVC 框架。该版本一些变更和错误修复,主要如下:

- 更改:更新了缓存、电子邮件、表单验证、加载器和分页库;弃用 CAPTCHA 助手的 create_captcha() 函数
- 错误修复:数据库、数据库实用程序、查询生成器和会话库;URL 助手;$config['allow_get_array'] 处理

详细更新内容

Release Date: Jan 13, 2018

General Changes

  • Updated Form Validation Library rule valid_email to use INTL_IDNA_VARIANT_UTS46 for non-ASCII domain names.

  • Updated Email Library to use INTL_IDNA_VARIANT_UTS46 for non-ASCII domain names.

  • Updated Loader Library method model() to log both CI_Model class loading and individual models’ initialization.

  • Updated Pagination Library to preserve previously set attributes while calling initialize().

  • Updated Cache Library to automatically add items to cache on increment()decrement() calls for missing keys.

  • Deprecated usage of CAPTCHA Helper function create_captcha() with parameters other than $data.

Bug fixes for 3.1.7

  • Fixed a regression (#5276) - Database Utilities method backup() generated incorrect INSERT statements with the ‘mysqli’ driver.

  • Fixed a regression where Database Results method field_data() returned incorrect type names.

  • Fixed a bug (#5278) - URL Helper function auto_link() didn’t detect trailing slashes in URLs.

  • Fixed a regression (#5282) - Query Builder method count_all_results() breaks ORDER BY clauses for subsequent queries.

  • Fixed a bug (#5279) - Query Builder didn’t account for already escaped identifiers while applying database name prefixes.

  • Fixed a bug (#5331) - URL Helper function auto_link() converted e-mail addresses starting with ‘www.’ to both “url” and “email” links.

  • Fixed a bug where $config['allow_get_array'] defaulted to FALSE if it didn’t exist in the config file.

  • Fixed a bug (#5379) - Session Library would incorrectly fail to obtain a lock that it already has on PHP 7 with the ‘memcached’ driver.

完整更新日志发布地址

源码下载:

展开阅读全文
点击加入讨论🔥(18) 发布并加入讨论🔥
本篇精彩评论

引用来自“晨雨零稀”的评论

有laravel,这些就看不上了,功能太少
还有,Laravel作者Taylor Otwell之前是一个dotNET开发者.
其创业时选择了PHP,框架用的就是CodeIgniter,还给CodeIgniter弄了个IoC.
人家CodeIgniter可是一线CMS开发商在开发实践中总结的框架.
反观Laravel呢?一个dotNET开发者搞得玩意,还号称给艺术家使用的优美框架,这脸皮.

要说功能,Swoole引擎有的功能,Laravel都没有.
2018-01-14 13:04
7
举报

引用来自“晨雨零稀”的评论

有laravel,这些就看不上了,功能太少

引用来自“eechen”的评论

还有,Laravel作者Taylor Otwell之前是一个dotNET开发者.
其创业时选择了PHP,框架用的就是CodeIgniter,还给CodeIgniter弄了个IoC.
人家CodeIgniter可是一线CMS开发商在开发实践中总结的框架.
反观Laravel呢?一个dotNET开发者搞得玩意,还号称给艺术家使用的优美框架,这脸皮.

要说功能,Swoole引擎有的功能,Laravel都没有.
@eechen 说这些有什么用,市场会做出选择
2018-01-14 15:11
1
举报

引用来自“玖伍贰柒”的评论

CI4是不是凉了啊?
有可能😄😄😄😄还不如就按现在的模式发展呢,开箱即用,减少历史包袱。
2018-01-14 11:37
1
举报
18 评论
6 收藏
分享
返回顶部
顶部