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
show_source() is a legacy alias of highlight_file() in php-src. Scripts and docs still call show_source($file); this compiler has neither function (#3164 tracks highlight_file / highlight_string).
Category
stdlibProblem
show_source()is a legacy alias ofhighlight_file()in php-src. Scripts and docs still callshow_source($file); this compiler has neither function (#3164 trackshighlight_file/highlight_string).php-src reference
ext/standard/url.c—PHP_FUNCTION(show_source)→highlight_file(INTERNAL_FUNCTION_PARAM_PASSTHRU)ext/standard/php_highlight.h— shared highlighterRepro (today)
./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && php bin/vm.php repro.php'Call to undefined function show_source()Scope (this repo)
ext/standard/show_source.php— thin wrapper calling shared highlighterhighlight_file/highlight_string)ext/standard/Module.phpscript/capability-matrix.phpDone when
show_source($path)echoes highlighted HTML like Zendshow_source($path, true)returns string.phptundertest/compliance/cases/stdlib/Related
highlight_string()/highlight_file()