Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23570 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32754 invoked by uid 1010); 18 May 2006 22:22:35 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 32739 invoked from network); 18 May 2006 22:22:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 May 2006 22:22:35 -0000 X-PHP-List-Original-Sender: ceo@l-i-e.com X-Host-Fingerprint: 67.139.134.202 o2.hostbaby.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from ([67.139.134.202:4096] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id C7/47-19568-BA3FC644 for ; Thu, 18 May 2006 18:22:35 -0400 Received: (qmail 38022 invoked by uid 98); 18 May 2006 22:22:36 -0000 Received: from 127.0.0.1 by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-1.25 ( Clear:RC:1(127.0.0.1):. Processed in 0.08333 secs); 18 May 2006 22:22:36 -0000 X-Qmail-Scanner-Mail-From: ceo@l-i-e.com via o2.hostbaby.com X-Qmail-Scanner: 1.25 (Clear:RC:1(127.0.0.1):. Processed in 0.08333 secs) Received: from unknown (HELO l-i-e.com) (127.0.0.1) by localhost with SMTP; 18 May 2006 22:22:36 -0000 Received: from 67.108.68.36 (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Thu, 18 May 2006 17:22:36 -0500 (CDT) Message-ID: <34626.67.108.68.36.1147990956.squirrel@www.l-i-e.com> In-Reply-To: <89716569.20060517210330@marcus-boerger.de> References: <6C67DAD9-B812-415A-BFD6-A4E963371551@prohost.org> <89716569.20060517210330@marcus-boerger.de> Date: Thu, 18 May 2006 17:22:36 -0500 (CDT) To: "Marcus Boerger" Cc: "Sebastian Bergmann" , internals@lists.php.net Reply-To: ceo@l-i-e.com User-Agent: Hostbaby Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] Flamewar Summary From: ceo@l-i-e.com ("Richard Lynch") >> Sebastian Bergmann wrote: >>>> Addition of support for dynamic statics ala: class foo {} >>>> foo::$bar = 1; On Wed, May 17, 2006 2:03 pm, Marcus Boerger wrote: > there is a technical issue besides slowdown. We have to work around > the > fact that suddenly a function might get $this as a normal variable > (remember > the examples give on this list included that). Right now $this is > handled by > a special zval not stored in the local or global symol table bit > EG(this). > This will become a major maintanance hell. Also allowing $this as > normal > variable again will confuse people because suddenly after 5.1 they are > under some circumstances suddenly able to change $this. That said, we > will > also get a bunch of new bug reports, but who cares, it's the others > dealing > with them. And all for what? to refuse using globals as they are to > php'isch? or to use an array in a declared sttaic variable as that can > already be done and is also far to php'ish? I'm not sure it helps, or even if I understand the problem, but perhaps... A reasonable compromise might be that only scalars could be used for a late-binding static foo::$bar = VALUE; Similar to what is (used to be?) allow for variable initialization within a class definition. Or, perhaps, scalars and arrays of scalars allowed, but NO OBJECTS. It seems like the majority of people who find this late-binding static stuff useful are not really wanting to cram instance references, much less $this into there... This presumes that whatever was done for class property initialization could be readily repeated at the junction of an assignment to a static property, which might be a completely incorrect assumption. This is also post-vote, which might render it meaningless, which is fine -- just an idea if the vote is inconclusive or turns out to be void. -- Like Music? http://l-i-e.com/artists.htm