Category
bug · php-src-strict · named arguments / Reflection
Problem
Positional calls match Zend, but Reflection reports InternalArgInfo-style str instead of Zend stub string, and Zend-style named $string fails. Probed 2026-07-26 vs host Zend 8.2.32.
| Repro |
Zend 8.2 |
VM (2026-07-26) |
Reflection (stripslashes) |
string |
str |
Reflection (quoted_printable_encode/decode) |
string |
str |
stripslashes(string: "a\\b") |
"ab" |
Unknown named parameter $string |
quoted_printable_encode(string: "a=b") |
"a=3Db" |
Unknown named parameter $string |
php-src reference
PHP implementation target
lib/BuiltinParamNames.php — map each to ['string']
- Reflection + named-arg dispatch; PHP-in-PHP only; no new C
Repro
./script/docker-exec.sh -- bash -lc 'php bin/vm.php -r '\''try { echo stripslashes(string:"a\\b"), "\n"; } catch (Throwable $e) { echo $e->getMessage(), "\n"; }'\'''
Done when
Category
bug· php-src-strict · named arguments / ReflectionProblem
Positional calls match Zend, but Reflection reports InternalArgInfo-style
strinstead of Zend stubstring, and Zend-style named$stringfails. Probed 2026-07-26 vs host Zend 8.2.32.stripslashes)stringstrquoted_printable_encode/decode)stringstrstripslashes(string: "a\\b")"ab"Unknown named parameter $stringquoted_printable_encode(string: "a=b")"a=3Db"Unknown named parameter $stringphp-src reference
ext/standard/string.stub.php—stripslashes(string $string),quoted_printable_encode/quoted_printable_decode(string $string)PHP implementation target
lib/BuiltinParamNames.php— map each to['string']Repro
Done when
string.phpt+test/repro/issue_NNNN_*.php