Skip to content

Stdlib: mb_chr/mb_ord Zend stub named params (#23291)#23299

Merged
PurHur merged 1 commit into
masterfrom
agent/ext-io-23291-mb-chr-ord-reflection
Jul 26, 2026
Merged

Stdlib: mb_chr/mb_ord Zend stub named params (#23291)#23299
PurHur merged 1 commit into
masterfrom
agent/ext-io-23291-mb-chr-ord-reflection

Conversation

@PurHur

@PurHur PurHur commented Jul 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Register Zend stub Reflection parameter names for mb_chr / mb_ord (codepoint/string + encoding) in BuiltinParamNames, plus related mb_scrub / mb_str_split.
  • Fixes named-arg rejection (Unknown named parameter $codepoint / $string) on VM.
  • Includes spine require for ext/xsl/XsltPhpFunctionBridge.php omitted from Stdlib: XSLTProcessor php:function() VM userland bridge (#22632) #23296 (unblocks spine-coverage / north-star5 step 2).

Closes #23291

php-src reference

  • ext/mbstring/mbstring.stub.phpmb_chr, mb_ord, mb_scrub, mb_str_split

PHP implementation

  • lib/BuiltinParamNames.php only (no new C)
  • Compliance + repro + unit coverage

Test plan

  • php bin/vm.php test/repro/issue_23291_mb_chr_ord_named_params.phpok
  • Issue repro: mb_chr(codepoint:0x41) / mb_ord(string:'A') + Reflection names
  • vendor/bin/phpunit --filter BuiltinParamNamesAliasTest::testMbChrOrdZendStubNamedParams
  • vendor/bin/phpunit --filter named_args_mb_chr_ord (VM+JIT)
  • php script/check-selfhost-spine-coverage-sync.php → OK 6565/6565
  • ./script/check-generated-docs.sh → OK
  • ./script/ci-fast.sh (running)

Pillar 1 note

  • Master: spine missing XsltPhpFunctionBridge.php (this PR fixes).
  • north-star5-verify-fast step 4f-m still fails on both master and this branch (stale gen-0 fingerprint — pre-existing, not introduced here).

Made with Cursor

Register Reflection parameter names from php-src mbstring.stub.php so
named calls and Reflection match Zend; include spine require for
XsltPhpFunctionBridge left out of #23296.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur
PurHur merged commit f7c7495 into master Jul 26, 2026
1 of 2 checks passed
@PurHur
PurHur deleted the agent/ext-io-23291-mb-chr-ord-reflection branch July 26, 2026 04:44
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.

Regression: mb_chr/mb_ord Reflection params empty — Zend codepoint/string; named args rejected (ext/mbstring/mbstring.stub.php)

1 participant