ext/pdo: Refactor PDO::FETCH_CLASS to not rely on a FCI and use a HashTable for ctor_arg #25895
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Push | |
on: | |
push: | |
paths-ignore: | |
- docs/** | |
- NEWS | |
- UPGRADING | |
- UPGRADING.INTERNALS | |
- '**/README.*' | |
- CONTRIBUTING.md | |
- CODING_STANDARDS.md | |
- .cirrus.yml | |
- .circleci/** | |
branches: | |
- PHP-8.1 | |
- PHP-8.2 | |
- PHP-8.3 | |
- PHP-8.4 | |
- master | |
pull_request: | |
paths-ignore: | |
- docs/** | |
- NEWS | |
- UPGRADING | |
- UPGRADING.INTERNALS | |
- '**/README.*' | |
- CONTRIBUTING.md | |
- CODING_STANDARDS.md | |
- .cirrus.yml | |
- .circleci/** | |
branches: | |
- '**' | |
workflow_dispatch: ~ | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.url || github.run_id }} | |
cancel-in-progress: true | |
env: | |
CC: ccache gcc | |
CXX: ccache g++ | |
jobs: | |
LINUX_X64: | |
if: github.repository == 'php/php-src' || github.event_name == 'pull_request' | |
services: | |
mysql: | |
image: mysql:8.3 | |
ports: | |
- 3306:3306 | |
env: | |
MYSQL_DATABASE: test | |
MYSQL_ROOT_PASSWORD: root | |
postgres: | |
image: postgres | |
ports: | |
- 5432:5432 | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: test | |
firebird: | |
image: jacobalberty/firebird | |
ports: | |
- 3050:3050 | |
env: | |
ISC_PASSWORD: test | |
FIREBIRD_DATABASE: test.fdb | |
FIREBIRD_USER: test | |
FIREBIRD_PASSWORD: test | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- debug: false | |
zts: false | |
asan: false | |
- debug: true | |
zts: true | |
asan: true | |
name: "LINUX_X64_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}${{ matrix.asan && '_ASAN' || '' }}" | |
runs-on: ubuntu-24.04 | |
timeout-minutes: 50 | |
steps: | |
- name: git checkout | |
uses: actions/checkout@v4 | |
- name: apt | |
uses: ./.github/actions/apt-x64 | |
- name: System info | |
run: | | |
echo "::group::Show host CPU info" | |
lscpu | |
echo "::endgroup::" | |
echo "::group::Show installed package versions" | |
dpkg -l | |
echo "::endgroup::" | |
- name: Create MSSQL container | |
if: ${{ !matrix.asan }} | |
uses: ./.github/actions/setup-mssql | |
- name: Setup Caddy server | |
uses: ./.github/actions/setup-caddy | |
- name: ccache | |
uses: hendrikmuhs/[email protected] | |
with: | |
# This duplicates the "job.name" expression above because | |
# GitHub has no way to query the job name (github.job is the | |
# job id, not the job name) | |
key: "LINUX_X64_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}${{ matrix.asan && '_ASAN' || '' }}-${{hashFiles('main/php_version.h')}}" | |
append-timestamp: false | |
save: ${{ github.event_name != 'pull_request' }} | |
- name: ./configure | |
uses: ./.github/actions/configure-x64 | |
with: | |
configurationParameters: >- | |
--${{ matrix.debug && 'enable' || 'disable' }}-debug | |
--${{ matrix.zts && 'enable' || 'disable' }}-zts | |
${{ matrix.asan && 'CFLAGS="-fsanitize=undefined,address -fno-sanitize=function -DZEND_TRACK_ARENA_ALLOC" LDFLAGS="-fsanitize=undefined,address -fno-sanitize=function" CC=clang CXX=clang++' || '' }} | |
skipSlow: ${{ matrix.asan }} | |
- name: make | |
run: make -j$(/usr/bin/nproc) >/dev/null | |
- name: make install | |
uses: ./.github/actions/install-linux | |
- name: Setup | |
if: ${{ !matrix.asan }} | |
uses: ./.github/actions/setup-x64 | |
- name: Test | |
if: matrix.asan == false | |
uses: ./.github/actions/test-linux | |
- name: Test Tracing JIT | |
uses: ./.github/actions/test-linux | |
with: | |
jitType: tracing | |
runTestsParameters: >- | |
-d zend_extension=opcache.so | |
-d opcache.enable_cli=1 | |
${{ matrix.asan && '--asan -x' || '' }} | |
- name: Verify generated files are up to date | |
if: ${{ !matrix.asan }} | |
uses: ./.github/actions/verify-generated-files |