Skip to content

Commit a58902f

Browse files
authored
Merge pull request #16758 from phalcon/5.0.x
v5.9.3
2 parents dd37339 + c34a2bf commit a58902f

File tree

210 files changed

+5970
-5518
lines changed

Some content is hidden

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

210 files changed

+5970
-5518
lines changed

.github/workflows/build-docker.yml

Lines changed: 40 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,55 @@ name: Build Dockerfiles
22

33
on:
44
push:
5-
paths:
6-
- 'docker/**'
7-
8-
permissions:
9-
contents: read # to fetch code (actions/checkout)
5+
tags:
6+
- v*
107

118
jobs:
129
build:
1310
runs-on: ubuntu-latest
14-
11+
permissions:
12+
contents: read
13+
packages: write
14+
attestations: write
15+
id-token: write
1516
strategy:
1617
fail-fast: false
1718
matrix:
18-
php:
19-
- '8.1'
20-
- '8.2'
21-
- '8.3'
22-
- '8.4'
19+
php: [ '8.1', '8.2', '8.3', '8.4' ]
2320

2421
name: Build Dockerfile PHP ${{ matrix.php }}
2522
steps:
2623
- uses: actions/checkout@v4
2724

28-
- name: Build Dockerfile
29-
run: docker build docker/${{ matrix.php }}
25+
- name: Login to Github Registry
26+
uses: docker/login-action@v3
27+
with:
28+
registry: ghcr.io
29+
username: ${{ github.repository_owner }}
30+
password: ${{ secrets.GITHUB_TOKEN }}
31+
32+
- name: Login to Docker Hub
33+
uses: docker/login-action@v3
34+
with:
35+
username: ${{ secrets.DOCKERHUB_LOGIN }}
36+
password: ${{ secrets.DOCKERHUB_TOKEN }}
37+
38+
- name: Set up QEMU
39+
uses: docker/setup-qemu-action@v3
40+
41+
- name: Set up Docker Buildx
42+
uses: docker/setup-buildx-action@v3
43+
44+
- name: Build and push
45+
uses: docker/build-push-action@v6
46+
with:
47+
push: true
48+
file: docker/Dockerfile
49+
tags: |
50+
phalconphp/cphalcon:${{ github.ref_name }}-php${{ matrix.php }}
51+
ghcr.io/phalcon/cphalcon:${{ github.ref_name }}-php${{ matrix.php }}
52+
build-args: |
53+
PHP_VERSION=${{ matrix.php }}
54+
PHALCON_VERSION=${{ github.ref_name }}
55+
cache-from: type=gha
56+
cache-to: type=gha,mode=max

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
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.9.2
22+
PHALCON_VERSION: 5.9.3
2323
ZEPHIR_PARSER_VERSION: 1.6.1
2424

2525
# For tests
@@ -130,7 +130,7 @@ jobs:
130130
Write-Output "SESSION_SAVE_PATH=$SessionSavePath" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
131131
132132
- name: Setup PHP
133-
uses: shivammathur/setup-php@v2
133+
uses: shivammathur/setup-php@2.32.0
134134
with:
135135
php-version: ${{ matrix.php }}
136136
extensions: ${{ env.EXTENSIONS }}
@@ -281,7 +281,7 @@ jobs:
281281
- uses: actions/checkout@v4
282282

283283
- name: Setup PHP
284-
uses: shivammathur/setup-php@v2
284+
uses: shivammathur/setup-php@2.32.0
285285
with:
286286
php-version: ${{ matrix.php }}
287287
extensions: ${{ env.EXTENSIONS }}

CHANGELOG-5.0.md

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

3+
## [5.9.3](https://github.com/phalcon/cphalcon/releases/tag/v5.9.3) (2025-04-19)
4+
5+
### Changed
6+
- Added Multi-Stage Dockerfile and Github action for release Docker images to ghcr.io and Docker Hub. [#16752](https://github.com/phalcon/cphalcon/issues/16752)
7+
8+
### Added
9+
10+
- Added `Phalcon\Mvc\Router::setUriSource()` to allow URI processing from `$_GET['url']` or `$_SERVER['REQUEST_URI']` as it was in v3 [#16741](https://github.com/phalcon/cphalcon/issues/16741)
11+
12+
### Fixed
13+
14+
- Fixed `Phalcon\Mvc\Router` to correctly handle numeric URI parts as it was in v3 [#16741](https://github.com/phalcon/cphalcon/issues/16741)
15+
- Fixed `Phalcon\Mvc\Model\Binder` to use ReflectionParameter::getType() instead of deprecated method, PHP 8.0 or higher issue. [#16742](https://github.com/phalcon/cphalcon/issues/16742)
16+
- Fixed `Phalcon\Mvc\Model\Query` to check if cache entry exists. [#16747](https://github.com/phalcon/cphalcon/issues/16747)
17+
- Fixed `Phalcon\Mvc\Router` to correctly match route when using query string URIs. [#16749](https://github.com/phalcon/cphalcon/issues/16749)
18+
- Fixed `Phalcon\Mvc\Model::cloneResultset` to properly parse fields that do not accept `null` values [#16736](https://github.com/phalcon/cphalcon/issues/16736)
19+
20+
### Removed
21+
322
## [5.9.2](https://github.com/phalcon/cphalcon/releases/tag/v5.9.2) (2025-04-03)
423

524
### Changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Steps:
4747
* [Incubator](https://phalcon.io/incubator) - Community driven plugins and classes extending the framework (written in PHP)
4848

4949
### Support
50-
* [Forum](https://phalcon.io/forum)
50+
* [Discussions](https://phalcon.io/discussions)
5151
* [Discord](https://phalcon.io/discord)
5252
* [Stack Overflow](https://phalcon.io/so)
5353

0 commit comments

Comments
 (0)