Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65193 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12622 invoked from network); 25 Jan 2013 19:25:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jan 2013 19:25:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=seva.lapsha@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=seva.lapsha@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.54 as permitted sender) X-PHP-List-Original-Sender: seva.lapsha@gmail.com X-Host-Fingerprint: 74.125.83.54 mail-ee0-f54.google.com Received: from [74.125.83.54] ([74.125.83.54:57312] helo=mail-ee0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8F/56-14132-61CD2015 for ; Fri, 25 Jan 2013 14:25:10 -0500 Received: by mail-ee0-f54.google.com with SMTP id c41so363305eek.27 for ; Fri, 25 Jan 2013 11:25:07 -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=4Obaq4PuyV+jgLyXv47o+wXGj8guKNAWbg0lc15M4Mw=; b=NEsfVEa9vyv7zwjlYCLI8mzahsqfsdHhCLqI9kk5dTkhDVFQGxT1QX35MAkUjo2MmZ Hu5sz8M/QJr7rMuEZpwU+go7R1gqm5/mh0Gjs5RaAmWcKExRGqUhil8ydZfVPOTyRrGf CMVLEzHYe1Q9ntZ6VMnkNxaiubEEFvQherxKA2LAHGp1Qkr0oXIyBc7Xow33gjusJQ1o 2sKnWHtheP/nMQ/Ak51Ap/n+B4LuhoUbRKE4Zk7a5xSiy+3ZuBbFo/qH3hyHaJ7d3UvH T26FBHc5fE1AceXR3cLpCZfuZRI1HAMypzOwvatoRMrgQBC6rRjbHTmKLOixlWwj8R6X qnjA== MIME-Version: 1.0 X-Received: by 10.14.209.131 with SMTP id s3mr21014919eeo.26.1359141907500; Fri, 25 Jan 2013 11:25:07 -0800 (PST) Received: by 10.14.136.74 with HTTP; Fri, 25 Jan 2013 11:25:07 -0800 (PST) In-Reply-To: <5102D753.5040900@lerdorf.com> References: <5102D1DB.9060305@sugarcrm.com> <5102D753.5040900@lerdorf.com> Date: Fri, 25 Jan 2013 14:25:07 -0500 Message-ID: To: Rasmus Lerdorf Cc: Stas Malyshev , =?ISO-8859-2?Q?Damian_Tylczy=F1ski?= , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=047d7b603bce988fb904d421e224 Subject: Re: [PHP-DEV] I think that "Function naming inconsistency" bug deservers more attention From: seva.lapsha@gmail.com (Seva Lapsha) --047d7b603bce988fb904d421e224 Content-Type: text/plain; charset=ISO-8859-1 On Fri, Jan 25, 2013 at 2:04 PM, 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 could be a new type of notice then, which could be controlled by configuration. > It annoys users, The configuration could be turned off by default. > slows down their code, Isn't it a flaw of the current implementation of throwing messages, which could be improved? AFAIU, if suppressed warnings would not be processed as the active ones, the performance effect would be negligible to zero. > and doesn't add any value at all to them. > It would add the value to those who care. > 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. > True. Don't get me wrong, I personally don't mind using the good old names, even typos in the names have their own charm. I just think that the point of view of order-freaks could be respected a little after all these years of complaints, so I'm trying to find a compromise and more PHP users would be happy. :) > > -Rasmus > > --047d7b603bce988fb904d421e224--