Re: New Datetime class problem

From: Date: Sun, 05 Nov 2006 18:20:59 +0000
Subject: Re: New Datetime class problem
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-26361@lists.php.net to get a copy of this message
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

« previous php.internals (#26361) next »