Re: [patch] Dynamic access of static members/methods, and constants

From: Date: Thu, 03 May 2007 14:59:34 +0000
Subject: Re: [patch] Dynamic access of static members/methods, and constants
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-29158@lists.php.net to get a copy of this message
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'));
Could you describe a couple of use cases where you would use such things (i.e. in real world scripts/libraries)? -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/

« previous php.internals (#29158) next »