Re: PHP and case-sensitivity inconsistency in PHP 6

From: Date: Sun, 26 Jan 2014 23:57:07 +0000
Subject: Re: PHP and case-sensitivity inconsistency in PHP 6
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
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)

« previous php.internals (#71617) next »