Re: Adding pecl/http to core
| From: | Michael Wallner | Date: | Tue, 28 Oct 2008 14:45:08 +0000 |
| Subject: | Re: Adding pecl/http to core | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-41525@lists.php.net to get a copy of this message | ||
Lars Strojny wrote:
>> I've not seen plenty of "Class::singleton()" myself, getInstance is an
>> accepted standard in all languages, including the PHP code I wrote,
>> and I've had experience with.
>
> That's my point, yes. pecl_http uses ::singleton() instead of
> getInstance().
Well, sure--that depends. PEAR for example defined ::singleton()
as the standard name and most of the code I've dealt with at that
time used ::singleton() either. I guess this is merely a matter
of taste, respectively what's PHP going to use in the future.
Regards,
Mike