Re: PHP 4.0.3 patches - resources
| From: | Thies C. Arntzen | Date: | Mon, 06 Nov 2000 11:40:31 +0000 |
| Subject: | Re: PHP 4.0.3 patches - resources | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-37250@lists.php.net to get a copy of this message | ||
On Fri, Nov 03, 2000 at 01:04:16PM +0200, Zeev Suraski wrote:
> This patch introduces a work-around, which I'd like to avoid if
> possible... There shouldn't be a recursive destruction in there, and if
> there is, as far as I can tell, it's a bug in the XML module, that should
> be fixed there
hmm -
>
> Thies - do you have any idea where the problem is coming from? As one of
> the people that used fairly complex resource dependencies, will this patch
> work for what you did?
i'll look into it one of the next days -
tc
>
> Zeev
>
>
> At 08:20 03/11/2000, Mikhail Zabaluev wrote:
> >Hello, PHP developers.
> >
> >I made two fixes on PHP 4.0.3pl1 in order for it to work out my needs.
> >One patch comes in this message, another follows in the next one.
> >
> >The first patch tries to fix resource deallocation problem in case of an
> >aggregation loop, such as when we bind an object to a parser resource with
> >xml_parser_set_object(), and the object contains that parser as a
> >property. I got a segfault every time after a response was sent, and found
> >out that a parser resource is being recursively destroyed twice!
> >Setting reference counts for resource entries to 0 prior to destruction
> >of the global resource lists seems to fix this.
> >
> >--
> >Stay tuned,
> > MhZ
> > mailto:mookid@sigent.ru
> >-----------
> >travel, n.:
> > Something that makes you feel like you're getting somewhere.
> >
> >--
> >PHP Development Mailing List <http://www.php.net/>
> >To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> >For additional commands, e-mail: php-dev-help@lists.php.net
> >To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
> --
> Zeev Suraski <zeev@zend.com>
> http://www.zend.com/
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>