Re: [PEPr] Comment on PHP::PHP_Modules
| From: | Eric Gach | Date: | Thu, 06 May 2004 07:10:50 +0000 |
| Subject: | Re: [PEPr] Comment on PHP::PHP_Modules | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-28874@lists.php.net to get a copy of this message | ||
PEPr wrote:
Alan Knowles (http://pear.php.net/user/alan_k) has commented on the proposal for PHP::PHP_Modules. Comment: I've mixed feelings on this. it's more a PHP_FunctionCreator. The concept is nice. - it would be cool to see it do somthing like: $class = PHP_ClassLoader::factory('Log/test'); just loads the file.. Log/test.php (based on include path) $class = PHP_ClassLoader::factoryReload('Log/test'); parse the file, find the class definition, and rename the class to a _tmp_md5(name)_filemtime(), and eval to create it. obviously not very usefull for web (due to speed), but for servers or gtk apps, very interesting.. Proposal information: http://pear.php.net/pepr/pepr-proposal-show.php?id=68 The naming of it can be changed uppon request, I have no attachments to the name. :) As far as something dealing with classes, that has been discussed between me and a few of my peers. It's something I'm deffinately looking into as a future expantion of the package. I'm not sure that eval() would be the way to go, but I have ideas I'd like to experament with.~ Eric Gach