Re: [PHP4BETA] big problem in new libzend CVS
| From: | Thies C. Arntzen | Date: | Mon, 11 Oct 1999 19:45:33 +0000 |
| Subject: | Re: [PHP4BETA] big problem in new libzend CVS | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-5481@lists.php.net to get a copy of this message | ||
script (cut down from > 2000 lines)
-----
<?php
class test
{
cfunction add($val,$tag="")
{
return;
}
cfunction parse($text)
{
$tag = array("zeev","andi");
$this->add($tag[ 1 ],substr($tag[ 0 ],1)); // this is the evil line
}
}
$dok = new test;
for ($inx = 0; $inx < 100; $inx++)
{
$dok->parse("<xA>hallo</xA>");
echo $inx."\n";flush();
}
?>
worked a few commits ago...
On Mon, 11 Oct 1999, Thies C. Arntzen wrote:
> On Mon, 11 Oct 1999, Andi Gutmans wrote:
>
> > Well let us know as soon as you found out.
>
> shit man - that one is hard to track - is there any hint you could give me
> (like *where* you added destruction of variables) -
>
> tc
>
>
> > The fix we put into Zend over the past few weeks should eventually solve
> > all the problems we had but it takes time to track down all the little
> > glitches.
> > Thanks!
> > Andi
> >
> > At 03:18 PM 10/11/99 +0200, Thies C. Arntzen wrote:
> > >i'm trying to hunt it down right now.
> > >
> > >it seems that classes get destructed way too early (refcount problem).
> > >
> > >i reuse an obect in a loop (used to work!) in the second iteration php
> > >says:
> > >PHP Fatal error: Call to a member function on a non-object in
> > >/dot/dgs/tc/dgs/admin/richtdas.php3 on line 2082
> > >
> > >line 2082:
> > > $this->add(1);
> > >
> > >it seems that $this gets destructed somewhere (should *NEVER* happen,
> > >shouln't it?)!
> > >
> > >
> > >tc
> > >
> > >
> > >
> > >
> > >Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
> > >Digital Collections Phone +49 40 235350 Fax +49 40 23535180
> > >Hammerbrookstr. 93 20097 Hamburg / Germany
> > >
> > >
> > >--
> > >PHP 4 Beta
> >
> > ---
> > Andi Gutmans <andi@zend.com>
> > http://www.zend.com/
> >
> > --
> > PHP 4 Beta
> >
> >
>
>
> Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
> Digital Collections Phone +49 40 235350 Fax +49 40 23535180
> Hammerbrookstr. 93 20097 Hamburg / Germany
>
>
> --
> PHP 4 Beta
>
>
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany