> > but it may also be possible to do all this in the request startup I > think...? > > > I don't like the idea to keep adding stuff in request startup, at least, > please make it optional. The overhead for request startup and cleanup > have becoming higher and higher, which make PHP become slower and > slower, especially for simple request like a "Hello World" request, it > put PHP into a less competitive position when benchmark with other > scripting languages. > > I wish I could do something in that regarding in the future, at least > for our LiteSpeed SAPI if others does not like it.
The code in CGI is called in sapi_activate, which is called from php_request_startup() just before the scripts starts. In this stage you can choose the right config (e.g. from the cache) by using the script directory as entry in has table or something like that. You do not need to search for config files in a whole directory tree below DOCUMENT_ROOT and the script directory every time. Uwe -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php