Re: Re: 4.1.0RC4

From: Date: Tue, 04 Dec 2001 12:43:25 +0000
Subject: Re: Re: 4.1.0RC4
References: 1 2 3 4 5  Groups: php.qa 
Request: Send a blank email to php-qa+get-4179@lists.php.net to get a copy of this message
On Tue, Dec 04, 2001 at 01:43:00PM +0200, Lenar Lõhmus wrote : > > > > Bug #14136 : http://bugs.php.net/bug.php?id=14136 > > > > Asked lenar@vision.ee for a test script. The script works OK if you use > > xslt_free() but crashes (segfault) if you don't. > > In action : http://php.hellekin.com/test/bug-14136.php > > (working state. > > Just copy the script from .phps and comment the $p->free() statement at > > the end of it to see it crash). > > Just to mention. If you move handleHTTP() function out of class definition > and change scheme handler reg call to xslt_set_scheme_handler($xslt, > array("get_all" => "handleHTTP")) then it doesn't crash either way > - with > $p->free() commented in or commented out. The problem is that the object has a property which is the xlst resource. When PHP frees the resource itself it detects that one of the handler is an object. It then tries to free this object and detects that one of its properties is a resource (the very same xslt handle) and tries to free it again -> bummer. - Markus -- Please always Cc to me when replying to me on the lists.

« previous php.qa (#4179) next »