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
class_exists() of a built-in class the program never names statically answers false #409
Known-bug repro: tests/aot/repro/wrong/class_exists_false_for_unnamed_builtin_class.php — bash tests/aot/xfail.sh -k class_exists_false_for_unnamed_builtin_class reports XFAIL while this is open and XPASS once it is fixed; then move the repro into tests/aot/cases/ and close this issue.
Decision: no change for now. Built-in classes (DateTime and friends) are prelude files pulled in only when the program names them, so class_exists() of a name built at run time answers false. Pulling in every built-in class on a dynamic class_exists/new costs binary size and compile time. Kept open for later; candidate approach: include them all only when the program contains a dynamic class name.
Activity
blacktrs commentedon Oct 24, 2026
Decision: no change for now. Built-in classes (DateTime and friends) are prelude files pulled in only when the program names them, so class_exists() of a name built at run time answers false. Pulling in every built-in class on a dynamic class_exists/new costs binary size and compile time. Kept open for later; candidate approach: include them all only when the program contains a dynamic class name.