Re: [PHP] Re: Question about __destruct()

2008-10-22 Thread Dan Joseph
On Wed, Oct 22, 2008 at 2:29 PM, Stut <[EMAIL PROTECTED]> wrote: > > Never any issues this way? They always run without a hitch? >> > > Not had any issues to far, and it's being used on some pretty busy sites > and various PHP versions and several different web servers. > > Terrific! Thanks for

Re: [PHP] Re: Question about __destruct()

2008-10-22 Thread Stut
On 22 Oct 2008, at 09:35, Jochem Maas wrote: Stut schreef: On 22 Oct 2008, at 00:22, Jochem Maas wrote: Stut schreef: I use destructors to update dirty objects in memcache. care to eloborate ... sounds interesting. Nothing complicated. The core objects in my application are all cached i

Re: [PHP] Re: Question about __destruct()

2008-10-22 Thread Stut
On 22 Oct 2008, at 14:42, Dan Joseph wrote: On Tue, Oct 21, 2008 at 5:14 PM, Stut <[EMAIL PROTECTED]> wrote: When a script ends everything is released (with some small exceptions), thus also all references to instances of classes. Thus AFAIK a deconstructor will always be called at the end of

Re: [PHP] Re: Question about __destruct()

2008-10-22 Thread Eric Butera
On Wed, Oct 22, 2008 at 9:42 AM, Dan Joseph <[EMAIL PROTECTED]> wrote: > On Tue, Oct 21, 2008 at 5:14 PM, Stut <[EMAIL PROTECTED]> wrote: > >> >> When a script ends everything is released (with some small exceptions), thus also all references to instances of classes. Thus AFAIK a dec

Re: [PHP] Re: Question about __destruct()

2008-10-22 Thread Dan Joseph
On Tue, Oct 21, 2008 at 5:14 PM, Stut <[EMAIL PROTECTED]> wrote: > > >>> When a script ends everything is released (with some small exceptions), >>> thus also all references to instances of classes. >>> Thus AFAIK a deconstructor will always be called at the end of script >>> execution. >>> >>> >>

Re: [PHP] Re: Question about __destruct()

2008-10-22 Thread Jochem Maas
Stut schreef: > On 22 Oct 2008, at 00:22, Jochem Maas wrote: >> Stut schreef: >>> I use destructors to update dirty objects in memcache. >> >> care to eloborate ... sounds interesting. > > Nothing complicated. The core objects in my application are all cached > in memcache. If anything changes in

Re: [PHP] Re: Question about __destruct()

2008-10-22 Thread Stut
On 22 Oct 2008, at 00:22, Jochem Maas wrote: Stut schreef: I use destructors to update dirty objects in memcache. care to eloborate ... sounds interesting. Nothing complicated. The core objects in my application are all cached in memcache. If anything changes in an object it changes an int

Re: [PHP] Re: Question about __destruct()

2008-10-21 Thread Jochem Maas
Stut schreef: > On 21 Oct 2008, at 22:08, Jochem Maas wrote: >> Mike van Riel schreef: >>> Dan Joseph wrote: Hi, I want to make sure I completely understand __destruct() and when its hit... Understand that it will run if all references to a particular object are >

Re: [PHP] Re: Question about __destruct()

2008-10-21 Thread Stut
On 21 Oct 2008, at 22:08, Jochem Maas wrote: Mike van Riel schreef: Dan Joseph wrote: Hi, I want to make sure I completely understand __destruct() and when its hit... Understand that it will run if all references to a particular object are removed, but is that also true when a page ends

Re: [PHP] Re: Question about __destruct()

2008-10-21 Thread Jochem Maas
Mike van Riel schreef: > Dan Joseph wrote: >> Hi, >> >> I want to make sure I completely understand __destruct() and when its >> hit... >> >> Understand that it will run if all references to a particular object are >> removed, but is that also true when a page ends its execution? >> >> Example, I c

[PHP] Re: Question about __destruct()

2008-10-21 Thread Mike van Riel
Dan Joseph wrote: Hi, I want to make sure I completely understand __destruct() and when its hit... Understand that it will run if all references to a particular object are removed, but is that also true when a page ends its execution? Example, I call a database class. It constructs, connects,