Re: Statics and PHP5
| From: | Dave Peckham | Date: | Mon, 16 Feb 2004 18:13:17 +0000 |
| Subject: | Re: Statics and PHP5 | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-7886@lists.php.net to get a copy of this message | ||
Hi all,
My initial response to Jonathan has me thinking more
about this, and a higher level. I guess I want to hear
from the Zend guys about their intentions of PHP as an
app server. IMHO, that's the right direction.
For example, when PHP is loaded by the web server,
it's only loaded once, and it should keep track of all
the classes that get loaded, and only load them once
(unless the file changes, say). Static variables
should apply to the server scope (classloader). The
way it stands right now, if all the classes are
essential unloaded after each request, then we're
still really close to the CGI paradigm. If I have
10,000 users who each use 10 pages per session, why do
I need to load the "Foo" class 100,000 times?
Zend guys, what are your thoughts? Was this concept
considered and rejected? Your thought process and
direction are important to my technology choice.
Thanks,
Dave
__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html