Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64189 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71632 invoked from network); 7 Dec 2012 00:57:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Dec 2012 00:57:57 -0000 Authentication-Results: pb1.pair.com smtp.mail=theanomaly.is@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=theanomaly.is@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.42 as permitted sender) X-PHP-List-Original-Sender: theanomaly.is@gmail.com X-Host-Fingerprint: 74.125.83.42 mail-ee0-f42.google.com Received: from [74.125.83.42] ([74.125.83.42:41822] helo=mail-ee0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D3/25-27691-31F31C05 for ; Thu, 06 Dec 2012 19:57:56 -0500 Received: by mail-ee0-f42.google.com with SMTP id c41so4217056eek.29 for ; Thu, 06 Dec 2012 16:57:52 -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=NBcG5N++ye0FVXXymIRl85KCESmQEEycM339QmkXEs0=; b=zUvtT0oPyCLAdcaKQ+6oIBGZPCCOcnqqCPdbVvkk7U6S20qDB/fZWUCW5sh887J/Dr 1nyEYcZuiN+f9AbYRm916NB3MNG5OoeUUhsIy3SXLK0hdVQubJBtIHdvXgHc9LFuUT7Z v9tk5lUUzTJPqhRkWj9owtgdQSz9LYDm67Ogwp4VOVt5NjCSW7EKBnzCORqV2uKC040W sF3917euTxv3GS44SMGneCpPYg/dEAQSTQrXrx1j27GaxxsLmPtowyk1V7L6o1xruFgD BVpIq4hjdXYH1PVWu03WBvUelxpngnDYkn4/Udf18qcwTmr18tYsVgAAcjRJmbIlV8/h WxwA== MIME-Version: 1.0 Received: by 10.14.198.67 with SMTP id u43mr10890241een.7.1354841872656; Thu, 06 Dec 2012 16:57:52 -0800 (PST) Received: by 10.14.193.130 with HTTP; Thu, 6 Dec 2012 16:57:52 -0800 (PST) In-Reply-To: References: Date: Thu, 6 Dec 2012 19:57:52 -0500 Message-ID: To: Kris Craig Cc: PHP internals list Content-Type: multipart/alternative; boundary=047d7b343b248be88204d038b42d Subject: Re: [PHP-DEV] camelCase on Exception methods? From: theanomaly.is@gmail.com (Sherif Ramadan) --047d7b343b248be88204d038b42d Content-Type: text/plain; charset=ISO-8859-1 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. --047d7b343b248be88204d038b42d--