Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84103 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13834 invoked from network); 1 Mar 2015 12:12:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Mar 2015 12:12:07 -0000 X-Host-Fingerprint: 77.193.237.4 4.237.193.77.rev.sfr.net Received: from [77.193.237.4] ([77.193.237.4:12100] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FE/A6-63732-41203F45 for ; Sun, 01 Mar 2015 07:12:05 -0500 To: internals@lists.php.net Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes References: Date: Sun, 01 Mar 2015 13:11:49 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable Message-ID: User-Agent: Opera Mail/1.0 (Win32) X-Posted-By: 77.193.237.4 Subject: Re: Consistent function names From: bensor987@neuf.fr ("Benoit Schildknecht") 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 nam= es. But since we already have some BC for PHP 7, I think it's about the righ= t = 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 a = = =C3=A9crit: > 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 f= or > 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 b= e > 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 > yohgaki@ohgaki.net -- = Utilisant le logiciel de courrier d'Opera : http://www.opera.com/mail/