CodeIgniter发布1.7.2版
CodeIgniter 发布 1.7.2 版
EllisLab 发布了 CodeIgniter 1.7.2。有什么新内容?主要的更改如下:
兼容 PHP 5.3.0。
新增购物车类库。
改善表单辅助函数。
在公共函数中新增 is_php(),让 PHP 版本比较更方便。
修改 show_error() 以便发送 HTTP 服务器响应码,并且所有内部错误提示都会发送合适的状态码。
修复了很多 BUG。
1.7.2 版已经在 subversion 中存在了很长一段时间了,并且已经于 7 月下旬兼容于 PHP 5.3.0,不过可以理解的是许多用户并没有使用那个开发中的版本。虽然我也希望能有时间为这个版本多增加一些“大改动”的项目,并把版本号变为 1.8,但时间不等人。我们的许多用户都在 Mac 上开发,但 OS X“雪豹”中的 PHP 是 5.3.0,所以与其让用户继续等待不如先推出这个稳定版–毕竟已经 7 个月没有更新了。虽然如此,也还是有一些惊喜和可喜的变化。敬请享用!
以上内容转自http://codeigniter.org.cn/blog。
详细的Change Log:
版本 1.7.2
发布日期:2009年9月11日
SVN 版本: 1737
Libraries
Added a new Cart Class.
Added the ability to pass $config['file_name'] for the File Uploading Class and rename the uploaded file.
Changed order of listed user-agents so Safari would more accurately report itself. (#6844)
Database
Switched from using gettype() in escape() to is_* methods, since future PHP versions might change its output.
Updated all database drivers to handle arrays in escape_str()
Added escape_like_str() method for escaping strings to be used in LIKE conditions
Updated Active Record to utilize the new LIKE escaping mechanism.
Added reconnect() method to DB drivers to try to keep alive / reestablish a connection after a long idle.
Modified MSSQL driver to use mssql_get_last_message() for error messages.
Helpers
Added form_multiselect() to the Form helper.
Modified form_hidden() in the Form helper to accept multi-dimensional arrays.
Modified form_prep() in the Form helper to keep track of prepped fields to avoid multiple prep/mutation from subsequent calls which can occur when using Form Validation and form helper functions to output form fields.
Modified directory_map() in the Directory helper to allow the inclusion of hidden files, and to return FALSE on failure to read directory.
Modified the Smiley helper to work with multiple fields and insert the smiley at the last known cursor position.
General
Compatible with PHP 5.3.0
Modified show_error() to allow sending of HTTP server response codes.
Modified show_404() to send 404 status code, removing non-CGI compatible header() statement from error_404.php template.
Added set_status_header() to the Common functions to allow use when the Output class is unavailable. Common functions to facilitate PHP version comparisons.
Added is_php() to
Added 2 CodeIgniter “cheatsheets” (thanks to DesignFellow.com for this contribution).
1.7.2 修复的 BUG
Fixed assorted user guide typos or examples (#6743, #7214, #7516, #7287, #7852, #8224, #8324, #8349).
Fixed a bug in the Form Validation library where multiple callbacks weren’t working (#6110)
doctype helper default value was missing a “1″.
Fixed a bug in the language class when outputting an error for an unfound file.
Fixed a bug in the Calendar library where the shortname was output for “May”.
Fixed a bug with ORIG_PATH_INFO that was allowing URIs of just a slash through.
Fixed a fatal error in the Oracle and ODBC drivers (#6752)
Fixed a bug where xml_from_result() was checking for a nonexistent method.
Fixed a bug where Database Forge’s add_column and modify_column were not looping through when sent multiple fields.
Fixed a bug where the File Helper was using ‘/’ instead of the DIRECTORY_SEPARATOR constant.
Fixed a bug to prevent PHP errors when attempting to use sendmail on servers that have manually disabled the PHP popen() function.
Fixed a bug that would cause PHP errors in XML-RPC data if the PHP data type did not match the specified XML-RPC type.
Fixed a bug in the XML-RPC class with parsing dateTime.iso8601 data types.
Fixed a case sensitive string replacement in xss_clean()
Fixed a bug in form_textarea() where form data was not prepped correctly.
Fixed a bug in form_prep() causing it to not preserve entities in the user’s original input when called back into a form element
Fixed a bug in _protect_identifiers() where the swap prefix ($swap_pre) was not being observed.
Fixed a bug where the 400 status header sent with the ‘disallowed URI characters’ was not compatible with CGI environments.
Fixed a bug in the typography class where heading tags could have paragraph tags inserted when using auto_typography().
下载1.7.2版:
http://codeigniter.org.cn/downloads


