CakePHP Italia

La comunità italiana di CakePHP

CakePHP 3.3.2 released

The CakePHP core team is happy to announce the immediate availability of CakePHP
3.3.2. This is a maintenance release for the 3.3 branch that fixes several
community reported issues.

Bugfixes

You can expect the following changes in 3.3.2. See the changelog for every commit.

  • Session cookies are now only sent by the PSR7 stack when the session is active.
  • Content-Type headers emitted from the PSR7 stack now include the charset.

Contributors to 3.3.2

Thank you to all the contributors that helped make this release happen:

  • Mark Story

As always, we would like to thank all the contributors that opened issues, opened pull requests or updated the documentation.

Continua a leggere

CakePHP 3.3.0-RC1 released

CakePHP 3.3.0-RC1 Released

The CakePHP core team is happy to announce the immediate availability of CakePHP 3.3.0-RC1. This is a release candidate for 3.3.0. 3.3.0 provides a number improvements both large and small to CakePHP. It also deprecates several features that will be removed in 4.0.0.

Upgrading to this Beta

You can use composer to upgrade to the RC version of CakePHP 3.3.0::

php composer.phar require "cakephp/cakephp:3.3.0-RC1"

What's new in 3.3.0?

The migration guide has a complete list of what's new in 3.3.0, and what has been deprecated. We recommend you give that page a read when upgrading.

Bugfixes and Minor Features

This release fixes a few issues identified in the 3.3.0-beta3, as well as the recent bugfixes from master as documented in the 3.2.13 release notes. In addition to those changes 3.3.0-RC1 contains:

  • CakeDatabaseTypeInterface was added. This interface formalizes an implied interface for database type classes. (@davidyell)
  • Middleware objects can be added by their string class name now. (@ADmad)
  • The Mcrypt backend for Security has been deprecated. (@antograssiot)
  • Content-Type headers are now transformed correctly between PSR7 and CakePHP request layers. (@dakota)
  • PHP7 now reports CLI errors with the original file/line number. (@Jippi)

If there are no major issues reported, we will release 3.3.0 stable next week.

As always, a huge thanks to all the community members that helped make this release happen by reporting issues and sending pull requests.

Continua a leggere

CakePHP 2.8.6 Released

The CakePHP core team is happy to announce the immediate availability of CakePHP 2.8.6. This is a maintenance release for the 2.8 branch that fixes several community reported issues.

Bugfixes

You can expect the following changes in 2.8.6. See the changelog for every commit.

  • CakeEmail::deliver() now lets subclasses use the static method. (@kolorafa)
  • Welcome page now correctly displays PDO related errors. (@chinpei215)
  • Query timing metrics are reset on BEGIN/COMMIT/ROLLBACK statements, giving more accurate query timing data. (@Mensler)
  • AuthComponent no longer stores redirect URLs for JSON requests. (@gestudio)
  • Empty strings are removed from the secured field list in FormHelper. (@nojimage)
  • Icelandic locale (is-is) support was added. (@alex2690)
  • Stateless authentication adapters now store their user data on all requests, not just those that require authorization. (@biesbjerg)
  • Plugin associations defined with the short name as a key now behave consistently with other declaration modes. (@psaintjust)
  • Shutdown events are now triggered by the default error handling controllers. (@biesbjerg)
  • CakeResponse::header() now treats null values now works like setting '' as a value. (@markstory)
  • Model::delete() no longer performs joins when simple conditions are used. (@mvdriel)
  • CakeSchema can now change column lengths to the database vendor's defaults. (@andrej-griniuk)
  • A memory leak in the SmtpTransport has been fixed. (@Linnk)

As always, a huge thanks to all the community members that helped make this release happen by reporting issues and sending pull requests.

Continua a leggere

CakePHP 3.2.13 released

The CakePHP core team is happy to announce the immediate availability of CakePHP 3.2.13. This is a maintenance release for the 3.2 branch that fixes several community reported issues and adds a few minor features.

Bugfixes

You can expect the following changes in 3.2.13. See the changelog for changes.

  • The Content-Type header works better in controller integration tests. (@dakota)
  • TreeBehavior no longer allows a node to be its own parent. (@markstory)
  • You can now write integration tests for methods that use secured forms with query string arguments in the URL. (@dakota)
  • FormHelper::error() now allows message translation by rule name, in addition to by error message string. (@oyas)
  • Table::validateUnique() no longer raises an exception when non-scalar values are received. (@markstory)
  • BelongsToMany::replaceLinks() no longer returns true when linked records fail to save because of application rules. (@markstory)
  • An exception will be raised when a Model.afterSave event handler aborts the transaction. (@lorenzo)
  • An optimization made to the DateTimeType has been reverted as it caused issues with user-land plugins. (@markstory)
  • Text::stripLinks() now recursively removes HTML. This method is now deprecated as stripping HTML with regular expressions is almost never truly safe. (@markstory)
  • Using associations that do not exist will now fail with an exception when marshalling data. (@markstory)
  • Cell::__toString() now displays more useful fatal errors in PHP7. (@thinkingmedia)
  • The console TableHelper now correctly handles double-width characters. (@slywalker)

Minor Enhancements

  • Text::truncateByWidth() was added. This method makes it easier to truncate text by its visual width instead of its character length. (@chinpei215)
  • The notExists() and exists() methods were added to QueryExpression. (@skie)
  • A warning is now logged by CakeNetworkResponse when headers have already been sent. (@markstory)

As always, a huge thanks to all the community members that helped make this release happen by reporting issues and sending pull requests.

Continua a leggere

CakePHP 3.3.0-beta3 released

The CakePHP core team is happy to announce the immediate availability of CakePHP 3.3.0-beta2. This is a beta release for the 3.3 release branch. 3.3 provides a number improvements both large and small. It also deprecates several features that will be removed in 4.0.0. We would appreciate any feedback you might have on the new features before their API definitions become stable. In particular for the new PSR7 related features, as we see PSR7 as playing a big part in CakePHP's future.

Upgrading to this Beta

You can use composer to upgrade to the new beta version of CakePHP 3.3.0::

php composer.phar require "cakephp/cakephp:3.3.0-beta3"

What's new in 3.3.0?

The migration guide has a complete list of what's new in 3.3.0, and what has been deprecated. We recommend you give that page a read when upgrading.

Breaking Changes Since beta2

  • CakeHttpMiddlewareStack is now CakeHttpMiddlewareQueue. The new name better reflects the implementation (@ADmad)
  • The allowPartialNulls option in the ExistsIn rule has been renamed to allowNullableNulls. (@ionas)

Bugfixes and Minor Features

This release fixes a few issues identified in the 3.3.0-beta, as well as bugfixes from master.

  • The default ErrorController now always loads the RequestHandlerComponent. (@ADmad)
  • Router methods consistently use static now, making user-land extensions easier. (@skie)
  • BelongsToMany::replaceLinks() now returns false when persisting an entity fails due to application rules. (@markstory)
  • Throwing an exception from a Table's afterSave now aborts the transaction correctly. (@lorenzo)
  • Text::stripLinks() now recursively strips HTML links. This method is also now deprecated. (@markstory)
  • A new exception class for HTTP status code 451 was added. (@Graziel)
  • ExistsIn now has better errors for missing associations. (@burzum)

Unless there are major issues with the 3.3.0-beta3 release, we will have a release candidate and stable release packaged in the 2-3 weeks. The documentation for 3.3.0 is now available in the book.

As always, a huge thanks to all the community members that helped make this release happen by reporting issues and sending pull requests.

Continua a leggere

CakePHP 3.3.0-beta2 released

The CakePHP core team is happy to announce the immediate availability of CakePHP 3.3.0-beta2. This is a beta release for the 3.3 release branch. 3.3 provides a number improvements both large and small. It also deprecates several features that will be removed in 4.0.0. We would appreciate any feedback you might have on the new features before their API definitions become stable. In particular for the new PSR7 related features, as we see PSR7 as playing a big part in CakePHP's future.

Upgrading to this Beta

You can use composer to upgrade to the new beta version of CakePHP 3.3.0:

php composer.phar require "cakephp/cakephp:3.3.0-beta2"

What's new in 3.3.0?

The migration guide has a complete list of what's new in 3.3.0, and what has been deprecated. We recommend you give that page a read when upgrading.

Bugfixes and Minor Features

This release fixes a few issues identified in the 3.3.0-beta, as well as
bugfixes from master.

  • Text::truncateWidth() was added. This method lets you truncate text by a visual width. This is useful when working with languages that have double width characters like Japanese. (@chinpei215)
  • IntegrationTestCase can now correctly stub out the Content-Type header. (@dakota)
  • Allow integration testing of secure post requests with a query string. (@dakota)
  • requestAction() has been deprecated. Use view cells instead.
  • TreeBehavior now disallows nodes from being their own parents. (@markstory)
  • Dispatch Filters are now integrated in the new PSR7 middleware stack for backwards compatibility. (@markstory)
  • HttpClient sends the correct content-type when array data is sent. (@markstory)
  • No exceptions are raised when empty file inputs are uploaded. (@ADmad)
  • FormHelper::error() now allows message translation by rule name, in addition to by error message string. (@oyas)
  • Table::validateUnique() no longer raises an exception when non-scalar values are received. (@markstory)

Unless there are major issues with the 3.3.0-beta release, we will have a release candidate and stable release packaged in the 4-5 weeks. The documentation for 3.3.0 is now available in the book.

As always, a huge thanks to all the community members that helped make this release happen by reporting issues and sending pull requests.

Continua a leggere

CakePHP 3.2.12 released

The CakePHP core team is happy to announce the immediate availability of CakePHP 3.2.12. This is a maintenance release for the 3.2 branch that fixes several community reported issues and adds a few minor features.

Bugfixes

You can expect the following changes in 3.2.12. See the changelog for changes.

  • The console TableHelper more gracefully handles empty data. (@thinkingmedia)
  • Junction table conditions are now reset correctly. (@ulistaerk)
  • ExistsIn and IsUnique application rules are no longer invoked twice. (@markstory)
  • Generated junction table classes now inherit the connection of the table defining the BelongsToMany association. This makes it easier to have plugin specific connections. (@markstory)
  • URLs with uppercase protocols are now autolinked by TextHelper. (@ADmad)
  • Cache groups defined in injected cache engine instances are now registered correctly. (@dakota)
  • Request::header() can now read the Content-Length and Content-Type header values. (@markstory)

Minor Enhancements

  • Schema reflection will now include per-column collation data when available. (@chinpei215)
  • TimeHelper now supports an outputTimezone config option. This lets you set a global output timezone making it easier to localise formatted dates/times. (@markstory)
  • HtmlHelper::image() now supports CID: URLs. (@markstory)
  • Table::findOrCreate() now supports an atomic option. (@thinkingmedia)
  • Performance optimizations in find(list) (@dakota)
  • Folder::inCakePath() is now deprecated. Use Folder::inPath() instead. (@markstory)

As always, a huge thanks to all the community members that helped make this release happen by reporting issues and sending pull requests.

Continua a leggere