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
{{ message }}
Repository navigation
A string passed to a native callable parameter is wrapped in a Closure, so is_string() on it answers false. #615
Known-bug repro: tests/aot/repro/wrong/callable_param_string_identity.php — bash tests/aot/xfail.sh -k callable_param_string_identity reports XFAIL while this is open and XPASS once it is fixed; then move the repro into tests/aot/cases/ and close this issue.
Root cause found during the #655 sweep (not fixed, needs design): literal string/array callables passed to a callable param are turned into closures at lowering (LowerFns::coerceCallableArg), and callable is typed KIND_CLOSURE. Keeping the string needs callable params typed as cells plus by-name dispatch to builtins/stdlib (the erased name arm only matches user functions) — it touches every array_map('strtoupper', …) site.
Activity
WordPress groundwork: parser, declaration hoisting, include semantics…
blacktrs commentedon Nov 12, 2026
Root cause found during the #655 sweep (not fixed, needs design): literal string/array callables passed to a
callableparam are turned into closures at lowering (LowerFns::coerceCallableArg), andcallableis typedKIND_CLOSURE. Keeping the string needscallableparams typed as cells plus by-name dispatch to builtins/stdlib (the erased name arm only matches user functions) — it touches everyarray_map('strtoupper', …)site.