Skip to content

Commit

Permalink
Merge pull request #16112 from phalcon/5.0.x
Browse files Browse the repository at this point in the history
5.0.0 Stable
  • Loading branch information
niden authored Sep 22, 2022
2 parents c8dbac5 + c084949 commit 9d2d864
Show file tree
Hide file tree
Showing 458 changed files with 14,696 additions and 12,943 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
paths:
- 'docker/**'

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
build:
runs-on: ubuntu-20.04
Expand Down
19 changes: 16 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ on:

env:
# All versions should be declared here
PHALCON_VERSION: 5.0.0RC4
ZEPHIR_PARSER_VERSION: 1.5.0
ZEPHIR_VERSION: 0.16.0
PHALCON_VERSION: 5.0.0
ZEPHIR_PARSER_VERSION: 1.5.1
ZEPHIR_VERSION: 0.16.3

# For tests
LANG: en_US.UTF-8
Expand All @@ -34,6 +34,7 @@ env:
# PHP extensions required by Composer
EXTENSIONS: apcu, gettext, gd, igbinary, imagick, intl, json, mbstring, msgpack, memcached, sqlite3, yaml, redis, :memcache

permissions: {}
jobs:
# Configure Workflow for correct run reusable workflow
# This is required step. It's workaround for non-initialized ENVs when trying to pass input variables from ENVs.
Expand All @@ -52,6 +53,9 @@ jobs:
# PHP CodeSniffer inspection
phpcs:
permissions:
contents: read

uses: zephir-lang/templates/.github/workflows/phpcs.yml@main
with:
standard: ./phpcs.xml
Expand All @@ -72,6 +76,9 @@ jobs:
composer-token: ${{ secrets.GITHUB_TOKEN }}

build-and-test:
permissions:
contents: read # to fetch code (actions/checkout)

name: tests / PHP-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.name }}-${{ matrix.arch }}
needs: [generate]
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -223,6 +230,9 @@ jobs:
extensions: ${{ needs.setup_workflow.outputs.zephir_extensions }}

integration-test:
permissions:
contents: read # to fetch code (actions/checkout)

needs: [generate]
runs-on: ubuntu-20.04

Expand Down Expand Up @@ -368,6 +378,9 @@ jobs:
# run: vendor/bin/codecept run --ext DotReporter database --env sqlsrv

release:
permissions:
contents: write # to create a release (ncipollo/release-action)

if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')

needs: [generate, install, build-and-test, integration-test]
Expand Down
2 changes: 1 addition & 1 deletion BACKERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,14 @@ Thanks for the support
<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>
<a href="https://github.com/tztztztz"><img src="https://avatars.githubusercontent.com/u/7032308?v=4" title="Tomasz Zadora" width="60" height="60"></a>
<a href="https://github.com/ruudboon"><img src="https://avatars3.githubusercontent.com/u/7444246?s=460&v=4" title="Ruud Boon" width="60" height="60"></a>
<a href="https://github.com/tacxticx88"><img src="https://avatars3.githubusercontent.com/u/12997062?s=460&u=5af0fbe438391ac46fb19befe0c20a4b1374e187&v=4" title="Clément" width="60" height="60"></a>
<a href="https://github.com/Montana"><img src="https://avatars3.githubusercontent.com/u/20936398?s=460&v=4" title="Montana Mendy" width="60" height="60"></a>
<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>
<a href="https://github.com/ak1113"><img src="https://avatars0.githubusercontent.com/u/38716832?s=460&v=4" title="Akira Kato" width="60" height="60"></a>
<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>
<a href="https://github.com/postype"><img src="https://avatars.githubusercontent.com/u/54393235?s=200&v=4" title="https://www.postype.com/" width="60" height="60"></a>
<a href="https://github.com/RaulRaf95"><img src="https://avatars.githubusercontent.com/u/63474503?v=4" title="RaulRaf95" width="60" height="60"></a>
<a href="https://github.com/iogates"><img src="https://avatars.githubusercontent.com/u/86652317?s=200&v=4" title="iogates" width="60" height="60"></a>
<a href="https://github.com/super-dmitriy"><img src="https://avatars.githubusercontent.com/u/5605919?v=4" title="Dmitriy" width="60" height="60"></a>

[//]: github-sponsors

Expand Down
21 changes: 21 additions & 0 deletions CHANGELOG-5.0.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
# [5.0.0](https://github.com/phalcon/cphalcon/releases/tag/v5.0.0) (2022-09-22)

## Changed
- Changed `Phalcon\Logger\Adapter\Stream::process` to open the log file, check for locks, write contents and close the stream [#16072](https://github.com/phalcon/cphalcon/issues/16072)
- Changed getters and setters from shorthand format to full methods [#16102](https://github.com/phalcon/cphalcon/issues/16102)
- Changed return types to `array` in `Phalcon\Annotations\Reflection` class methods [#16106](https://github.com/phalcon/cphalcon/issues/16106)
- Changed `Phalcon\Html\Escaper::attributes()` to also accept an array of attributes [#16108](https://github.com/phalcon/cphalcon/issues/16108)

## Fixed
- Fixed and improved return type of `object` & `?object` [#16023](https://github.com/phalcon/cphalcon/issues/16023)
- Fixed `Phalcon\Filter\Validation\Validator\Digit` to use only strings for `ctype_*` calls [#16064](https://github.com/phalcon/cphalcon/issues/16064)
- Fixed `Phalcon\Flash\AbstractFlash::outputMessage` to return the message (implicitFlush) [#16063](https://github.com/phalcon/cphalcon/issues/16063)
- Fixed `Phalcon\Filter\Validation\Validator\Numericality` to correctly detect illegal characters within string numbers [#16070](https://github.com/phalcon/cphalcon/issues/16070)
- Fixed segmentation fault on Reflection of `Phalcon\Mvc\Model` class [#16080](https://github.com/phalcon/cphalcon/issues/16080)
- Fixed segmentation fault on Reflection [#16096](https://github.com/phalcon/cphalcon/issues/16096)

## Added
- Added `Phalcon\Encryption\Security\JWT\Token::validate()` to validate a token's claims [#16094](https://github.com/phalcon/cphalcon/issues/16094)
- Added `Phalcon\Encryption\Security\JWT\Token::verify()` to verify a token's signature [#16094](https://github.com/phalcon/cphalcon/issues/16094)
- Added `Phalcon\Encryption\Security\JWT\Validator::getErrors()` to return any errors with the validation as an array [#16094](https://github.com/phalcon/cphalcon/issues/16094)

# [5.0.0rc4](https://github.com/phalcon/cphalcon/releases/tag/v5.0.0RC4) (2022-08-08)

## Fixed
Expand Down
15 changes: 4 additions & 11 deletions CODE_OWNERS.TXT
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,13 @@ beautification by scripts. The fields are: name (N), email (E), web-address
The sample of querying command to search PECL keyword:
awk -v RS='' -v ORS='\n\n' '/\nD: .*PECL/' CODE_OWNERS.TXT

N: Ruud Boon
E: [email protected]
W: https://ruudboon.io
P: 0xF2E9F914DFA1BCD7
D: PECL and all parts of Phalcon not covered by someone else
N: Anton Vasiliev
E: [email protected]
P:
D: PECL, CI/CD Integration, Zephir support, Parsers and Scanners, Volt, Annotation, PHQL support

N: Nikolaos Dimopoulos
E: [email protected]
W: https://niden.net
P: 0x93F8CA07B9C8C41D
D: All parts of Phalcon not covered by someone else excluding PECL

N: Serghei Iakovlev
E: [email protected]
W: https://serghei.blog
P: 0x1E0B5331219BEA88
D: CI/CD Integration, Zephir support, Parsers and Scanners, Volt, Annotation, PHQL support
Loading

0 comments on commit 9d2d864

Please sign in to comment.