Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: [propel-dev] propel 1.2

propel
Discussion topic

Back to topic list

Re: [propel-dev] propel 1.2

Reply

Author Alan Pinstein <apinstein at mac dot com>
Full name Alan Pinstein <apinstein at mac dot com>
Date 2005-12-06 12:20:45 PST
Message Further progress.... after lunch my mind started working again.

Ok. So, I have figured out what's going on....

So when memory-managing objects with circular links, the normal way
to do this is to have parents "retain" (keep ref-counted links) to
their kids, and have the kids have "weak references" (non-ref-
counted) links to their parents. This way, when the parent is no
longer used, it will automatically 0-out the ref counts to all
children it links too and things GC correctly.

Now, how to do this in PHP?

Well, it seems that if you create a reference to another object, it's
refCount isn't bumped... see the attached weakRefTest.php for an
example.
Attachments

« Previous message in topic | 12 of 20 | Next message in topic »

Messages

Show all messages in topic

Re: [propel-dev] propel 1.2 hlellelid Hans Lellelid 2005-11-22 18:37:02 PST
     Re: [propel-dev] propel 1.2 Alan Pinstein <apinstein at mac dot com> Alan Pinstein <apinstein at mac dot com> 2005-12-05 22:39:22 PST
         Re: [propel-dev] propel 1.2 hlellelid Hans Lellelid 2005-12-06 05:49:29 PST
             Re: [propel-dev] propel 1.2 Alan Pinstein <apinstein at mac dot com> Alan Pinstein <apinstein at mac dot com> 2005-12-06 07:52:58 PST
                 Re: [propel-dev] propel 1.2 Ron Rademaker <r dot rademaker at virtualbuilding dot nl> Ron Rademaker <r dot rademaker at virtualbuilding dot nl> 2005-12-06 08:21:37 PST
                     Re: [propel-dev] propel 1.2 Ron Rademaker <r dot rademaker at virtualbuilding dot nl> Ron Rademaker <r dot rademaker at virtualbuilding dot nl> 2005-12-06 08:29:27 PST
                         Re: [propel-dev] propel 1.2 Alan Pinstein <apinstein at mac dot com> Alan Pinstein <apinstein at mac dot com> 2005-12-06 08:31:38 PST
                             Re: [propel-dev] propel 1.2 Ron Rademaker <r dot rademaker at virtualbuilding dot nl> Ron Rademaker <r dot rademaker at virtualbuilding dot nl> 2005-12-06 08:34:44 PST
                                 Re: [propel-dev] propel 1.2 Alan Pinstein <apinstein at mac dot com> Alan Pinstein <apinstein at mac dot com> 2005-12-06 08:36:37 PST
             Re: [propel-dev] propel 1.2 Alan Pinstein <apinstein at mac dot com> Alan Pinstein <apinstein at mac dot com> 2005-12-06 08:43:38 PST
                 Re: [propel-dev] propel 1.2 Alan Pinstein <apinstein at mac dot com> Alan Pinstein <apinstein at mac dot com> 2005-12-06 09:19:49 PST
                     Re: [propel-dev] propel 1.2 Alan Pinstein <apinstein at mac dot com> Alan Pinstein <apinstein at mac dot com> 2005-12-06 12:20:45 PST
                         Re: [propel-dev] propel 1.2, Memory Leak Quashed! Alan Pinstein <apinstein at mac dot com> Alan Pinstein <apinstein at mac dot com> 2005-12-06 17:16:27 PST
                             RE: [propel-dev] propel 1.2, Memory Leak Quashed! =?US-ASCII?Q?Sonke_Ruempler?= <ruempler at topconcepts dot com> =?US-ASCII?Q?Sonke_Ruempler?= <ruempler at topconcepts dot com> 2005-12-06 23:27:14 PST
                                 Re: [propel-dev] propel 1.2, Memory Leak Quashed! Alan Pinstein <apinstein at mac dot com> Alan Pinstein <apinstein at mac dot com> 2005-12-07 06:19:03 PST
                                     Re: [propel-dev] propel 1.2, Memory Leak Quashed! hlellelid Hans Lellelid 2005-12-07 06:41:07 PST
                                         Re: [propel-dev] propel 1.2, Memory Leak Quashed! Alan Pinstein <apinstein at mac dot com> Alan Pinstein <apinstein at mac dot com> 2005-12-07 06:49:31 PST
                                         Re: [propel-dev] propel 1.2, Memory Leak Quashed! =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> 2005-12-07 07:19:53 PST
                                             Re: [propel-dev] propel 1.2, Memory Leak Quashed! Alan Pinstein <apinstein at mac dot com> Alan Pinstein <apinstein at mac dot com> 2005-12-07 07:31:58 PST
                                                 Re: [propel-dev] propel 1.2, Memory Leak Quashed! =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> 2005-12-07 08:02:51 PST
Messages per page: