Re: [PHP-DEV] Re: Statics and PHP5

2004-02-17 Thread Adam Bregenzer
On Tue, 2004-02-17 at 06:07, Derick Rethans wrote: > 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). You don't have to plugin anything, you can do it in PHP and the data storage method of your choice. Keep in mind that sr

Re: [PHP-DEV] Re: Statics and PHP5

2004-02-17 Thread Derick Rethans
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 implementatio

Re: [PHP-DEV] Re: Statics and PHP5

2004-02-17 Thread Adam Bregenzer
On Tue, 2004-02-17 at 04:55, Stig S. Bakken wrote: > Hi Dave, > > I think I see what you're saying. Static class variables are associated > with the class, if the class persists between requests, so should its > static variables. [snip] > All of these basically keep the parsed representation of

Re: [PHP-DEV] Re: Statics and PHP5

2004-02-17 Thread Stig S. Bakken
Hi Dave, I think I see what you're saying. Static class variables are associated with the class, if the class persists between requests, so should its static variables. In the Java model of operation, it's natural to think in these terms, as the Java web server or application server is self-sust

Re: [PHP-DEV] Re: Statics and PHP5

2004-02-17 Thread Derick Rethans
On Tue, 17 Feb 2004, Andi Gutmans wrote: > PHP is pretty much a stateless language. If you want to keep a state you're > going to have to serialize/unserialize to your harddisk or DB. There have > been attempts at creating something similar to an app server such as srm > but they never really took

Re: [PHP-DEV] Re: Statics and PHP5

2004-02-17 Thread Dave Peckham
Andi (and all), You are completely missing my point. I'm not looking for stateful storage of user variables. If a page creates an instance of the Person class and assigns it to $dave, then I expect $dave to go out of scope (and permanently disappear) at the end of the page request lifecycle--just

Re: [PHP-DEV] Re: Statics and PHP5

2004-02-17 Thread Andi Gutmans
At 10:13 AM 2/16/2004 -0800, Dave Peckham wrote: Hi all, My initial response to Jonathan has me thinking more about this, and a higher level. I guess I want to hear from the Zend guys about their intentions of PHP as an app server. IMHO, that's the right direction. For example, when PHP is loaded

Re: [PHP-DEV] Re: Statics and PHP5

2004-02-16 Thread Marcus Boerger
Hello Dave, seems like you misunderstood the basic concept of PHP - it is stateless. That means that no information is propagated from one script execution to another - or in other words we have neitehr an application server nor persistent variables. regards marcus Monday, February 16, 2004, 7:1

[PHP-DEV] Re: Statics and PHP5

2004-02-16 Thread Dave Peckham
Hi all, My initial response to Jonathan has me thinking more about this, and a higher level. I guess I want to hear from the Zend guys about their intentions of PHP as an app server. IMHO, that's the right direction. For example, when PHP is loaded by the web server, it's only loaded once, and i

[PHP-DEV] Re: Statics and PHP5

2004-02-16 Thread Dave Peckham
Jonathan, Thanks for the reply. Actually, my question was not a "how to use", but definitely a "what are you doing?" intended for the PHP authors (i.e. the Zend folks). Logging is a great example of what I'd like to do, but won't work in the current PHP5 implementation. If you write a Logger clas