Skip to content

Commit 03653b4

Browse files
authored
Merge pull request #16586 from phalcon/5.0.x
5.7.0
2 parents 6cedc11 + 041897a commit 03653b4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1490
-1180
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919

2020
env:
2121
# All versions should be declared here
22-
PHALCON_VERSION: 5.6.2
22+
PHALCON_VERSION: 5.7.0
2323
ZEPHIR_PARSER_VERSION: 1.6.0
2424

2525
# For tests

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ ext/run-tests.php
5151
*.deps
5252
.ci/lemon
5353

54+
# local tests
55+
.local/
56+
5457
.libs/
5558
autom4te.cache/
5659
/vendor

CHANGELOG-5.0.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
# Changelog
22

3+
## [5.7.0](https://github.com/phalcon/cphalcon/releases/tag/v5.7.0) (2024-05-17)
4+
5+
### Changed
6+
7+
- Changed `Phalcon\Support\HelperFactory` to use the internal mapper for better memory management [#16571](https://github.com/phalcon/cphalcon/issues/16571)
8+
9+
### Added
10+
11+
- New ini setting `phalcon.form.strict_entity_property_check` for `Phalcon\Forms\Form` to enable strict entity property checking. [#16567](https://github.com/phalcon/cphalcon/issues/16567)
12+
13+
### Fixed
14+
15+
- Fixed `Phalcon\Mvc\Cli\Router` to extend the `Phalcon\Mvc\Cli\RouterInterface` [#16551](https://github.com/phalcon/cphalcon/issues/16551)
16+
- Fixed `Phalcon\Filter\Validation\Validator\StringLength::validate()` to correctly use the `include` parameter [#16560](https://github.com/phalcon/cphalcon/issues/16560)
17+
- Fixed `Phalcon\Db\Column::TYPE_BINARY` and `Phalcon\Db\Column::TYPE_TINYINTEGER` to have unique values [#16532](https://github.com/phalcon/cphalcon/issues/16532)
18+
- Fixed `Phalcon\Forms\Form` to bind only existing properties on entities, based on `phalcon.form.strict_entity_property_check` setting. [#16567](https://github.com/phalcon/cphalcon/issues/16567)
19+
- Fixed `Phalcon\Filter\Sanitize\BoolVal` to correctly handle integers. [#16582](https://github.com/phalcon/cphalcon/issues/16582)
20+
21+
### Removed
22+
323
## [5.6.2](https://github.com/phalcon/cphalcon/releases/tag/v5.6.1) (2024-03-14)
424

525
### Changed

CONTRIBUTING.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@ We use the GitHub issues for tracking bugs and feature requests and have limited
1515

1616
_Please use the [Documentation](https://phalcon.io/docs) before anything else. You can also use the search feature in our documents to find what you are looking for. If your question is still not answered, there are more options below._
1717

18-
* Questions should go to [Official Forums](https://phalcon.io/forum)
18+
* Questions should go to [GitHub Discussions](https://phalcon.io/discussions)
1919
* Another way is to ask a question on [Stack Overflow](https://stackoverflow.com/) and tag it with
2020
[`phalcon`](https://stackoverflow.com/questions/tagged/phalcon)
2121
* Come join the Phalcon [Discord](https://phalcon.io/discord)
2222
* Our social network accounts are:
2323
* [Telegram](https://phalcon.io/telegram)
24-
* [Parler](https://phalcon.io/parler)
2524
* [Gab](https://phalcon.io/gab)
2625
* [MeWe](https://phalcon.io/mewe)
2726
* [Twitter](https://phalcon.io/t)
@@ -42,13 +41,13 @@ Please report bugs when you've exhausted all of the above options.
4241

4342
* Don't submit your pull requests to the `master` branch. Branch from the required branch and, if needed, rebase to the proper branch before submitting your pull request. If it doesn't merge cleanly with master you may be asked to rebase your changes
4443
* Don't put submodule updates in your pull request unless they are to landed commits
45-
* Add tests relevant to the fixed bug or new feature. Test classes should follow the [PSR-2 coding style guide](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md). See our [testing guide](https://github.com/phalcon/cphalcon/blob/master/tests/README.md) for more information
44+
* Add tests relevant to the fixed bug or new feature. Test classes should follow the [PSR-12 coding style guide](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-12-coding-style-guide.md).
4645
* Phalcon is written in [Zephir](https://zephir-lang.com/), please do not submit commits that modify C generated files directly or those whose functionality/fixes are implemented in the C programming language
4746
* Remove any change to `ext/kernel`, `*.zep.c` and `*.zep.h` files before submitting the pull request
4847

4948
## Requesting Features
5049

51-
If you have a change or new feature in mind, please fill a [NFR](https://docs.phalcon.io/latest/new-feature-request) on the GitHub. Alternatively you may also request features via [the FeatHub page](https://feathub.com/phalcon/cphalcon).
50+
If you have a change or new feature in mind, please fill a [NFR](https://docs.phalcon.io/latest/new-feature-request) on the GitHub.
5251

5352

5453
Thanks!

build/phalcon/phalcon.zep.c

Lines changed: 526 additions & 473 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/phalcon/phalcon.zep.h

Lines changed: 157 additions & 160 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/phalcon/php_phalcon.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ typedef zend_function zephir_fcall_cache_entry;
103103

104104

105105
#define PHP_PHALCON_NAME "phalcon"
106-
#define PHP_PHALCON_VERSION "5.6.2"
106+
#define PHP_PHALCON_VERSION "5.7.0"
107107
#define PHP_PHALCON_EXTNAME "phalcon"
108108
#define PHP_PHALCON_AUTHOR "Phalcon Team and contributors"
109109
#define PHP_PHALCON_ZEPVERSION "0.18.0-$Id$"
@@ -114,6 +114,10 @@ typedef struct _zephir_struct_db {
114114
zend_bool force_casting;
115115
} zephir_struct_db;
116116

117+
typedef struct _zephir_struct_form {
118+
zend_bool strict_entity_property_check;
119+
} zephir_struct_form;
120+
117121
typedef struct _zephir_struct_orm {
118122
HashTable* ast_cache;
119123
int cache_level;
@@ -161,6 +165,7 @@ ZEND_BEGIN_MODULE_GLOBALS(phalcon)
161165

162166

163167
zephir_struct_db db;
168+
zephir_struct_form form;
164169
zephir_struct_orm orm;
165170
zephir_struct_warning warning;
166171

config.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "phalcon",
44
"description": "Phalcon is a full stack PHP framework, delivered as a PHP extension, offering lower resource consumption and high performance.",
55
"author": "Phalcon Team and contributors",
6-
"version": "5.6.2",
6+
"version": "5.7.0",
77
"verbose": false,
88
"stubs": {
99
"path": "ide\/%version%\/%namespace%\/",
@@ -69,6 +69,10 @@
6969
"type": "bool",
7070
"default": false
7171
},
72+
"form.strict_entity_property_check": {
73+
"type": "bool",
74+
"default": false
75+
},
7276
"orm.ast_cache": {
7377
"type": "hash",
7478
"default": "NULL"

ext/config.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ if test "$PHP_PHALCON" = "yes"; then
4949
phalcon/html/link/interfaces/linkinterface.zep.c
5050
phalcon/html/link/interfaces/linkproviderinterface.zep.c
5151
phalcon/logger/adapter/adapterinterface.zep.c
52-
phalcon/mvc/model/resultsetinterface.zep.c
5352
phalcon/paginator/adapter/adapterinterface.zep.c
5453
phalcon/translate/adapter/adapterinterface.zep.c
5554
phalcon/annotations/adapter/abstractadapter.zep.c
@@ -69,6 +68,7 @@ if test "$PHP_PHALCON" = "yes"; then
6968
phalcon/logger/formatter/formatterinterface.zep.c
7069
phalcon/mvc/model/behaviorinterface.zep.c
7170
phalcon/mvc/model/exception.zep.c
71+
phalcon/mvc/model/resultsetinterface.zep.c
7272
phalcon/mvc/view/engine/engineinterface.zep.c
7373
phalcon/mvc/viewbaseinterface.zep.c
7474
phalcon/paginator/adapter/abstractadapter.zep.c
@@ -112,6 +112,7 @@ if test "$PHP_PHALCON" = "yes"; then
112112
phalcon/cache/abstractcache.zep.c
113113
phalcon/cli/dispatcherinterface.zep.c
114114
phalcon/cli/router/routeinterface.zep.c
115+
phalcon/cli/routerinterface.zep.c
115116
phalcon/cli/taskinterface.zep.c
116117
phalcon/datamapper/pdo/connectionlocatorinterface.zep.c
117118
phalcon/datamapper/pdo/profiler/profilerinterface.zep.c
@@ -229,7 +230,6 @@ if test "$PHP_PHALCON" = "yes"; then
229230
phalcon/cli/router.zep.c
230231
phalcon/cli/router/exception.zep.c
231232
phalcon/cli/router/route.zep.c
232-
phalcon/cli/routerinterface.zep.c
233233
phalcon/cli/task.zep.c
234234
phalcon/config/adapter/grouped.zep.c
235235
phalcon/config/adapter/ini.zep.c

ext/config.w32

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ if (PHP_PHALCON != "no") {
3333
ADD_SOURCES(configure_module_dirname + "/phalcon/assets", "assetinterface.zep.c filterinterface.zep.c asset.zep.c inline.zep.c collection.zep.c exception.zep.c manager.zep.c", "phalcon");
3434
ADD_SOURCES(configure_module_dirname + "/phalcon/cache/adapter", "adapterinterface.zep.c apcu.zep.c libmemcached.zep.c memory.zep.c redis.zep.c stream.zep.c weak.zep.c", "phalcon");
3535
ADD_SOURCES(configure_module_dirname + "/phalcon/config", "configinterface.zep.c config.zep.c configfactory.zep.c exception.zep.c", "phalcon");
36-
ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model", "metadatainterface.zep.c metadata.zep.c resultsetinterface.zep.c behaviorinterface.zep.c exception.zep.c behavior.zep.c resultinterface.zep.c resultset.zep.c binderinterface.zep.c criteriainterface.zep.c managerinterface.zep.c queryinterface.zep.c relationinterface.zep.c transactioninterface.zep.c binder.zep.c criteria.zep.c manager.zep.c query.zep.c relation.zep.c row.zep.c transaction.zep.c validationfailed.zep.c", "phalcon");
36+
ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model", "metadatainterface.zep.c metadata.zep.c behaviorinterface.zep.c exception.zep.c resultsetinterface.zep.c behavior.zep.c resultinterface.zep.c resultset.zep.c binderinterface.zep.c criteriainterface.zep.c managerinterface.zep.c queryinterface.zep.c relationinterface.zep.c transactioninterface.zep.c binder.zep.c criteria.zep.c manager.zep.c query.zep.c relation.zep.c row.zep.c transaction.zep.c validationfailed.zep.c", "phalcon");
3737
ADD_SOURCES(configure_module_dirname + "/phalcon/datamapper/query", "abstractquery.zep.c abstractconditions.zep.c bind.zep.c delete.zep.c insert.zep.c queryfactory.zep.c select.zep.c update.zep.c", "phalcon");
3838
ADD_SOURCES(configure_module_dirname + "/phalcon/db/adapter", "adapterinterface.zep.c abstractadapter.zep.c pdofactory.zep.c", "phalcon");
3939
ADD_SOURCES(configure_module_dirname + "/phalcon/annotations/adapter", "adapterinterface.zep.c abstractadapter.zep.c apcu.zep.c memory.zep.c stream.zep.c", "phalcon");
@@ -64,7 +64,7 @@ if (PHP_PHALCON != "no") {
6464
ADD_SOURCES(configure_module_dirname + "/phalcon/translate/interpolator", "interpolatorinterface.zep.c associativearray.zep.c indexedarray.zep.c", "phalcon");
6565
ADD_SOURCES(configure_module_dirname + "/phalcon/acl", "componentinterface.zep.c roleinterface.zep.c component.zep.c componentawareinterface.zep.c enum.zep.c exception.zep.c role.zep.c roleawareinterface.zep.c", "phalcon");
6666
ADD_SOURCES(configure_module_dirname + "/phalcon/annotations", "readerinterface.zep.c annotation.zep.c annotationsfactory.zep.c collection.zep.c exception.zep.c reader.zep.c reflection.zep.c", "phalcon");
67-
ADD_SOURCES(configure_module_dirname + "/phalcon/cli", "dispatcherinterface.zep.c taskinterface.zep.c console.zep.c dispatcher.zep.c router.zep.c routerinterface.zep.c task.zep.c", "phalcon");
67+
ADD_SOURCES(configure_module_dirname + "/phalcon/cli", "dispatcherinterface.zep.c routerinterface.zep.c taskinterface.zep.c console.zep.c dispatcher.zep.c router.zep.c task.zep.c", "phalcon");
6868
ADD_SOURCES(configure_module_dirname + "/phalcon/cli/router", "routeinterface.zep.c exception.zep.c route.zep.c", "phalcon");
6969
ADD_SOURCES(configure_module_dirname + "/phalcon/datamapper/pdo", "connectionlocatorinterface.zep.c connection.zep.c connectionlocator.zep.c", "phalcon");
7070
ADD_SOURCES(configure_module_dirname + "/phalcon/datamapper/pdo/profiler", "profilerinterface.zep.c memorylogger.zep.c profiler.zep.c", "phalcon");

0 commit comments

Comments
 (0)