Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65192 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11757 invoked from network); 25 Jan 2013 19:24:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jan 2013 19:24:37 -0000 Authentication-Results: pb1.pair.com header.from=turneliusz@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=turneliusz@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.43 as permitted sender) X-PHP-List-Original-Sender: turneliusz@gmail.com X-Host-Fingerprint: 74.125.83.43 mail-ee0-f43.google.com Received: from [74.125.83.43] ([74.125.83.43:59205] helo=mail-ee0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E1/36-14132-4FBD2015 for ; Fri, 25 Jan 2013 14:24:37 -0500 Received: by mail-ee0-f43.google.com with SMTP id c50so363664eek.30 for ; Fri, 25 Jan 2013 11:24:34 -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=e8WiEtS7OoYr/TTKk6Yx6/QfdJpgqrsPqHKa+V3gyOA=; b=lcftJ8NefSfcSrUSg4Bnx/V5V9TWkeuxO7LVh0MRY0In3Z+R6ivyKpND9RCUAlFGTT hKO8uJTXpY/a54zjE+RYymRuP/R02cG1h0F9ZXLYMWa5BUogUQtD1w3lg2oT2g/BGVU8 nJ21cjYp/SCiYaRs1ih++VNA/hjNnbN8WChK3DZT45/W8/AB+wlD+kb1Wj5+aGxFvpqk t3qr7W5w3NAxgzfuIfiBZOD1OwZGLj2yCF/6ywEMVmNCC0aiorYjjRkSZ6ZDFeOsmw1o yYlbzU+2/Gp3TtKiOBUjI4I7kURKkn4CtEGavxMayT70GmqEwRyvd7SLgTZLGGUC2s7u +JzA== MIME-Version: 1.0 X-Received: by 10.14.215.6 with SMTP id d6mr20933016eep.40.1359141874205; Fri, 25 Jan 2013 11:24:34 -0800 (PST) Received: by 10.223.160.136 with HTTP; Fri, 25 Jan 2013 11:24:33 -0800 (PST) Received: by 10.223.160.136 with HTTP; Fri, 25 Jan 2013 11:24:33 -0800 (PST) In-Reply-To: <5102D753.5040900@lerdorf.com> References: <5102D1DB.9060305@sugarcrm.com> <5102D753.5040900@lerdorf.com> Date: Fri, 25 Jan 2013 20:24:33 +0100 Message-ID: To: Rasmus Lerdorf Cc: internals@lists.php.net, Seva Lapsha , Stas Malyshev Content-Type: multipart/alternative; boundary=047d7b5dbec29c864204d421e016 Subject: Re: [PHP-DEV] I think that "Function naming inconsistency" bug deservers more attention From: turneliusz@gmail.com (=?ISO-8859-2?Q?Damian_Tylczy=F1ski?=) --047d7b5dbec29c864204d421e016 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Yes, it's extremely useful, especially because most of the php developers are developing under Linux and most of them are coming from C and many other languages. Give ma a break... Second thing, we're afraid of throwing deprecated errors. Let's see the case. On production machines there are errors hidden from the users (display errors: none or just strict, notice, deprecated types hidden), experienced developers when they will not like them during development will disable them or migrate their code, new developers will just learn new API. Where is the problem? I'm not talking about removing some functions but just deprecating them to to get some time and simply to be ready to improve the PHP as a language in the future when time will come. 25 sty 2013 20:04, "Rasmus Lerdorf" napisa=B3(a): > 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 bundle= d > > 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 > > --047d7b5dbec29c864204d421e016--