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

WordPress on php127

The blog you are reading is a WordPress site served by php127. This article explains how WordPress is checked under php127, what that check covers and what it leaves aside. It relies on the code of the acceptation/j3wordpress acceptance bench in revision 11f6d94 and on the project's records (dettes.md, regressions-bancs.md, constat-pratiques-performance.md).

The bench: unmodified WordPress, two runtimes

The bench runs WordPress 6.9.4 without modification, once under PHP 8.3.6, which serves as the reference, and once under php127. Both instances start from the same initial database, receive the same HTTP requests, and their responses are compared. It runs on two databases: SQLite, through WordPress's official SQLite integration in version 3.1.3, and MariaDB 11.4 through mysqli. The MariaDB image is pinned by its digest and is never pulled from the network during the bench.

The scenario (acceptation/j3wordpress/scenario_test.go) has eight steps:

  • public reads with the classic Twenty Twenty-One theme: home page, post, search, and a check that a draft is visible neither at the post's address nor through search, and that a non-existent post returns a 404 error;
  • home page and post reads with the Twenty Twenty-Five block theme;
  • the RSS 2.0 feed, parsed as XML;
  • logging in to the administration, with a wrong password refused, and resuming the session;
  • administration, reading and writing;
  • the REST API, version 2;
  • uploading a media file, with an anonymous upload and a forbidden file type refused;
  • blocked outbound network: no request may leave for the outside.

At every launch, php127 receives PHP127_BLOCK_EXTERNAL=1, which makes cURL refuse addresses outside the loopback; it covers neither sockets nor the MySQL driver. WordPress is also configured to block its own external calls, automatic updates and scheduled task. The bench checks two failure situations: when MariaDB is unreachable, the page must report a database error without silently switching to SQLite; when SQLite fails, no connection to MariaDB may open.

For this internal bench, the team had php127's code, the PHP 8.3.6 binary, Docker and its local MariaDB 11.4 image, dpkg-deb, and the packages and sources at paths fixed by side_test.go. It used the following command; this description assumes no reader access to those resources:

CGO_ENABLED=0 go test -count=1 ./acceptation/j3wordpress

The state of the bench at the date of this article

The regression record of 2026-11-21 at 17:18 (regressions-bancs.md) did not list WordPress among failing benches. Since 2026-11-22, the operational bench acceptation/j7blog also covers language changes, a plugin's installation and update cycle, and PNG thumbnail pixels: j9/c9_blog_ecarts.out.md records its pass with an empty discrepancy table. This result concerns that journey, not all WordPress plugins.

This finding has its limits, and the bench's history shows them. On 2026-11-20, when one stage of the project was being closed, the WordPress bench was failing, and this regression had stayed invisible through 41 successive integrations, because the integration gate did not replay the benches that start the binary without importing its packages (constat-pratiques-performance.md). The same day, a reporting defect of the bench was recorded: its summary message announced "ZÉRO ÉCART OBSERVÉ (43 pas conformes)", that is "zero discrepancy observed (43 conforming steps)", while uncatalogued divergences were making the test fail (dettes.md). The record of 2026-11-21 cited above is precisely a replay of the benches on successive heads, not a conclusion drawn from package tests.

What is not checked

The historical acceptation/j3wordpress bench, described as of 2026-11-21 on 11f6d94, covers WordPress core and two bundled themes. The following limits concern that bench; the operational journey added since is distinguished above:

  • third-party plugins in general. This blog's bilingual navigation relies on site-specific categories, metadata and translation links, without a third-party translation plugin (installation/blog/LISEZMOI.md); the plugin cycle exercised by the operational bench does not qualify every other plugin;
  • updates through the administration, which are disabled in the bench;
  • comments: no step posts one;
  • load. The bench checks responses, not behaviour under traffic, nor memory stability over a long period. The measured slowness of php127, described in the article on speed, is the reason why the blog of this site is served behind an nginx page cache;
  • MariaDB 10.11. The bench runs against MariaDB 11.4; the server of this site runs version 10.11 from its distribution.

Known discrepancies that affect WordPress

Several discrepancies recorded in dettes.md concern WordPress media and logs:

  • the record of 2026-11-20 says that imagewebp only writes lossless WebP and that no lossy WebP decoder is shipped; it does not measure a WordPress journey resizing a lossy WebP image;
  • getimagesize reads the whole file to obtain the dimensions (2026-11-20). The result is correct, but the cost grows with the size of the image;
  • the imagecreatefrom* functions do not reproduce the text or the number of PHP 8.3.6 warnings; only the false result and the presence of a warning are checked (2026-11-20);
  • the WordPress log carries a MariaDB warning about disabled certificate verification, for a connection without a password (2026-11-20).

What this means for you

The historical bench covers the reads, search, feeds, administration and REST API cases named above; its successful upload uses a text/plain file, not every media type. The operational bench adds the journeys dated 2026-11-22 without establishing compatibility for every plugin or theme. Comparing application-specific journeys remains the team's method for the audit offer presented on this site; it does not guarantee unexercised journeys.

Lire en français