Re: Complete case-sensitivity in PHP

From: Date: Sat, 21 Apr 2012 16:58:38 +0000
Subject: Re: Complete case-sensitivity in PHP
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-60251@lists.php.net to get a copy of this message
On 04/21/2012 01:56 AM, Johannes � wrote: > On Sat, 2012-04-21 at 01:16 +0200, Stefan Neufeind wrote: >> I think we might possibly add a >> special kind of "deprecation" where the non-matching case would still >> work but (if you activate those deprecation-warnings) would trigger >> warnings so you can clean up your code. > > yay - two lookups instead of one ;-) > > and what would you do in this strange, but possible case: > The functions Foo() and FOO() exist but the user calls foo()? Tell him it doesn't exist and suggest to go fix his code ... PS: That was a rethorical question? :-) Regards, Stefan

« previous php.internals (#60251) next »