{"id":18,"date":"2026-11-21T12:03:00","date_gmt":"2026-11-21T12:03:00","guid":{"rendered":"https:\/\/php127.hazyhaar.fr\/blog\/?p=18"},"modified":"2026-11-22T04:03:17","modified_gmt":"2026-11-22T04:03:17","slug":"en-04-what-changes-compared-to-php","status":"publish","type":"post","link":"https:\/\/php127.hazyhaar.fr\/blog\/en-04-what-changes-compared-to-php\/","title":{"rendered":"What changes compared to PHP"},"content":{"rendered":"<p>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.<\/p>\n<h2>Excluded extensions and features<\/h2>\n<p>Some areas have been removed from the conformance target by decision, and are not implemented in php127:<\/p>\n<ul>\n<li>the <code>exif<\/code> extension, for which 91 tests of the official suite are skipped, and the <code>sodium<\/code> extension, for which 29 tests are skipped, both excluded on 2026-11-20;<\/li>\n<li><code>zend.multibyte<\/code> and <code>declare(encoding)<\/code>, 12 tests, the opcache extension, 4 tests, and <code>declare(ticks)<\/code>, 3 tests, excluded on 2026-11-21.<\/li>\n<\/ul>\n<p>On the same day, 4 tests dealing with recursion depth and memory limits were deferred to the performance work (<code>decisions.md<\/code>, <code>dettes.md<\/code>). Code that calls a <code>sodium<\/code> or <code>exif<\/code> function will therefore fail under php127. Code that assumes opcache is present, for instance to read its status, will find nothing there.<\/p>\n<p>The security record of 2026-11-21 on f2f65ad (<code>open_basedir_2.out.md<\/code>) also noted the absence of the <code>SQLite3<\/code> class, <code>XMLReader<\/code>, <code>xmlwriter_open_uri<\/code>, <code>posix_access<\/code>, <code>posix_mkfifo<\/code>, <code>libxml_set_external_entity_loader<\/code>, <code>imageloadfont<\/code> and the <code>imagettf*<\/code> functions. This list is historical: <code>posix_mkfifo<\/code> is provided at reference revision 5b31e86 (<code>extproc\/functions.go<\/code>). SQLite remains available through PDO.<\/p>\n<h2>Databases<\/h2>\n<p>PDO offers two drivers, <code>sqlite<\/code> and <code>mysql<\/code> (<code>pdo\/engine.go<\/code>). A <code>pgsql:<\/code> DSN raises a <code>PDOException<\/code> &quot;could not find driver&quot;, and the PDO conformance suite checks exactly this refusal, as well as the absence of any fallback to SQLite (<code>runtimeapi\/conformpdo\/suite.go<\/code>). There is therefore <strong>no PostgreSQL driver<\/strong>. <code>mysqli<\/code> is provided, on top of a MySQL protocol driver written in Go.<\/p>\n<p>The record of 2026-11-20 reported &quot;mysqlnd Go&quot; for <code>mysqli_get_client_info()<\/code>. This is outdated: as of 2026-11-21, revision 11f6d94, the function already returned &quot;mysqlnd 8.3.6&quot;, as it does at reference revision 5b31e86 (<code>mysqli\/conn_api.go<\/code>). That old debt therefore does not describe the reference code.<\/p>\n<h2>Configuration<\/h2>\n<p>Four configuration differences are worth knowing before any deployment.<\/p>\n<p>php127 does not look for a <code>php.ini<\/code> by default; it only reads the one named by the <code>-c<\/code> option (<code>cmd\/php127\/ini_options.go<\/code>). An installation that relies on a file placed in a system directory will not see its settings.<\/p>\n<p>In a pool file in the PHP-FPM format, the directives <code>user<\/code>, <code>group<\/code>, <code>chroot<\/code> and <code>security.limit_extensions<\/code> are accepted without effect (<code>sapi\/fpm\/config.go<\/code>). Switching users and confinement must be done by the service manager.<\/p>\n<p>As of 2026-11-21, revision 11f6d94, php127 set <code>zend.exception_ignore_args<\/code> to 1 when nothing set it (<code>cmd\/php127\/main.go<\/code>). 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 <code>cmd\/php127\/fix8_test.go<\/code> cover the default and explicit settings.<\/p>\n<p>Finally, when php127 serves pages, with the built-in HTTP server as with FastCGI, <code>proc_open<\/code> and <code>shell_exec<\/code> are refused; the <code>acceptation\/j4ecosysteme<\/code> bench checks this. A WordPress plugin or a module that runs an external command from a page will not work.<\/p>\n<h2>Known discrepancies, by area<\/h2>\n<p>The following discrepancies come from the project&#039;s debt register (<code>dettes.md<\/code>), with the date they were recorded. The list is not exhaustive: it keeps those that a common application is likely to meet.<\/p>\n<p><strong>Images.<\/strong> <code>imagewebp<\/code> only writes lossless WebP, and no lossy WebP decoder is shipped (2026-11-20). <code>imageinterlace()<\/code> keeps the flag, but the encoders do not produce interlaced or progressive files (2026-11-20).<\/p>\n<p><strong>Archives.<\/strong> The record of 2026-11-20 reports the absence of the ten procedural <code>zip_*<\/code> functions. For the cases played with <code>ZipArchive<\/code>, it also describes an <code>Error<\/code> 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 <code>..\/<\/code> entry back inside the folder instead of refusing it. These remain observations from that record, without claiming that <code>ZipArchive<\/code> is the only interface provided.<\/p>\n<p><strong>Strings and encodings.<\/strong> <code>mb_convert_encoding<\/code> to <code>HTML-ENTITIES<\/code> returns a numeric entity where PHP returns the named entity (2026-11-20). <code>Collator<\/code> does not support <code>SORT_NUMERIC<\/code>, and its ordering is only checked on <code>fr_FR<\/code> and <code>en_US<\/code> (2026-11-20).<\/p>\n<p><strong>Formerly missing functions.<\/strong> Records from 2026-11-21 at 0:10 and 4:44 reported <code>getopt<\/code>, <code>get_browser<\/code>, <code>strptime<\/code>, <code>output_add_rewrite_var<\/code> and solar calculations. They are not a list of current absences: reference revision 5b31e86 implements them in <code>vm\/getopt.go<\/code>, <code>stdlib\/browser.go<\/code>, <code>datetime\/strptime.go<\/code>, <code>vm\/intrinsic.go<\/code> and <code>datetime\/solar.go<\/code>. The lack of <code>include_path<\/code> lookup in <code>fopen<\/code> and <code>gzopen<\/code>, and the missing <code>compress.zlib:\/\/<\/code> wrapper, are historical observations from 2026-11-20 here, without a new measurement.<\/p>\n<p><strong>Output.<\/strong> Resource numbering starts at 1 under php127 and at 5 under PHP 8.3.6 in the reference scenario; a test that compares the <code>var_dump<\/code> output of a resource will see the difference (2026-11-20).<\/p>\n<p><strong>Memory.<\/strong> A test from the official suite made php127 exceed 24 GiB: <code>memory_limit<\/code> did not bound that case (2026-11-20).<\/p>\n<h2>What does not change<\/h2>\n<p>The PHP code itself does not change. php127 reads PHP 8.3 syntax, and <code>php127 -v<\/code> presents itself as PHP 8.3.6. The WordPress bench, for instance, runs WordPress without any change to its code (<code>acceptation\/j3wordpress<\/code>). The articles on WordPress, PrestaShop, Symfony and Composer say what their benches cover.<\/p>\n<h2>How to tell whether your application is affected<\/h2>\n<p>The project&#039;s method compares an application&#039;s tests under PHP 8.3.6 and php127. The module list and the application&#039;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.<\/p>\n<p class=\"php127-traduction\"><a rel=\"alternate\" hreflang=\"fr\" href=\"https:\/\/php127.hazyhaar.fr\/blog\/fr-04-ce-qui-change-par-rapport-a-php\/\">Lire en fran\u00e7ais<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-18","post","type-post","status-publish","format-standard","hentry","category-en"],"_links":{"self":[{"href":"https:\/\/php127.hazyhaar.fr\/blog\/wp-json\/wp\/v2\/posts\/18","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/php127.hazyhaar.fr\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/php127.hazyhaar.fr\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/php127.hazyhaar.fr\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/php127.hazyhaar.fr\/blog\/wp-json\/wp\/v2\/comments?post=18"}],"version-history":[{"count":2,"href":"https:\/\/php127.hazyhaar.fr\/blog\/wp-json\/wp\/v2\/posts\/18\/revisions"}],"predecessor-version":[{"id":62,"href":"https:\/\/php127.hazyhaar.fr\/blog\/wp-json\/wp\/v2\/posts\/18\/revisions\/62"}],"wp:attachment":[{"href":"https:\/\/php127.hazyhaar.fr\/blog\/wp-json\/wp\/v2\/media?parent=18"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/php127.hazyhaar.fr\/blog\/wp-json\/wp\/v2\/categories?post=18"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/php127.hazyhaar.fr\/blog\/wp-json\/wp\/v2\/tags?post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}