Category
stdlib — php-src-strict
Problem
With default flags (ENT_COMPAT | ENT_HTML401), html_entity_decode(' ') must decode named HTML entities to their UTF-8 bytes. This compiler leaves literal.
Verified 2026-06-23 on VM (php bin/vm.php).
php-src reference
Repro
test/repro/maintainer_gap_html_entity_decode_nbsp.php
php test/repro/maintainer_gap_html_entity_decode_nbsp.php # exit 0
php bin/vm.php test/repro/maintainer_gap_html_entity_decode_nbsp.php # exit 1
Zend PHP: PASS (\u{00A0})
This compiler: unchanged
Implementation hint
Done when
Links
Category
stdlib— php-src-strictProblem
With default flags (
ENT_COMPAT | ENT_HTML401),html_entity_decode(' ')must decode named HTML entities to their UTF-8 bytes. This compiler leaves literal.Verified 2026-06-23 on VM (
php bin/vm.php).php-src reference
ext/standard/html.c—php_html_entities()/php_unescape_html_entities()ext/standard/html_tables.h— named entity tableRepro
test/repro/maintainer_gap_html_entity_decode_nbsp.phpZend PHP:
PASS(\u{00A0})This compiler:
unchangedImplementation hint
ext/standard/VmString.php/html_entity_decode.php— wire default-flag named-entity decode through shared HTML entity tables (PHP-in-PHP)ENT_*flag handling (Stdlib: html_entity_decode() combined ENT_* flags — LogicException not decoded output (ext/standard/html.c) #10519)runtime/*.centity tablesDone when
,<,>decode with default flagstest/compliance/cases/stdlib/./script/ci-fast.shgreenLinks