Category
bug · php-src-strict · named arguments / Reflection
Problem
mb_chr / mb_ord work positionally, but Reflection exposes zero parameters, so Zend stub named calls fail. Probed 2026-07-26 vs host Zend 8.2.32.
| Repro |
Zend 8.2 |
VM (2026-07-26) |
Reflection mb_chr |
codepoint,encoding |
empty |
Reflection mb_ord |
string,encoding |
empty |
mb_chr(codepoint:0x41) |
A |
Unknown named parameter $codepoint |
mb_ord(string:'A') |
65 |
Unknown named parameter $string |
Related empty Reflection in same extension (optional same PR): mb_scrub, mb_str_split.
php-src reference
PHP implementation target
lib/BuiltinParamNames.php — stub names
- Existing PHP impl:
ext/mbstring/ (mb_chr, mb_ord); PHP-in-PHP only; no new C
Repro
./script/docker-exec.sh -- bash -lc 'php bin/vm.php -r '\''try { echo mb_chr(codepoint:0x41), "\n"; echo mb_ord(string:"A"), "\n"; } catch (Throwable $e) { echo $e->getMessage(), "\n"; }'\'''
Done when
Category
bug· php-src-strict · named arguments / ReflectionProblem
mb_chr/mb_ordwork positionally, but Reflection exposes zero parameters, so Zend stub named calls fail. Probed 2026-07-26 vs host Zend 8.2.32.mb_chrcodepoint,encodingmb_ordstring,encodingmb_chr(codepoint:0x41)AUnknown named parameter $codepointmb_ord(string:'A')65Unknown named parameter $stringRelated empty Reflection in same extension (optional same PR):
mb_scrub,mb_str_split.php-src reference
ext/mbstring/mbstring.stub.php—mb_chr,mb_ordPHP implementation target
lib/BuiltinParamNames.php— stub namesext/mbstring/(mb_chr,mb_ord); PHP-in-PHP only; no new CRepro
Done when
mb_chr/mb_ord.phpt+test/repro/issue_NNNN_*.php