You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
highlight_string() and highlight_file() VM implementations delegate to host Zendhighlight_string() / highlight_file() via ext/standard/VmHighlight.php. Bootstrap/self-host binaries must not call host PHP builtins for syntax highlighting — same class of gap as #4795 (json), #4790 (hash).
Category
bootstrap|stdlibProblem
highlight_string()andhighlight_file()VM implementations delegate to host Zendhighlight_string()/highlight_file()viaext/standard/VmHighlight.php. Bootstrap/self-host binaries must not call host PHP builtins for syntax highlighting — same class of gap as #4795 (json), #4790 (hash).php-src reference
ext/standard/url.c—PHP_FUNCTION(highlight_string)ext/standard/php_highlight.h— tokenizer → HTML rendererRepro
Scope (this repo)
ext/standard/VmHighlight.php— port mini highlighter or bundle tokenizer color tableext/standard/highlight_string.php,highlight_file.phplib/JIT/Builtin/*— phase 2 JIT (Stdlib: highlight_string/highlight_file/show_source — JIT/AOT lowering (phase 2 of #3164) #4366) after VM native path exists\highlight_stringfrom bootstrap inventoryDone when
php bin/vm.php repro_highlight.phpprints HTML matching Zend structure on a fixed snippet without loading hosthighlight_*.php script/bootstrap-inventory.php --checkno longer flags host delegation for these functions.Related