Hi,
I like this idea. But I'm afraid of BC. There will be some scripts who
won't work after that, because they already use functions with these names.
But since we already have some BC for PHP 7, I think it's about the right
time to do this.
But we have to keep the old names for at least 2 or 3 major versions.
Let's say :
- PHP 7 : We introduce the new functions names
- PHP 8 : We deprecate the old functions names
- PHP 9 : We delete the old functions names.
Regards.
Le Sun, 01 Mar 2015 12:29:49 +0100, Yasuo Ohgaki <yohg...@ohgaki.net> a
écrit:
Hi all,
First of all, I have no intention removing old function names.
PHP function names are subject of critics for a long time.
http://www.phpsadness.com/sad/4
http://www.phpsadness.com/sad/15
http://www.phpsadness.com/sad/27
How about rename all of these functions according to CODING_STANDARD for
PHP7
and have aliases for old names? Some names need complete rename, but
most of
them are matter of adding "_".
Function names like phpversion(), htmlentities(), image*() shouldn't be
kept. IMHO.
(I repeat. I have no intention removing old names)
str*() would be most difficult. How about rename all of them to str_*()?
and keep
libc compatible alias names forever?
Thoughts?
It's last chance for PHP7.
Sorry that I bring up this topic again, but I couldn't resist.
If there isn't many objections, I'll write RFC and do all the work
needed.
Regards,
--
Yasuo Ohgaki
yohg...@ohgaki.net
--
Utilisant le logiciel de courrier d'Opera : http://www.opera.com/mail/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php