Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41277 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97604 invoked from network); 19 Oct 2008 13:01:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Oct 2008 13:01:39 -0000 Authentication-Results: pb1.pair.com header.from=thekid@thekid.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=thekid@thekid.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain thekid.de from 212.227.126.188 cause and error) X-PHP-List-Original-Sender: thekid@thekid.de X-Host-Fingerprint: 212.227.126.188 moutng.kundenserver.de Received: from [212.227.126.188] ([212.227.126.188:61829] helo=moutng.kundenserver.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 01/F8-29559-0BF2BF84 for ; Sun, 19 Oct 2008 09:01:38 -0400 Received: from carla (port-92-205-23-121.dynamic.qsc.de [92.205.23.121]) by mrelayeu.kundenserver.de (node=mrelayeu8) with ESMTP (Nemesis) id 0ML31I-1KrXuW02b1-0001TV; Sun, 19 Oct 2008 15:01:33 +0200 Message-ID: <4D165E1668394935B126876B72D487CF@carla> To: "Lukas Kahwe Smith" , "Stanislav Malyshev" Cc: "Marcus Boerger" , , =?iso-8859-1?Q?Johannes_Schl=FCter?= References: <01d401c8fe5e$6bc9d730$16b2a8c0@kartofel> <022101c8fe5f$4a3e3c40$16b2a8c0@kartofel> <1901158190.20080815120657@marcus-boerger.de> <7EB12BC1-41F1-458C-8017-9AB4D910CAA5@pooteeweet.org> <48EFC1E8.5030702@zend.com> <5D4A905B-E361-409B-BD9E-E816482EDB8C@pooteeweet.org> In-Reply-To: <5D4A905B-E361-409B-BD9E-E816482EDB8C@pooteeweet.org> Date: Sun, 19 Oct 2008 15:01:31 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049 X-Provags-ID: V01U2FsdGVkX1/5fdyu3cGuXj6dfyQ5ViGrhGOf3oJI8c7gNoQ EJl5UYqF/Ut7/o/SlMiJMiFbT2ZjrNZ7uKD9d1BBXojFcex4HF rm556gkGq69M9iwZaZ+WLtCgeOPRC9c Subject: Re: [PHP-DEV] __getStatic From: thekid@thekid.de ("Timm Friebe") Hi, First of all, thanks for reviewing and the feedback. I knew this wasn't perfect, and tried to understand what was previously done for __get and __set and transport that to the static counterparts. Unfortunately not all "infrastructure" like the std_*_property_handler callbacks is in place for static properties so this had to be created, too. Lukas writes: > hmm .. i also emailed Timm a few weeks ago and got no reaction. the > question now is .. does someone else care enough to work through the > issues Stas has noted to get things in shape to be committed? I've been quite busy with personell and budget planning at our company and have thus had neither time yet to shift through my private e-mail nor to do any programming, be it for private projects or for PHP. I was hoping someone else might pick up on this patch and try to complete it, it's been asked for a couple of times in different forums / newsgroups / this list (a Google search reveals these). On the other hand, there's only one really good use-case that pops to my mind for __getStatic(), and maybe the "type-safe object properties" pattern Sebastian (Bergmann) had in his blog may be another one, but nothing people would care enough for (especially once compared to the feelings around namespaces), so that's probably why this hasn't happened!:-) Stas writes: > This patch is definitely not ready, so I'd wait with it unless we get > really good one very-very soon. I guess very-very soon is already over, and yes, absolutely, this patch is far from perfection, so I'd also delay it. Maybe someone (Lars from http://wiki.php.net/rfc/static-classes?) might also want to gather some motivation for the __*Static() methods as in good use cases... - Timm