CodeIgniter 3.1.1 发布了,CodeIgniter 是一个简单快速的PHP MVC 框架。
改变:
Added
E_PARSEto the list of error levels detected by the shutdown handler.
BUG修复:
Fixed a bug (#4732) - :doc:`Session Library <libraries/sessions>` triggered errors while writing data for a newly-created sessions with the 'memcached' driver.
Fixed a regression (#4736) - :doc:`Image Manipulation Library <libraries/image_lib>` processing via ImageMagick didn't work.
Fixed a bug (#4737) - :doc:`Query Builder <database/query_builder>` didn't add an
OFFSETwhenLIMITis zero or unused.Fixed a regression (#4739) - :doc:`Email Library <libraries/email>` doesn't properly separate attachment bodies from headers.
Fixed a bug (#4754) - :doc:`Unit Testing Library <libraries/unit_testing>` method
result()didn't translateres_datatype.Fixed a bug (#4759) - :doc:`Form Validation <libraries/form_validation>`, :doc:`Trackback <libraries/trackback>` and XML-RPC <libraries/xmlrpc> libraries treated URI schemes in a case-sensitive manner.
Fixed a bug (#4762) - :doc:`Cache Library <libraries/caching>` 'file' driver method
get_metadata()checked TTL time againstmtimeinstead of the cache item's creation time.Fixed a bug where :doc:`File Uploading Library <libraries/file_uploading>` generated error messages on PHP 7.1.
Fixed a bug (#4780) - :doc:`compatibility function <general/compatibility_functions>`
hex2bin()didn't reject inputs of type "resource".Fixed a bug (#4787) - :doc:`Form Validation Library <libraries/form_validation>` method
valid_email()triggeredE_WARNINGwhen input emails have empty domain names.Fixed a bug (#4805) - :doc:`Database <database/index>` driver 'mysqli' didn't use the
MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERTflag properly.Fixed a bug (#4808) - :doc:`Database <database/index>` method
is_write_type()only looked at the first line of a queries usingRETURNINGwith the 'postgre', 'pdo/pgsql', 'odbc' and 'pdo/odbc' drivers.Fixed a bug where :doc:`Query Builder <database/query_builder>` method
insert_batch()tried to execute an unsupported SQL query with the 'ibase' and 'pdo/firebird' drivers.Fixed a bug (#4809) - :doc:`Database <database/index>` driver 'pdo/mysql' didn't turn off
AUTOCOMMITwhen starting a transaction.Fixed a bug (#4822) - :doc:`CAPTCHA Helper <helpers/captcha_helper>` didn't clear expired PNG images.
Fixed a bug (#4823) - :doc:`Session Library <libraries/sessions>` 'files' driver could enter an infinite loop if
mbstring.func_overrideis enabled.Fixed a bug (#4851) - :doc:`Database Forge <database/forge>` didn't quote schema names passed to its
create_database()method.Fixed a bug (#4863) - :doc:`HTML Table Library <libraries/table>` method
set_caption()was missing method chaining support.Fixed a bug (#4843) - :doc:`XML-RPC Library <libraries/xmlrpc>` client class didn't set a read/write socket timeout.
下载地址:
为了升级php7,入坑升级3.1。
3.1的bug真多
2升级3需要修改文件名字 原morder 需要修改成 Morder
事务需要 trans_start trans_begin区别
还有2版中没有session类,升级后,如果不想用框架中的session类,还需要手动修改框架注释掉session类调用。
还有好些改动看文档升级指南了
引用来自“ChappaKo”的评论
啊,我厂还在用 2.2.0……引用来自“乌龟壳”的评论
感觉python跑在资源受限的环境下没啥用