Skip to content

Stdlib: show_source() — alias of highlight_file() (VM + AOT) (#3447) - #3982

Merged
PurHur merged 1 commit into
masterfrom
agent/stdlib-show-source-3447
Jun 1, 2026
Merged

Stdlib: show_source() — alias of highlight_file() (VM + AOT) (#3447)#3982
PurHur merged 1 commit into
masterfrom
agent/stdlib-show-source-3447

Conversation

@PurHur

@PurHur PurHur commented Jun 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add show_source() as a thin delegate to highlight_file() per php-src ext/standard/url.c.
  • Register in ext/standard/Module.php and AOT builtin_function_names.inc.
  • Extend highlight_string.phpt compliance probe for show_source() echo/return paths.

php-src reference: ext/standard/url.cPHP_FUNCTION(show_source)highlight_file(INTERNAL_FUNCTION_PARAM_PASSTHRU)

Closes #3447

Verification

./script/docker-exec.sh --sync-back docs/capabilities.md -- bash -lc '
  source script/php-env.sh
  php script/capability-matrix.php --check
  vendor/bin/phpunit test/compliance/VMTest.php --filter highlight_string
'

./script/docker-exec.sh -- bash -lc '
  source script/php-env.sh
  php bin/compile.php -l /tmp/show_source_repro.php
'

VM test output:

OK (1 test, 1 assertion)

AOT lint: AOT lint OK

Capability matrix: show_source | yes | yes | yes | standard |

Made with Cursor

Register show_source() delegating to highlight_file() for php-src url.c
parity; extend highlight compliance probe and AOT builtin list.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur
PurHur merged commit 1c5a2a9 into master Jun 1, 2026
@PurHur
PurHur deleted the agent/stdlib-show-source-3447 branch June 1, 2026 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stdlib: show_source() — alias of highlight_file() (ext/standard/url.c parity)

1 participant