> De : Dennis Birkholz [mailto:den...@birkholz.biz]
> 
> I would like PHP to make all class/trait/interface names case-sensitive
> and use only lower-case names for the scalar type hints (same for
> object, array, etc.). This would solve most problems. Class names are
> kind of case sensitive in applications that rely on autoloading on
> platforms with case sensitive file systems.

1. I proposed making class names case-sensitive and it was clearly rejected, 
most considering it is a *huge* BC break for almost no benefit. I personally 
don't know any software which uses class names in a case-insensitive manner but 
it seems others do ! I am not sure, but scalar type hints were probably 
implemented as case-insensitive too. In other words, if you're ready to 
relaunch the case-sensitivity discussion, feel free to do it.

2. Anyway, basing name conflict resolution on naming conventions is not 
acceptable, in my opinion. PSR-1 is just a convention. We cannot resolve name 
conflicts in the core based on this. If we want to go that way, let's display 
an E_STRICT message when encountering an all-lowercase class name, but that's 
another debate and I don't think anyone is willing to enforce PSR rules in the 
core.

Regards

François



--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to