Re: Anyone wrote persistent variable extension?

From: Date: Wed, 10 Apr 2002 18:37:44 +0000
Subject: Re: Anyone wrote persistent variable extension?
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-82494@lists.php.net to get a copy of this message
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.). Shane

« previous php.dev (#82494) next »