Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    PHP 8.6 Upgrade Audit: Every Breaking Change & Deprecation, Found and Fixed

    1

    Scans a PHP 8.4/8.5 codebase and writes a go/no-go PHP 8.6 report with file:line findings, blocking dependencies and exact fixes.

    $1

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    PHP 8.6 Upgrade Audit: Every Breaking Change & Deprecation, Found and Fixed

    PHP 8.6 Upgrade Audit: Every Breaking Change & Deprecation, Found and Fixed

    Example session with this skill installed

    Is our Laravel shop app ready for PHP 8.6? We're on PHP 8.5. Audit it and tell me what to fix.

    • Read your context and instructions
    • Compiled the php 8 6

    PHP 8.6 Upgrade Report — acme/shop — 2026-11-15

    Verdict: NO-GO (5 blockers, 2 BREAK)
    Current PHP: 8.5.12 · Native sessions: yes (src/Checkout.php:17)

    Blockers

    #WhereValueFix
    1composer.json require.php~8.4.0 || 8.5.*^8.4
    2composer.json config.platform.php8.5.128.6.0
    3composer.lock acme/legacy-pdf 2.3.1>=8.1 <8.6upgrade or replace the package
    4Dockerfile:1php:8.5-fpm-alpinephp:8.6-fpm-alpine
    5.github/workflows/ci.yml:5['8.4', '8.5']add '8.6'

    Findings

    #SevIDLocationStatusIssueFix
    1BREAKB05src/Checkout.php:44CONFIRMEDunpack('n<length/...') — '<' now an endianness modifier'n1<length' or rename key
    2BREAKB30src/Upload.php:2CONFIRMEDallow-list has font/sfnt; TTF now font/ttfadd font/ttf
    3DEPRECATIOND09src/Checkout.php:4CONFIRMEDdefine() third argumentremove it
    4DEPRECATIOND01src/Checkout.php:22CONFIRMEDreturn inside finallyreturn after try/finally
    5DEPRECATIOND04src/Checkout.php:11CONFIRMEDreturn false in __construct()throw or use return;
    6DEPRECATIOND17src/DbSessionHandler.php:4CONFIRMEDhandler lacks validateId() and create_sid()implement both
    7DEPRECATIOND32src/ShopDate.php:8CONFIRMEDsetTimezone() override lacks : staticdeclare : static
    8DEPRECATIOND26src/Checkout.php:39CONFIRMEDis_double()/doubleval()is_float()/floatval()
    …6 more

    Session defaults (B01)

    Checkout uses session_start() and the card gateway POSTs back to /checkout/return → under SameSite=Lax the session cookie is dropped. Fix: signed order token on the return URL.

    Runtime on PHP 8.6

    NOT RUN — blockers first. Command prepared: docker run … php:8.6-cli vendor/bin/phpunit

    composer.json

    Connects securely to your tools. The creator never sees your data.

    About this skill

    PHP 8.6 is scheduled for general availability on 19 November 2026. It adds about 30 deprecations (E_DEPRECATED today, removal planned for PHP 9) and a long list of behaviour changes, the most dangerous being new secure session defaults (use_strict_mode=1, cookie_httponly=1, cookie_samesite=Lax) that can silently break payment-gateway returns and SSO POST flows. This skill turns that change list into an evidence-backed audit of one codebase: a static scan with file:line findings, a dependency and infrastructure check, a runtime test plan on PHP 8.6, fixes, and a report that ends in a clear verdict.

    Facts in this skill were checked on 15 November 2026 against the php-src PHP-8.6 branch UPGRADING file and the release timetable at https://wiki.php.net/todo/php86 (RC5 shipped 5 November 2026). The full catalogue with IDs is in reference/php86-changes.md.

    • Planning or executing a move from PHP 8.4 or 8.5 to PHP 8.6.
    • A CI matrix is gaining a PHP 8.6 job and deprecation notices or failures appeared.
    • A hosting provider, Docker base image or Linux distribution is about to switch to 8.6.
    • Someone asks whether a specific library, plugin or app works on PHP 8.6.

    Do not use it for upgrades from PHP 8.3 or older: first reach 8.5 (8.4 and 8.5 changes are not covered here), then run this audit.

    Covers PHP 8.5 to 8.6 changes only (upgrade older apps to 8.5 first). Static scanning cannot know variable types, so some findings are marked "verify" and must be confirmed by reading the code; behaviour changes such as by-reference foreach and magic-property semantics are listed as manual checks. Facts were checked against the php-src PHP-8.6 UPGRADING file on 15 Nov 2026, four days before the scheduled 19 Nov GA; the skill tells the agent to re-check after GA. It does not edit vendor/ and does not auto-apply fixes without review.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 2 days ago

    Requires

    Python 3.8+
    PHP project source code
    Git

    Permissions

    Allowed Hosts

    github.com (optional, to re-read php-src UPGRADING)
    wiki.php.net (optional)
    hub.docker.com (optional, to pull a PHP 8.6 image)

    File Scopes

    Project
    directory
    (read)
    PHP86-UPGRADE-REPORT.md
    in
    the
    project
    root
    (write)
    Source
    files
    only
    when
    applying
    approved
    fixes

    The bundled scanner is read-only, uses only the Python standard library, never executes project code and never uses the network.

    Listed2 days ago

    What's inside

    Frequently Asked Questions

    All deprecations and backward-incompatible changes listed in the official PHP 8.6 UPGRADING file (about 30 deprecations and 30 behaviour changes), organised into 70 rule IDs, plus version pins in composer.json, composer.lock, Dockerfiles and GitHub Actions. Each finding comes with a file:line and a fix.

    Yes. It scans any PHP codebase and adds framework notes: for example, Laravel's own session layer is not affected by the new session INI defaults, while code or plugins calling session_start() are.

    Checked on 15 November 2026 against the php-src PHP-8.6 branch UPGRADING file and the release timetable (GA scheduled for 19 November 2026). The skill tells the agent to re-check the official file if it runs after GA.

    It combines a static scan, a dependency/infra blocker check, a session-cookie impact decision and a runtime test plan into one report with a clear verdict, and it forces the agent to confirm heuristic hits instead of guessing. Use it alongside static analysers, not instead of your tests.

    No. It reports findings and proposes exact fixes; the agent applies fixes only when you ask, and never edits vendor/.

    New in Security