On 2026-06-17 03:03, Jorg Sowa wrote:
Hello internals,
I would like to revive the discussion about fully case-sensitive PHP. I
have collected the points raised in previous discussions, and browsed
all affected language features and functionalities.
I still need to perform the impact analysis and the performance
benchmarks. I will add them to the RFC and inform in the thread when I
complete it.
RFC: https://wiki.php.net/rfc/case_sensitive_php
Kind regards,
Jorg
Hey,
1. I don't think it's necessary to mess with ::class here.
People are used to it not doing any checks. If it started doing some
checks it would
get confusing: why does it tell me if the case is wrong but says nothing
if the class
doesn't exist? And the warning is fired conditionally on whether the
class is already
loaded or not, which, according to RFC, is not a cool behaviour.
Besides that wrong case warning would disappear and go back to silent
in PHP 9.0, right?
2. Is the end goal in PHP 9.0 such that ActivityLog and Activitylog
could both be defined
as separate classes? And I can define my own StdClass? Or would
definitions that only
differ by case still be separate?
BR,
Juris