Re: [Zend Engine 2] Re: [PHP-DEV] [Fwd: Re: [Zend Engine 2] Case sensitivity: Conclusion(?)]
| From: | Yasuo Ohgaki | Date: | Thu, 07 Feb 2002 08:35:55 +0000 |
| Subject: | Re: [Zend Engine 2] Re: [PHP-DEV] [Fwd: Re: [Zend Engine 2] Case sensitivity: Conclusion(?)] | ||
| References: | 1 2 3 4 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-79487@lists.php.net to get a copy of this message | ||
To upgrade from PHP4 to PHP5, most users should
carefully change/test existing script unless
their scripts are completely OO or non-OO.
This BC problem is worse than case sensitive names, IMHO.
(BTW, I like ZE2 way than ZE1 way) PHP5 may call wrong
function unless user change their code ;)
Case of names can be easily converted by program.
And error with case sentive names is easier to
understand what/where is wrong.
[yohgaki@dev ze2]$ php name_space7.php
bar::bar()
foo()
[yohgaki@dev ze2]$ php-ze2 name_space7.php
bar::bar()
bar::foo()
[yohgaki@dev ze2]$ cat name_space7.php
<?php
$var = 'ABC';
function foo() {
echo "foo()\n";
}
class bar {
function bar()
{
echo "bar::bar()\n";
foo();
}
function foo()
{
echo "bar::foo()\n";
}
}
$obj = new bar;
?>
[yohgaki@dev ze2]$
--
Yasuo Ohgaki
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com