Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26361 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45387 invoked by uid 1010); 5 Nov 2006 18:21:12 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 45370 invoked from network); 5 Nov 2006 18:21:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Nov 2006 18:21:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=iliaal@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=iliaal@gmail.com; sender-id=pass; domainkeys=good Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.162.206 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: iliaal@gmail.com X-Host-Fingerprint: 64.233.162.206 nz-out-0102.google.com Linux 2.4/2.6 Received: from [64.233.162.206] ([64.233.162.206:13395] helo=nz-out-0102.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E0/D9-10980-79B2E454 for ; Sun, 05 Nov 2006 13:21:11 -0500 Received: by nz-out-0102.google.com with SMTP id o1so677238nzf for ; Sun, 05 Nov 2006 10:21:09 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer:sender; b=ToQyGZk2jzbaItqRnPCKksyYa6tv+pNVW4CZEQyxyRVEVt/9vKpDoN39Fvv1H7D8yIO4Zaiv6Dk9PELT4PpUUgAI4ReO3h1tBG/nC0j3pO5Oi+mJKurksBd+id9EnAvme/C1ch1OiomF/4/MWaELH+pmi1TeoPHsIK0EnmXXd7U= Received: by 10.65.23.7 with SMTP id a7mr4128356qbj.1162750868861; Sun, 05 Nov 2006 10:21:08 -0800 (PST) Received: from ?192.168.1.6? ( [74.108.69.82]) by mx.google.com with ESMTP id f14sm5331772qba.2006.11.05.10.21.07; Sun, 05 Nov 2006 10:21:08 -0800 (PST) In-Reply-To: <454E29AC.50007@cschneid.com> References: <005e01c6ff82$e6092c30$ec01010a@intranet.db> <2FAA3BA3-283C-445D-9648-70C207FF2251@prohost.org> <454CBD65.5040205@cschneid.com> <454D66C4.2090708@cschneid.com> <1465A1B3-C0AE-48E0-9E3A-66BDC57D89F3@prohost.org> <454E1AE2.1050106@lsces.co.uk> <745591637.20061105185719@marcus-boerger.de> <454E29AC.50007@cschneid.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-ID: <6955A56F-753F-4A22-A7A2-A8C7306C5D4E@prohost.org> Cc: Marcus Boerger , internals@lists.php.net Content-Transfer-Encoding: 7bit Date: Sun, 5 Nov 2006 13:20:59 -0500 To: Christian Schneider X-Mailer: Apple Mail (2.752.3) Sender: Ilia Alshanetsky Subject: Re: [PHP-DEV] New Datetime class problem From: ilia@prohost.org (Ilia Alshanetsky) On 5-Nov-06, at 1:13 PM, Christian Schneider wrote: > Hello Marcus, hello Ilia, > now you two got me confused: > > Marcus Boerger wrote: >> we have the same problem for functions since years, why is there >> suddenly >> such a big problem with classes now? All new php/pecl classes will >> follow >> one of the following rules: >> - Prefix with the extension name >> - Postfix with "Iterator" >> - Postfix with "Exception" >> that seems the same amount of protection as prefix functions with >> extension >> name plus underscore. I don't see any problem since the above rule >> is in >> place. > > This would mean classes should be prefixed by extension name... That is the common case, yes. In fact the date extension's classes follow this convention to the letter. DateTime + DateTimeZone (Date is the extension name). However, for native classes there maybe exceptions to simplify usage, when a need for such exceptions arise this will be discussed on this list. Ilia Alshanetsky