So.. I am having PHP5 memory management problems.
They are similar to those described in this thread:
http://aspn.activestate.com/ASPN/Mail/Message/php-Dev/1555640
(so maybe this question belongs on php-dev but I figured I'd try here
first... seems like a userland question)
Basically I have
3;
print $o->val; // echos 3
in PHP4 (assuming var is used instead of public)
$o = new Object(2);
$b = $o;
$b->val = 3;
print $o->val; // echos 2
This is cause objects in php5 exist all on there own, that get
referenced to a php variable.
On Tue, Dec 06, 2005 at 05:23:45PM -
eference to the addParent() method
of the Child class could be what is causing your issue. I'd be
curious to see what would happen if you took out the pass-by-
reference and instead pass-by-value for the addParent() method.
Then again, that doesn't particularly sound correct either.
On Dec 7, 2005, at 12:36 AM, Curt Zirzow wrote:
My original statement was to show how the the php4 = &$o is
different.
Oh, well, sure I believe that! :)
In php5 variables are just containers that point to objects, so
when you make
a variable a reference to another variable all you are doi
/* comments inline */
On Dec 8, 2005, at 2:34 AM, Curt Zirzow wrote:
On Wed, Dec 07, 2005 at 09:30:36PM -0500, Alan Pinstein wrote:
On Dec 7, 2005, at 12:36 AM, Curt Zirzow wrote:
I'm not sure how you mean a weak reference, and well a refcount is
rather meaning less in php userland.
5 matches
Mail list logo