Shane Caraveo wrote: >> >> I need to store large static array as lookup table (read only). >> I think there are many applications that has relatively >> large static array for application configuration, etc. >> >> $_PERSISTENT is problematic, since user may store unsutable >> data for it. >> >> I'll create functions to register/unregister so that user can >> only store array that does not have any reference nor objects. >> >> It's still useful for my usage, at least. >> > > $_PERSISTENT could store data key'd to the script that stored it. > $_PERSISTENT_GLOBAL (probably a better name can be found) could just > store data accessable to any script under a certain document root. You > definitly do not want to share persistent data across document roots (ie > virtual servers, etc.).
Using docroot sounds good idea. I'll think about design and post new RFC next week. -- Yasuo Ohgaki -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php