Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64190 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73374 invoked from network); 7 Dec 2012 01:07:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Dec 2012 01:07:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=kris.craig@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kris.craig@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.170 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 209.85.217.170 mail-lb0-f170.google.com Received: from [209.85.217.170] ([209.85.217.170:47207] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E6/75-27691-43141C05 for ; Thu, 06 Dec 2012 20:07:01 -0500 Received: by mail-lb0-f170.google.com with SMTP id j14so43095lbo.29 for ; Thu, 06 Dec 2012 17:06:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=tVXMKui3SOVQ5LVtxadXxRPldoW5CY4TgarHIgxKNFA=; b=xcaqUc6U1i5SxkrgFQPAxDprUOhFNbJX9fd5RxD2iPubi2r6kyRuZnHBtB+XwX72aZ 6W3vpswvO68+sxu75UODlqhcFLPolgD+oUkNSE/Sn4PvNhBlrgFNJPv7J1fElslDbwyO eSEiMLalq/Fo9XIY6cZisGQDUcmnQXeIkaoCISDlxsYcMeIQq2wuZ49TWiYK7w6c/lwg TW6Zv9V52Zaen6n6pgTCcLuk6TCDg3OUNftie9eEcluQCRZ+lLFd2Jq12pPD2peiOAm1 cWz31UF0UmMDceV4E/kV98ZWW/JE5H4+HjKEGHsBWpnNJEOwvmL9plWQa8xSR+b3lBz+ erQQ== MIME-Version: 1.0 Received: by 10.112.31.200 with SMTP id c8mr1801156lbi.61.1354842417038; Thu, 06 Dec 2012 17:06:57 -0800 (PST) Received: by 10.152.114.2 with HTTP; Thu, 6 Dec 2012 17:06:56 -0800 (PST) In-Reply-To: References: Date: Thu, 6 Dec 2012 17:06:56 -0800 Message-ID: To: Sherif Ramadan Cc: PHP internals list Content-Type: multipart/alternative; boundary=bcaec555540efe842504d038d4da Subject: Re: [PHP-DEV] camelCase on Exception methods? From: kris.craig@gmail.com (Kris Craig) --bcaec555540efe842504d038d4da Content-Type: text/plain; charset=ISO-8859-1 On Thu, Dec 6, 2012 at 4:57 PM, Sherif Ramadan wrote: > On Thu, Dec 6, 2012 at 7:34 PM, Kris Craig wrote: > >> Hey guys, >> >> Please forgive me if this has already been addressed, but could somebody >> tell me why all the methods for the Exception class are in camelCase? I >> don't want to wade too deeply into the "consistency vs. BC" rabbit hole >> here, but I'm just wondering what the general consensus is on this right >> now. >> >> http://php.net/manual/en/class.exception.php >> >> >> Thanks! >> >> --Kris >> > > > This seems to be the case for pretty all classes I can see in core with > the exception of MySQLi (being that it tried to mimic the old mysql > functions). Obviously, class/method/function names are all case-insensitive > throughout PHP itself, but the documentation seems to be consistent in the > use of camel case. > > The following class methods are all documented in camel-case throughout > the docs: > > Exception > ExceptionError > DateTime > DateTimeZone > DateInterval > PDO > PDOStatement > (All of the Intl classes) > Collator > NumberFormatter > Locale > Normalizer > MessageFormatter > IntlDateFormatter > ResourceBundle > SpoofChecker > Transliterator > tidy > tidyNode > Phar > PharData > PharFileInfo > PharException > DomDocument (and friends) > > > Not an exhaustive list, but just at first glance. > > Ahh ok, that answered my question! I never really noticed that until now for some reason.... Thanks! --Kris --bcaec555540efe842504d038d4da--