Skip to content

Commit 011b92b

Browse files
authored
Merge pull request #16828 from phalcon/5.0.x
5.10.0
2 parents c7f3e5c + b0c0466 commit 011b92b

File tree

443 files changed

+10103
-6983
lines changed

Some content is hidden

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

443 files changed

+10103
-6983
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ assignees: ''
77

88
---
99

10-
Questions? Forum: https://phalcon.io/forum or Discord: https://phalcon.io/discord
10+
Questions? Discussions: https://phalcon.io/discussions or Discord: https://phalcon.io/discord
1111

1212
**Describe the bug**
1313
A clear and concise description of what the bug is.

.github/workflows/build-docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
name: Build Dockerfile PHP ${{ matrix.php }}
2222
steps:
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@v5
2424

2525
- name: Login to Github Registry
2626
uses: docker/login-action@v3

.github/workflows/compile-windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
env:
88
# All versions should be declared here
9-
PHALCON_VERSION: 5.9.3
9+
PHALCON_VERSION: 5.10.0
1010

1111
jobs:
1212
windows:
@@ -46,7 +46,7 @@ jobs:
4646
4747
- name: Setup PHP
4848
id: setup-php
49-
uses: php/setup-php-sdk@v0.10
49+
uses: php/setup-php-sdk@v0.11
5050
with:
5151
version: ${{matrix.php}}
5252
arch: ${{matrix.arch}}

.github/workflows/main.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
name: Phalcon CI
99

1010
on:
11-
schedule:
12-
- cron: '0 2 * * *' # Daily at 02:00 runs only on default branch
1311
push:
1412
paths-ignore:
1513
- '**.md'
@@ -19,9 +17,8 @@ on:
1917

2018
env:
2119
# All versions should be declared here
22-
PHALCON_VERSION: 5.9.3
23-
ZEPHIR_PARSER_VERSION: 1.6.1
24-
20+
PHALCON_VERSION: 5.10.0
21+
ZEPHIR_PARSER_VERSION: 1.8.0
2522
# For tests
2623
LANG: en_US.UTF-8
2724
LANGUAGE: en_US.UTF-8
@@ -40,7 +37,7 @@ jobs:
4037
# https://docs.github.com/en/actions/learn-github-actions/reusing-workflows#limitations
4138
setup_workflow:
4239
name: Setup workflow
43-
runs-on: ubuntu-22.04
40+
runs-on: ubuntu-latest
4441
outputs:
4542
zephir_extensions: ${{ steps.setup-zephir-ext.outputs.extensions }}
4643

@@ -58,7 +55,7 @@ jobs:
5855

5956
name: Check code style
6057

61-
runs-on: ubuntu-22.04
58+
runs-on: ubuntu-latest
6259
steps:
6360
- uses: actions/checkout@v4
6461

@@ -130,7 +127,7 @@ jobs:
130127
Write-Output "SESSION_SAVE_PATH=$SessionSavePath" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
131128
132129
- name: Setup PHP
133-
uses: shivammathur/setup-php@2.32.0
130+
uses: shivammathur/setup-php@2.35.5
134131
with:
135132
php-version: ${{ matrix.php }}
136133
extensions: ${{ env.EXTENSIONS }}
@@ -275,13 +272,17 @@ jobs:
275272
strategy:
276273
fail-fast: false
277274
matrix:
278-
php: [ '8.1', '8.2', '8.3', '8.4' ]
275+
php:
276+
- '8.1'
277+
- '8.2'
278+
- '8.3'
279+
- '8.4'
279280

280281
steps:
281282
- uses: actions/checkout@v4
282283

283284
- name: Setup PHP
284-
uses: shivammathur/setup-php@2.32.0
285+
uses: shivammathur/setup-php@2.35.5
285286
with:
286287
php-version: ${{ matrix.php }}
287288
extensions: ${{ env.EXTENSIONS }}

BACKERS.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,19 +96,17 @@ Thanks for the support
9696
[//]: github-sponsors
9797

9898
<a href="https://github.com/niden"><img src="https://avatars2.githubusercontent.com/u/1073784?s=460&v=4" title="Nikolaos Dimopoulos" width="60" height="60"></a>
99-
<a href="https://github.com/Brade"><img src="https://avatars.githubusercontent.com/u/46009?v=4" title="N. Brad Garrett" width="60" height="60"></a>
99+
<a href="https://github.com/elstin"><img src="https://avatars.githubusercontent.com/u/38716832?v=4" title="Akira Kato" width="60" height="60"></a>
100100
<a href="https://github.com/francoisgrogor"><img src="https://avatars.githubusercontent.com/u/5804565?v=4" title="francoisgrogor" width="60" height="60"></a>
101101
<a href="https://github.com/alrieckert"><img src="https://avatars1.githubusercontent.com/u/452786?s=460&v=4" title="Anton Rieckert" width="60" height="60"></a>
102102
<a href="https://github.com/elcreator"><img src="https://avatars.githubusercontent.com/u/974975?v=4" title="Artur Kyryliuk" width="60" height="60"></a>
103103
<a href="https://github.com/Ultimater"><img src="https://avatars.githubusercontent.com/u/1922199?v=4" title="Kevin Yarmak" width="60" height="60"></a>
104-
<a href="https://github.com/Ruzgfpegk"><img src="https://avatars1.githubusercontent.com/u/3818364?s=460&v=4" title="Ruzgfpegk" width="60" height="60"></a>
105104
<a href="https://github.com/f-do"><img src="https://avatars.githubusercontent.com/u/4299065?v=4" title="Florian" width="60" height="60"></a>
106105
<a href="https://github.com/borisdelev"><img src="https://avatars.githubusercontent.com/u/4441663?s=460&u=be604c39153e26326f2123c6e1bfe880d5ec0947&v=4" title="Boris Delev" width="60" height="60"></a>
107106
<a href="https://github.com/raicabogdan"><img src="https://avatars.githubusercontent.com/u/4399340?v=4" title="Bogdan Raica" width="60" height="60"></a>
108107
<a href="https://github.com/jturbide"><img src="https://avatars.githubusercontent.com/u/4306188?v=4" title="Julien Turbide" width="60" height="60"></a>
109108
<a href="https://github.com/emagus"><img src="https://avatars.githubusercontent.com/u/5857789?v=4" title="maGus Informática" width="60" height="60"></a>
110109
<a href="https://github.com/tztztztz"><img src="https://avatars.githubusercontent.com/u/7032308?v=4" title="Tomasz Zadora" width="60" height="60"></a>
111-
<a href="https://github.com/sitchi"><img src="https://avatars.githubusercontent.com/u/11546683?v=4" title="Nikoloz Sitchinava" width="60" height="60"></a>
112110
<a href="https://github.com/6trading"><img src="https://avatars.githubusercontent.com/u/12135941?v=4" title="Chris" width="60" height="60"></a>
113111
<a href="https://github.com/fvromera"><img src="https://avatars.githubusercontent.com/u/32909196?s=460&u=a4a6d765c836be52ab247354399d0ed1a49224fa&v=4" title="fvromera" width="60" height="60"></a>
114112
<a href="https://github.com/dredasss"><img src="https://avatars1.githubusercontent.com/u/38747389?s=460&u=ee99a8bb28ee6bedbbea6325d49d4eb99080d421&v=4" title="Nerijus Alex" width="60" height="60"></a>

CHANGELOG-5.0.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,29 @@
11
# Changelog
2+
## 5.10.0 (2025-12-25)
3+
4+
### Changed
5+
6+
- Changed `bind()` and `validate()` method in `Phalcon\Filter\Validation` and `Phalcon\Filter\Validation\ValidationInterface` to accept `$whitelist` array of only allowed fields to be mutated when using entity [#16800](https://github.com/phalcon/cphalcon/issues/16800)
7+
- Changed `Phalcon\Storage\Adapters\Libmemcached::getAdapter()` to use 50ms for `\Memcached::OPT_CONNECT_TIMEOUT` [#16818](https://github.com/phalcon/cphalcon/issues/16818)
8+
- Changed `Phalcon\Html\Helper\Input\*` to honor `Docbloc` directives [#16778](https://github.com/phalcon/cphalcon/issues/16778)
9+
10+
### Added
11+
12+
- Added `fails()` method helper to `Phalcon\Filter\Validation` useful for standalone validation [#16798](https://github.com/phalcon/cphalcon/issues/16798)
13+
14+
### Fixed
15+
16+
- Fixed `Phalcon\Config\Adapter\Yaml` constructor to handle `null` return values from `yaml_parse_file()`, ensuring empty configuration files are treated as empty arrays instead of throwing errors.
17+
- Fixed `Phalcon\Http\Request` method `getClientAddress(true)` to return correct IP address from trusted forwarded proxy. [#16777](https://github.com/phalcon/cphalcon/issues/16777)
18+
- Fixed `Phalcon\Http\Request` method `getPost()` to correctly return json data as well and unified both `getPut()` and `getPatch()` to go through the same parsing method. [#16792](https://github.com/phalcon/cphalcon/issues/16792)
19+
- Fixed `Phalcon\Filter\Validation` method `bind()` and `validate()` to correctly bind data when using entity as well as skip binding of fields not included in `$whitelist` [#16800](https://github.com/phalcon/cphalcon/issues/16800)
20+
- Fixed `Phalcon\Http\Request` method `getPostData()` when `Content-Type` header is not set [#16804](https://github.com/phalcon/cphalcon/issues/16804)
21+
- Fixed `Phalcon\Events\ManagerInterface` adding priority property [#16817](https://github.com/phalcon/cphalcon/issues/16817)
22+
- Fixed `Phalcon\Storage\Adapters\Libmemcached::getAdapter()` to correctly merge adapter options [#16818](https://github.com/phalcon/cphalcon/issues/16818)
23+
- Fixed `Phalcon\Encryption\Crypt` method `checkCipherHashIsAvailable(string $cipher, string $type)` to correctly check the `cipher` or `hash` type [#16822](https://github.com/phalcon/cphalcon/issues/16822)
24+
- Fixed `Phalcon\Mvc\Model` docblocks [#16825](https://github.com/phalcon/cphalcon/issues/16825)
25+
26+
### Removed
227

328
## [5.9.3](https://github.com/phalcon/cphalcon/releases/tag/v5.9.3) (2025-04-19)
429

0 commit comments

Comments
 (0)