Skip to content

Commit

Permalink
Merge branch '2.0.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
andresgutierrez committed Sep 25, 2015
2 parents 880b4fd + ff17a9c commit c8d4916
Show file tree
Hide file tree
Showing 281 changed files with 18,617 additions and 14,786 deletions.
37 changes: 27 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,28 @@
# [2.0.8](https://github.com/phalcon/cphalcon/releases/tag/phalcon-v2.0.8) (2015-09-19)
- Added `Phalcon\Security\Random::base58` - to generate a random base58 string
- Added `Phalcon\Logger\Adapter::isTransaction()` to check whether the logger is currently in transaction
mode or not (Phalcon 1.3 behavior)
- `Phalcon\Session\Adapter` now closes the session when the adapter is destroyed (Phalcon 1.3 behavior)
- Fixed fetching of data in modes FETCH_CLASS, FETCH_INTO and FETCH_FUNC in `Phalcon\Db`
- Added missing code property in `Phalcon\Validation\Message` available in Phalcon 1.3.x
- Added `Phalcon\Db\Column::TYPE_TIMESTAMP` to allow migrations on these kind of columns
- Added `Phalcon\Db\ColumnInterface::hasDefault` to check if a column has a default value declared in its database
column definition
- Fixed determining of default value for column in `Phalcon\Db\Dialect\MySQL`, `Phalcon\Db\Dialect\Sqlite` and
`Phalcon\Db\Dialect\Postgresql` classes
- Now Phalcon\Mvc\Model::__call invokes finders as in __callStatic
- Fixed `Phalcon\Db\Dialect\Postgresql::getColumnDefinition` for `BIGINT` and `BOOLEAN` data types
- Fixed `BOOLEAN` default value in `Phalcon\Db\Dialect\Postgresql`
- Added `Phalcon\Validation\Validator\CreditCard` - validation credit card number using luhn algorithm

# [2.0.7](https://github.com/phalcon/cphalcon/releases/tag/phalcon-v2.0.7) (2015-08-17)
- `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
than `Mvc\Model\Query\Builder` to avoid collisions
- 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
Expand All @@ -18,7 +35,7 @@ belongs to the uniqueId or the whole session data
- 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](https://github.com/phalcon/cphalcon/issues/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](https://github.com/phalcon/cphalcon/pull/10797)
- When creating tables in Postgres, inline PRIMARY keys are now escaped properly[#10797](https://github.com/phalcon/cphalcon/pull/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

Expand All @@ -27,17 +44,17 @@ belongs to the uniqueId or the whole session data
- Added `Http\Response::setCache()` to easily set cache headers.
- When a beanstalkd connection is closed the adapter does not produce a notice anymore
- Default separator in `Text::increment` is now _ (underscore)
- Using tel_field in Volt now generates correct PHP code
- Using `tel_field` in Volt now generates correct PHP code
- SQL generated by PostgreSQL dialect in dropTable and dropView is now correct
- Errors generated in `Cache\Backend\Memcached` now shows the result code to easily debug problems
- Fixed `LIMIT/OFFSET` SQL generation in `Mvc\Model\Query\Builder`
- Fixed Logger\Formatter\Line to match 1.3.x behavior
- Fixed warning when 'castOnHydrate' is true [#10648](https://github.com/phalcon/cphalcon/pull/10648)
- Fixed `Logger\Formatter\Line` to match 1.3.x behavior
- Fixed warning when castOnHydrate' is true [#10648](https://github.com/phalcon/cphalcon/pull/10648)
- Added name before int/float/numeric/string/bool/null/other variables in Debug\Dump::output
- Now `Validation\Validator\Identical` allows both 'accepted' and 'value' as value to keep backwards compatibility
- Added `\Phalcon\Mvc\Model\MetaData\Redis` adapter.
- Added Redis Session adapter
- Fixed bug in Mvc\Model\Criteria::fromInput unallowing it to use renamed columns
- Fixed bug in `Mvc\Model\Criteria::fromInput` unallowing it to use renamed columns
- Fixed bug in `Http\Request` getRawBody()/getPut() clears input buffer [#10694](https://github.com/phalcon/cphalcon/issues/10694)

# [2.0.5](https://github.com/phalcon/cphalcon/releases/tag/phalcon-v2.0.5) (2015-07-14)
Expand Down Expand Up @@ -67,7 +84,7 @@ belongs to the uniqueId or the whole session data
- Added 'autoescape' option that allows to globally enable autoescape in any Volt template
- Added readAttribute/writeAttribute to `Phalcon\Mvc\Collection\Document`
- Added toArray to `Phalcon\Mvc\Collection\Document`
- Global setting db.force_casting now forces casting bound parameters to specified bind types
- Global setting `db.force_casting` now forces casting bound parameters to specified bind types
- Introduced new placeholders in PHQL enclosed in brackets that allow to set the type: {name:str} or {names:array}
- Now you can bind arrays in bound parameters in PHQL
- Global setting orm.cast_on_hydrate allow to cast hydrated attributes to the original types in the mapped tables instead of using strings
Expand All @@ -77,7 +94,7 @@ belongs to the uniqueId or the whole session data
- Added global setting orm.ignore_unknown_columns to ignore unexpected columns when hydrating instances in the ORM
This fixes extra auxiliar columns used in `Db\Adapter\Pdo\Oracle`
- Added support for afterFetch in `Mvc\Collection`
- Added 'beforeMatch' parameter in @Route annotation of `Mvc\Router\Annotations`
- Added `beforeMatch` parameter in `@Route` annotation of `Mvc\Router\Annotations`
- Added groupBy/getGroupBy/having/getHaving to `Mvc\Model\Criteria`
- `Phalcon\Mvc\Model::count()` now return values as integer
- Removed `__construct` from `Phalcon\Mvc\View\EngineInterface`
Expand All @@ -91,7 +108,7 @@ belongs to the uniqueId or the whole session data

# [2.0.3](https://github.com/phalcon/cphalcon/releases/tag/phalcon-v2.0.3) (2015-06-10)
- Added support for Behaviors in `Phalcon\Mvc\Collection`
- Added SoftDelete and Timestampable behaviors to Collections
- Added `SoftDelete` and `Timestampable` behaviors to Collections
- Implemented Namespace aliases in PHQL
- Now you can define if a virtual foreign key must ignore null values or not
- Fixed bug that added two ? in `Mvc\Url::get()` when using query parameters ([#10421](https://github.com/phalcon/cphalcon/issues/10421))
Expand Down Expand Up @@ -122,7 +139,7 @@ belongs to the uniqueId or the whole session data
- Added new theme in `Phalcon\Debug`
- Allow to count and iterate `Phalcon\Session\Bag` as in 1.3.x
- Renamed `getEventsManager()` to `getInternalEventsManager()` in `Phalcon\Di` to avoid collision with existing services
- Added constants FILTER_* to Phalcon\Filter for filters names
- Added constants FILTER_* to `Phalcon\Filter` for filters names
- Fixed multibyte characters in cssmin/jsmin
- Added `Phalcon\Security::destroyToken()` to remove current token key and value from session
removed first argument (password), since it's not used in the function
Expand Down
18 changes: 17 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,23 @@ Phalcon is an open source project and a volunteer effort. Phalcon welcomes contr
## Contributions

Contributions to Phalcon should be made in the form of GitHub pull requests. Each pull request will be reviewed by a core contributor (someone with permission to land patches) and either landed in the main tree or given feedback for changes that would be required before it can be merged. All contributions should follow this format, even those from core contributors.
*We only accept bug reports, new feature requests and pull requests in GitHub*. For questions regarding the usage of the framework or support requests please visit the [official forums](http://forum.phalconphp.com/).

## Questions & Support

*We only accept bug reports, new feature requests and pull requests in GitHub*. For questions regarding the usage of the framework or support requests please visit the [official forums](https://forum.phalconphp.com/).

## Bug Report Checklist

- Make sure you are using the latest released version of Phalcon before submitting a bug report.
Bugs in versions older than the latest released one will not be addressed by the core team.

- If you have found a bug it is important to add relevant reproducibility information to your issue to allow us
to reproduce the bug and fix it quicker. Add a script, small program or repository providing the necessary code to
make everyone reproduce the issue reported easily. If a bug cannot be reproduced by the development it would be difficult provide corrections and solutions. [Submit Reproducible Test](https://github.com/phalcon/cphalcon/wiki/Submit-Reproducible-Test) for more information.

- Be sure that information such as OS, Phalcon version and PHP version are part of the bug report.

- If you're submitting a Segmentation Fault error, we would require a backtrace, please see [Generating a Backtrace](https://github.com/phalcon/cphalcon/wiki/Generating-a-backtrace)

## Pull Request Checklist

Expand Down
Loading

0 comments on commit c8d4916

Please sign in to comment.