Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65200 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53185 invoked from network); 26 Jan 2013 03:59:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jan 2013 03:59:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=ronabop@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ronabop@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.173 as permitted sender) X-PHP-List-Original-Sender: ronabop@gmail.com X-Host-Fingerprint: 209.85.217.173 mail-lb0-f173.google.com Received: from [209.85.217.173] ([209.85.217.173:57922] helo=mail-lb0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 01/F2-17242-C8453015 for ; Fri, 25 Jan 2013 22:59:10 -0500 Received: by mail-lb0-f173.google.com with SMTP id gf7so1739127lbb.4 for ; Fri, 25 Jan 2013 19:59:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=Z9eZs4qX+wOvfbjop4eSeTtlYwukIkSBRvx+G3o8ozM=; b=gFo6lQgbwx3ecOJa1MjZMVkMvyyzOTEfiwMy6iVAxTVknTL7Ii19ibMZNaiRzCsn9e 6qimfCrqPHQwSuc2DX4HQwdGs8mbIahLWnzHsx5CRygR4Ea4zxC6rOBzaWTO3FKvCXrM T82Csx8gqPf5Ug1SgpZzyrEVHna76FALAIv8JLk7TiYVrRMJD0GYOt4oiU/nN7PpkpmI 4HR+5628/OD4zsgLAcaCjq3YFTqNwr1VY9xKtiyM8Xwr6T4ZnklJBwti3utopdw+bd8Z s5hsJIE2MOhXlVuaOvlZ9zAmsv/Kzx635KwkwUvr+R7l83KPzEyd1pNllNEvPKxUAB0N A1EQ== MIME-Version: 1.0 X-Received: by 10.152.144.103 with SMTP id sl7mr6997343lab.23.1359172745342; Fri, 25 Jan 2013 19:59:05 -0800 (PST) Received: by 10.152.133.196 with HTTP; Fri, 25 Jan 2013 19:59:05 -0800 (PST) In-Reply-To: <5102D753.5040900@lerdorf.com> References: <5102D1DB.9060305@sugarcrm.com> <5102D753.5040900@lerdorf.com> Date: Fri, 25 Jan 2013 19:59:05 -0800 Message-ID: To: Rasmus Lerdorf Cc: Seva Lapsha , Stas Malyshev , =?ISO-8859-2?Q?Damian_Tylczy=F1ski?= , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=e89a8f22bec1acafe404d42910d3 Subject: Re: [PHP-DEV] I think that "Function naming inconsistency" bug deservers more attention From: ronabop@gmail.com (Ronald Chmara) --e89a8f22bec1acafe404d42910d3 Content-Type: text/plain; charset=ISO-8859-1 Here I am, ten years later, and the same issue is being rehashed just as it was when it was brought up ten years ago. Over those ten years, things have slowly gotten better, but the underlying issue remains the same. PHP is glue. PHP has not taken the path of re-naming everything to conform to a new "PHP standard", other than underscores, and attempts at function prefixes. Sure, we could start adding aliases like libc_strlen(), and maybe that's worth a thought, but its adding another layer of complexity, to achieve simplicity. On Fri, Jan 25, 2013 at 11:04 AM, Rasmus Lerdorf wrote: > On 01/25/2013 10:55 AM, Seva Lapsha wrote: > > Well, how about renaming the functions, create aliases for BC and throw > > E_DEPRECATED or E_STRICT on their usage? And write a PEAR script bundled > > with the distribution to migrate to the new convention? > > Throwing warnings on perfectly working code is really a bad idea. It > annoys users, slows down their code, and doesn't add any value at all to > them. > > It should also be noted that many of the function names that people > don't think are consistent are actually quite consistent when you > consider that PHP is just a thin wrapper on top of underlying libraries. > Functions from libc like tempnam() and strlen() are perfectly fine. The > fact that you can go to your Linux command line and type: "man tempnam" > to get a good idea of what is happening behind the scenes of the PHP > function of the same name is a good thing. > > -Rasmus > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --e89a8f22bec1acafe404d42910d3--