Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65079 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66519 invoked from network); 22 Jan 2013 12:34:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jan 2013 12:34:04 -0000 Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.177 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 209.85.128.177 mail-ve0-f177.google.com Received: from [209.85.128.177] ([209.85.128.177:35861] helo=mail-ve0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 00/A5-28294-B378EF05 for ; Tue, 22 Jan 2013 07:34:04 -0500 Received: by mail-ve0-f177.google.com with SMTP id d10so506596vea.8 for ; Tue, 22 Jan 2013 04:34:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=uwyv3DYUxfw2uifL7iLdhXScKaR+wXHBxfh1EqAJ8HY=; b=lQal5v+a6Z7kHKa1wRo/EfaMTLCLYUQ7ytMXwMvUFU/W0und774CXu2vA9vJMndROK gTU1pj+2+mgWe4nA2Ka5H1xg/sxFihefRVMscWgCja9VWZQuW7s8rDt7VYuOFC38IzOw hqgHFwS2TM6U78pILi34QiVGpfJQQu+3Va/j1VcdGQhtXV8hX6JiNJ1jnoHEA/PC5Hzv mlmMgYT6FbWIqOiQ+JREz7DCU7Y2etiqmn3MhAV/lv+YAmu2BT1kJsGkOyC/0HNwHvDk jfCRfEKfIuHKFfzL1Pd4ynhLuYIOkmiOPzNsWZ+6ALimyRXnM+8mcJG4HBiyQxuqjztW PhUw== X-Received: by 10.52.72.137 with SMTP id d9mr6521023vdv.105.1358858041268; Tue, 22 Jan 2013 04:34:01 -0800 (PST) MIME-Version: 1.0 Received: by 10.58.118.52 with HTTP; Tue, 22 Jan 2013 04:33:41 -0800 (PST) In-Reply-To: References: Date: Tue, 22 Jan 2013 13:33:41 +0100 Message-ID: To: Pete Boere Cc: PHP Internals List Content-Type: multipart/alternative; boundary=bcaec5016301d99b0404d3dfcadb Subject: Re: [PHP-DEV] __init magic method From: ocramius@gmail.com (Marco Pivetta) --bcaec5016301d99b0404d3dfcadb Content-Type: text/plain; charset=UTF-8 @Pete actually, your "less than elegant" solution seems quite enough for this use case. What's your use case for this kind of static properties? What if you make them private/protected and use an accessor method to initialize them (and avoid the overhead during autoloading)? Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --bcaec5016301d99b0404d3dfcadb--