Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65080 Return-Path: <pete@the-echoplex.net> Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68358 invoked from network); 22 Jan 2013 12:41:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jan 2013 12:41:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=pete@the-echoplex.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=pete@the-echoplex.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain the-echoplex.net from 208.113.200.5 cause and error) X-PHP-List-Original-Sender: pete@the-echoplex.net X-Host-Fingerprint: 208.113.200.5 caibbdcaaaaf.dreamhost.com Windows 98 (1) Received: from [208.113.200.5] ([208.113.200.5:59183] helo=homiemail-a80.g.dreamhost.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 97/F5-28294-1F88EF05 for <internals@lists.php.net>; Tue, 22 Jan 2013 07:41:21 -0500 Received: from homiemail-a80.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a80.g.dreamhost.com (Postfix) with ESMTP id 9612C37A078 for <internals@lists.php.net>; Tue, 22 Jan 2013 04:41:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=the-echoplex.net; h= mime-version:in-reply-to:references:date:message-id:subject:from :to:cc:content-type; s=the-echoplex.net; bh=6DmzCf1UlBVYON/rZDa0 PNdWffo=; b=kptGBz6HiEa1mmWf0Xo1w8S+M59yDxUn2OgGz7AicIsV6/4qVsSq li07HSHJ9r3YKy2cCJ9mIMnsOoYD3UIAqZNTqp7njmKKhoojU3YBrBhP7uBUQ4DK 32htjnkcz481Jhl2siZrlRkfAHAn1spf8fJfjtuEP1eWIqNZnSamwBo= Received: from mail-vb0-f52.google.com (mail-vb0-f52.google.com [209.85.212.52]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: pete@the-echoplex.net) by homiemail-a80.g.dreamhost.com (Postfix) with ESMTPSA id 69F3837A076 for <internals@lists.php.net>; Tue, 22 Jan 2013 04:41:18 -0800 (PST) Received: by mail-vb0-f52.google.com with SMTP id fa15so3667919vbb.11 for <internals@lists.php.net>; Tue, 22 Jan 2013 04:41:17 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.220.40.135 with SMTP id k7mr22938158vce.12.1358858477621; Tue, 22 Jan 2013 04:41:17 -0800 (PST) Received: by 10.58.34.99 with HTTP; Tue, 22 Jan 2013 04:41:17 -0800 (PST) In-Reply-To: <CADyq6sJoAutn4K3UuZhmR8VpSH5DL98T=K0afPSOx4upcONBLQ@mail.gmail.com> References: <CAKZZz6dUPzGKL2mCph5QogPn-qjTVMR12yHJdUvEBGC44pk64A@mail.gmail.com> <CADyq6sJoAutn4K3UuZhmR8VpSH5DL98T=K0afPSOx4upcONBLQ@mail.gmail.com> Date: Tue, 22 Jan 2013 12:41:17 +0000 Message-ID: <CAKZZz6fttD6omRUJYw4CYq3r9pJajUWpi5yD=Yg+YocXBpEcOw@mail.gmail.com> To: Marco Pivetta <ocramius@gmail.com> Cc: PHP Internals List <internals@lists.php.net> Content-Type: multipart/alternative; boundary=bcaec54ee812dbd32104d3dfe459 Subject: Re: [PHP-DEV] __init magic method From: pete@the-echoplex.net (Pete Boere) --bcaec54ee812dbd32104d3dfe459 Content-Type: text/plain; charset=UTF-8 > > 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)? > It's the overhead of repeatedly calling an accessor method which I'd prefer to avoid. -- Pete Boere Web Developer --bcaec54ee812dbd32104d3dfe459--