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 stdlib function called by runtime name with an object/array argument reads the pointer as string bytes instead of throwing TypeError. #332
Known-bug repro: tests/aot/repro/wrong/dyn_name_stdlib_fn_object_arg.php — bash tests/aot/xfail.sh -k dyn_name_stdlib_fn_object_arg reports XFAIL while this is open and XPASS once it is fixed; then move the repro into tests/aot/cases/ and close this issue.
Partly fixed on perf/basic-fns-sweep: the by-name thunk now feeds string parameters through the same string cast a direct call gets, so the pointer is no longer read as string bytes. What remains is the general cell->string coercion being lenient (object throws Error, array answers "Array" where php throws TypeError); the repro stays as XFAIL for that.
Reopening: PR #333 fixed the pointer-read half only. On main 55e1f1c the repro tests/aot/repro/wrong/dyn_name_stdlib_fn_object_arg.php is still XFAIL: $f = 'ucfirst'; $f(new Conn) throws Error and $f([1]) returns string(5) "Array"; php throws TypeError for both.
Activity
blacktrs commentedon Oct 18, 2026
Partly fixed on perf/basic-fns-sweep: the by-name thunk now feeds string parameters through the same string cast a direct call gets, so the pointer is no longer read as string bytes. What remains is the general cell->string coercion being lenient (object throws Error, array answers "Array" where php throws TypeError); the repro stays as XFAIL for that.
Performance sweep of basic functions: quadratic behaviour removed, O(…
blacktrs commentedon Nov 12, 2026
Reopening: PR #333 fixed the pointer-read half only. On main 55e1f1c the repro
tests/aot/repro/wrong/dyn_name_stdlib_fn_object_arg.phpis still XFAIL:$f = 'ucfirst'; $f(new Conn)throwsErrorand$f([1])returnsstring(5) "Array"; php throwsTypeErrorfor both.