Re: PHP 4.0 Bug #6039 Updated: PHP Crashed if class contain reference by other class

From: Date: Sun, 13 Aug 2000 11:45:11 +0000
Subject: Re: PHP 4.0 Bug #6039 Updated: PHP Crashed if class contain reference by other class
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-28747@lists.php.net to get a copy of this message
BD>> what exactly creates that crash here, following the exact BD>> way PHP should go through the code I cannot reveal any BD>> paradox or complicated situations... There's a circular reference there ($this->something = &$this). PHP doesn't like circular references (as does almost any other reference-counting system - that's the downside of it). If you removed that circular ref and still see the crash - please publish more details.
Ah, reference counting causes the crash? I can´t figure out the problem, given: $this->B->pA = &$this let´s say each object/property equals an unique resource number this=1 B=2 pA=3 these resource numbers count what resources they´re in relation with 1: 2 2: 3 3: 1 o.k. looks like a cirucular reference, but without 1(this), there´s no 2(this->B) and no 3(this->B->[&1]), thus we can ignore that reference from 3 to 1, if 1 isn´t existent 3 ain´t too, if I´m not missing sth. that reference does not need to be counted in any way regards -- o----------0-¬---------O-·---¬----o---®-----o o O ° . | http://www.kiffen.de | pRoteçt y0ur bRaín |0 O ° ¤ ° · 0°·³°²'²³-¹'³´³°^°³~³²³°'³²²¨³²^³¹³²°²³`³º³°Þ ° o © ° . · | psychedelic experience | gott@kiffen.de | O ° o ° o-¬--o--0-----©-·--O-----o-----0-¤----------o 0 ° · ° . ¤ ·

« previous php.dev (#28747) next »