Re: Anyone wrote persistent variable extension?

From: Date: Thu, 11 Apr 2002 00:22:15 +0000
Subject: Re: Anyone wrote persistent variable extension?
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-82532@lists.php.net to get a copy of this message
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

« previous php.dev (#82532) next »