Re: PHP 4.0.3 patches - resources
| From: | Zeev Suraski | Date: | Fri, 03 Nov 2000 11:04:16 +0000 |
| Subject: | Re: PHP 4.0.3 patches - resources | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-36937@lists.php.net to get a copy of this message | ||
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
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?
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,-- Zeev Suraski <zeev@zend.com> http://www.zend.com/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