高性能 PHP 框架,Phalcon 2.0.7 发布

jopen 9年前

PhalconPHP 是一个使用 C 扩展开发的 PHP Web 框架,提供高性能和低资源占用。

Phalcon 是一个开源的、全堆栈的 PHP 5 框架,使用 C 扩展编写,专门为高性能优化。无需学习和使用 C 语言,所有函数都以 PHP 类的方式曾现。Phalcon 是一个松耦合的框架。

使用时需在 php.ini 中添加:extension=phalcon.so

Phalcon 2.0.7 发布,此版本更新内容如下:

  • Image\Adapter\Gd::save() no longer fails if the method or the instance is created with a filename without an extension

  • Fixed segfault in Image\Adapter\Imagick::text()

  • Exceptions thrown in Volt compiler are now Phalcon\Mvc\View\Engine\Exception

  • Now you can import macros from other files using {% include "file.volt" %}

  • Undefined function calls fall back to macro calls in Volt

  • Automatic bound parameters in Mvc\Model\Criteria now uses a different prefix than Mvc\Model\Query\Builder to avoid collissions

  • Added Cache\Multiple::flush() to flush the cache backends added to the multiple system

  • Fixed Session\Bag::remove()

  • Session\Bag::destroy() eliminates any temporary data in the variables bag

  • afterCreate/afterUpdate are only called if saving related records was successful

  • Added an optional parameter removeData to Session\Adapter::remove() to remove any data in $_SESSION that belongs to the uniqueId or the whole session data

  • Now session variables making use of unique prefixes use # as internal separator

  • Added parameter the changing operator for conditions in method Mvc\Model\Criteria::fromImput() #10749

  • Added \Phalcon\Queue\Beanstalk::listTubes() to get list of a tubes

  • Added a fix to avoid that a table present in many sub-queries causes invalid SQL generation

  • Add CookieInterface, update Cookie and Cookies to use this interface - Decoupling Cookies and Cookie - Check Session state before using it in Cookie. #10789

  • Fixed merge of Phalcon\Config instances containing objects different than Phalcon\Config compatible instances

  • When creating tables in Postgres, inline PRIMARY keys are now escaped properly#10797

  • Fixed incorrect generation of SELECT COUNT(\*) causing unexpected exceptions when phqlLiterals is disabled

  • Added Phalcon\Security\Random - secure random number generator class. Provides secure random number generator which is suitable for generating session key in HTTP cookies, etc

下载:https://github.com/phalcon/cphalcon/archive/phalcon-v2.0.7.zip