Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29069 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53959 invoked by uid 1010); 27 Apr 2007 12:54:19 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 53944 invoked from network); 27 Apr 2007 12:54:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Apr 2007 12:54:19 -0000 Authentication-Results: pb1.pair.com header.from=antony@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=antony@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: antony@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from [212.25.124.162] ([212.25.124.162:27971] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4F/D5-29041-972F1364 for ; Fri, 27 Apr 2007 08:54:19 -0400 Received: (qmail 20754 invoked from network); 27 Apr 2007 12:54:14 -0000 Received: from internal.zend.office (HELO ?127.0.0.1?) (10.1.1.1) by internal.zend.office with SMTP; 27 Apr 2007 12:54:14 -0000 Message-ID: <4631F277.60406@zend.com> Date: Fri, 27 Apr 2007 16:54:15 +0400 User-Agent: Thunderbird 2.0.0.0 (X11/20070326) MIME-Version: 1.0 To: Etienne Kneuss CC: internals@lists.php.net References: <4631EE73.4050409@php.net> In-Reply-To: <4631EE73.4050409@php.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [patch] Dynamic access of static members/methods, and constants From: antony@zend.com (Antony Dovgal) On 04/27/2007 04:37 PM, Etienne Kneuss wrote: > Hi, > > I've already proposed that 1-2 months ago, but now seems to be a good > time to discuss new things, so let's try again: > > I believe it would be nice to be able to dynamically reference static > members, constants, and methods. > > Currently, there is no way to do that and the only way would be to > create a static method and use call_user_func(array($classname, 'getThat')); > > In other words: I'm +0 if it's for HEAD only. Also I can see only two tests at the moment, we'll need MUCH more. There are so much combinations to test: unicode & binary strings, numbers, arrays, objects, booleans etc. etc. -- Wbr, Antony Dovgal