Re: PHP and case-sensitivity inconsistency in PHP 6
On 26 January 2014 23:36, Stas Malyshev <[email protected]> wrote:
> What would function_exists('Foo') return when foo() is defined?
>
> If false, then this code:
>
> if (!function_exists('Foo')) {
> function Foo() { ... }
> }
>
> would not work. If true, then this code:
>
> if(function_exists('Foo')) {
> Foo();
> }
This point is both valid and annoying :-P
This indeed cannot work.
> My opinion is if we go case-sensitive, it must be full case sensitivity,
> no exceptions.
Given the above, +1
Thanks, Chris
Thread (15 messages)