Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51427 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32743 invoked from network); 4 Feb 2011 04:49:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Feb 2011 04:49:32 -0000 Authentication-Results: pb1.pair.com header.from=chrisstocktonaz@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=chrisstocktonaz@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: chrisstocktonaz@gmail.com X-Host-Fingerprint: 74.125.82.170 mail-wy0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:51875] helo=mail-wy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 03/12-21221-B558B4D4 for ; Thu, 03 Feb 2011 23:49:32 -0500 Received: by wyb39 with SMTP id 39so1912139wyb.29 for ; Thu, 03 Feb 2011 20:49:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=SDGTDGV6nX/SAduhsJZ7LOnKBF3uy0vqL/fUbZBr+80=; b=IqQX6xKD4J66ie9ku+SZrWhNxjH1WZlipa/SJnYOfh6BrO9APOW+gBxrrZELZ02A6i aALwIVeCurXn57h8+bIgTuHZxDAz3I50OPrnhIJ9chYi0Rax+aaF2xUv1rZpWgPbenNV qalL2cSz7NuLHRkfkpPHrupykOyHUB+TtcEGE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Eb0bGcyRtwYnNRlQapFKyM6JjvXokfqNc7cY1e41qacK2TTJF1mLXRo/dkv0IrndnK hpuU8f9qmSC3Mf4ZXciKb41vM8NqPpDu0ywYLCqRKg4DEvL1EeKt3NlI3vxvIql+tuFj 9F9YA0fEC0dc5I87hMTC1QuOzJxQE/U7MFM08= MIME-Version: 1.0 Received: by 10.216.205.213 with SMTP id j63mr207568weo.60.1296794968578; Thu, 03 Feb 2011 20:49:28 -0800 (PST) Received: by 10.216.29.21 with HTTP; Thu, 3 Feb 2011 20:49:28 -0800 (PST) In-Reply-To: <4D4B82DD.9040209@yahoo.com.au> References: <4D4B82DD.9040209@yahoo.com.au> Date: Thu, 3 Feb 2011 20:49:28 -0800 Message-ID: To: Ben Schmidt Cc: PHP Developers Mailing List Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] A quick consensus on magic method idea From: chrisstocktonaz@gmail.com (Chris Stockton) Hello, On Thu, Feb 3, 2011 at 8:38 PM, Ben Schmidt wrote: > > Do you yourself have any situation where this is useful? Does it solve > some problem? Does it enable you to do things better than before? > > Ben. > It does not provide a solution to a currently unsolvable problem, it is simply a convenience for situations when you want a class to perform any kind of initialization directly after compilation/loading (whatever term you find easier on the ears). It provides a cleaner more encapsulated approach to a (not entirely uncommon) case such as: Foo.php: class Foo { // class body } Foo::registerSomeStuff(); Just a idea I wanted to share, -Chris