Hi all,

On Sun, Dec 21, 2014 at 7:01 AM, F & N Laupretre <nf.laupre...@yahoo.fr>
wrote:

> I don't know if this was discussed before. So, tell me what you think
> before
> I write an RFC.
>
>
>
> I would like to propose that namespaces, functions, and classes become
> case-sensitive (constants are already case-sensitive). Actually, I never
> understood why they are case-insensitive. Even if the performance gain is
> negligible, I think it could be the right time to question this.
>

I'm writing this mail without reading current zend code.

Anyway, is it feasible to raise E_DEPRECATE without much performance
penalty?
For example,

if (!strcmp(name, name_to_be_searched)) {
  do_something;
} else if (!strcasecmp(name, name_to_be_searched) {
  rase_error;
  do_something;
}

Duplicated codes may be removed by macro. strcasecmp() checks may be removed
10 years later or more.

Regards,

--
Yasuo Ohgaki
yohg...@ohgaki.net

Reply via email to