Re: Re: Statics and PHP5
| From: | Derick Rethans | Date: | Tue, 17 Feb 2004 11:07:12 +0000 |
| Subject: | Re: Re: Statics and PHP5 | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-7918@lists.php.net to get a copy of this message | ||
On Tue, 17 Feb 2004, Adam Bregenzer wrote:
> Great response, you saved me a lot of typing. :)
>
> To add one thing, I have code that I use to easily persist an object
> across a session, additionally it can save the class's static properties
> (hacked into PHP4[1]). With this and my implementation of the singleton
> pattern I am able to persist a singleton throughout a session. It's not
> exactly what you are talking about but can be just as useful.
> Additionally you can use a database or shared memory to implement global
> variables and save objects/static variables/whatever into them. Of
> course, once you have variables available to multiple instances of PHP
> you will have to deal with locking issues.
I don't want to plug anything, but have a look at www.vl-srm.net; it
tries to achive this (note: site is a bit outdated).
Derick