Skip to content / Aller au contenu
php127.hazyhaar.fr
Theme / Thème

What changes compared to PHP

php127 aims for the behaviour of PHP 8.3.6, but it is not PHP 8.3.6. This article gathers what a developer needs to know before running an existing application: missing or excluded extensions, supported databases, configuration differences and known discrepancies. Each point carries the date of the record that establishes it. A discrepancy recorded on a given date may have been fixed since; the reverse is also true, since tests that used to pass have already been lost from one run to the next.

Excluded extensions and features

Some areas have been removed from the conformance target by decision, and are not implemented in php127:

  • the exif extension, for which 91 tests of the official suite are skipped, and the sodium extension, for which 29 tests are skipped, both excluded on 2026-11-20;
  • zend.multibyte and declare(encoding), 12 tests, the opcache extension, 4 tests, and declare(ticks), 3 tests, excluded on 2026-11-21.

On the same day, 4 tests dealing with recursion depth and memory limits were deferred to the performance work (decisions.md, dettes.md). Code that calls a sodium or exif function will therefore fail under php127. Code that assumes opcache is present, for instance to read its status, will find nothing there.

The security record of 2026-11-21 on f2f65ad (open_basedir_2.out.md) also noted the absence of the SQLite3 class, XMLReader, xmlwriter_open_uri, posix_access, posix_mkfifo, libxml_set_external_entity_loader, imageloadfont and the imagettf* functions. This list is historical: posix_mkfifo is provided at reference revision 5b31e86 (extproc/functions.go). SQLite remains available through PDO.

Databases

PDO offers two drivers, sqlite and mysql (pdo/engine.go). A pgsql: DSN raises a PDOException "could not find driver", and the PDO conformance suite checks exactly this refusal, as well as the absence of any fallback to SQLite (runtimeapi/conformpdo/suite.go). There is therefore no PostgreSQL driver. mysqli is provided, on top of a MySQL protocol driver written in Go.

The record of 2026-11-20 reported "mysqlnd Go" for mysqli_get_client_info(). This is outdated: as of 2026-11-21, revision 11f6d94, the function already returned "mysqlnd 8.3.6", as it does at reference revision 5b31e86 (mysqli/conn_api.go). That old debt therefore does not describe the reference code.

Configuration

Four configuration differences are worth knowing before any deployment.

php127 does not look for a php.ini by default; it only reads the one named by the -c option (cmd/php127/ini_options.go). An installation that relies on a file placed in a system directory will not see its settings.

In a pool file in the PHP-FPM format, the directives user, group, chroot and security.limit_extensions are accepted without effect (sapi/fpm/config.go). Switching users and confinement must be done by the service manager.

As of 2026-11-21, revision 11f6d94, php127 set zend.exception_ignore_args to 1 when nothing set it (cmd/php127/main.go). PHP 8.3.6 started without a configuration file uses 0 and therefore shows arguments in stack traces. This override no longer exists at reference revision 5b31e86; tests in cmd/php127/fix8_test.go cover the default and explicit settings.

Finally, when php127 serves pages, with the built-in HTTP server as with FastCGI, proc_open and shell_exec are refused; the acceptation/j4ecosysteme bench checks this. A WordPress plugin or a module that runs an external command from a page will not work.

Known discrepancies, by area

The following discrepancies come from the project's debt register (dettes.md), with the date they were recorded. The list is not exhaustive: it keeps those that a common application is likely to meet.

Images. imagewebp only writes lossless WebP, and no lossy WebP decoder is shipped (2026-11-20). imageinterlace() keeps the flag, but the encoders do not produce interlaced or progressive files (2026-11-20).

Archives. The record of 2026-11-20 reports the absence of the ten procedural zip_* functions. For the cases played with ZipArchive, it also describes an Error with an internal message for an entry escaping the folder or a decompression bomb, where PHP returns a status code; PHP 8.3.6 brings the ../ entry back inside the folder instead of refusing it. These remain observations from that record, without claiming that ZipArchive is the only interface provided.

Strings and encodings. mb_convert_encoding to HTML-ENTITIES returns a numeric entity where PHP returns the named entity (2026-11-20). Collator does not support SORT_NUMERIC, and its ordering is only checked on fr_FR and en_US (2026-11-20).

Formerly missing functions. Records from 2026-11-21 at 0:10 and 4:44 reported getopt, get_browser, strptime, output_add_rewrite_var and solar calculations. They are not a list of current absences: reference revision 5b31e86 implements them in vm/getopt.go, stdlib/browser.go, datetime/strptime.go, vm/intrinsic.go and datetime/solar.go. The lack of include_path lookup in fopen and gzopen, and the missing compress.zlib:// wrapper, are historical observations from 2026-11-20 here, without a new measurement.

Output. Resource numbering starts at 1 under php127 and at 5 under PHP 8.3.6 in the reference scenario; a test that compares the var_dump output of a resource will see the difference (2026-11-20).

Memory. A test from the official suite made php127 exceed 24 GiB: memory_limit did not bound that case (2026-11-20).

What does not change

The PHP code itself does not change. php127 reads PHP 8.3 syntax, and php127 -v presents itself as PHP 8.3.6. The WordPress bench, for instance, runs WordPress without any change to its code (acceptation/j3wordpress). The articles on WordPress, PrestaShop, Symfony and Composer say what their benches cover.

How to tell whether your application is affected

The project's method compares an application's tests under PHP 8.3.6 and php127. The module list and the application's use of functions complement that analysis without replacing application journeys. The shop presents this audit offer; ordering will open after the company is registered and the legal notices are completed.

Lire en français