Re: Class auto-loader
| From: | waldschrott | Date: | Sun, 25 Jun 2000 18:22:28 +0000 |
| Subject: | Re: Class auto-loader | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-22288@lists.php.net to get a copy of this message | ||
You?re right that that?ll be too much to start this conecpt, but my thought was that low-level fetching of *really* used and included classes (not only included ones) is easier than to use an external script (ok. from within it can be done using get_declared_classes()), think at cases other than: new simple_classname; it?ll be a lot more complicated if there are variables and even worse if there are variable variables or if files are included in conditional loops and so on...
But you?re right it?s a lot too much now (perhaps at all)...
regards
wrote:
w>> If the idea is accepted and that╢ll be the next step, the step w>> afterwards would be possibly (I don╢t remember properly, but I think w>> that auto-load stuff arose in combination with sessions, didn╢t it?) to w>> place a *trace_class_load()* anywhere that registers which classes are w>> included (mabye *used* only to reduce overheads) from which files and Well, that would be too much, I suppose. If you are so lasy, a short script would help you to find definitions :) ----Stanislav Malyshev stas@zend.com +972-3-6139665
o----------0-?---------O-·---?----o---?-----o o O ° . | http://www.kiffen.de | pRotec,t y0ur bRai'n |0 O ° ? ° ·0°·^(3)°²'²^(3)-^(1)'^(3)?^(3)°^°^(3)~^(3)²^(3)°'^(3)²²?^(3)²^^(3)^(1)^(3)²°²^(3)`^(3)^(o)^(3)°? ° o © ° . ·
| psychedelic experience | gott@kiffen.de | O ° o °o-?--o--0-----©-·--O-----o-----0-?----------o 0 ° · ° . ? ·