Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7867 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30801 invoked by uid 1010); 16 Feb 2004 08:18:28 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 30744 invoked from network); 16 Feb 2004 08:18:27 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 16 Feb 2004 08:18:27 -0000 Received: (qmail 32401 invoked from network); 16 Feb 2004 08:18:21 -0000 Received: from guardian.zend.office (HELO andi-laptop.zend.com) (10.1.1.4) by mail.zend.com with SMTP; 16 Feb 2004 08:18:21 -0000 Message-ID: <5.1.0.14.2.20040216101503.035c3288@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Mon, 16 Feb 2004 10:18:07 +0200 To: Jani Taskinen ,zeev@zend.com Cc: internals@lists.php.net In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: About bug #26753 and zend_register_list_destructors() From: andi@zend.com (Andi Gutmans) References: It seems to me that the difference is in the dtor() callback's parameters. I'm not sure why type_name is not passed to zend_register_list_destructors(). It probably did not exist when it was originally written. I guess we can either fix the comparison, change zend_register_list_destructors() to accept type_name, or nuke zend_register_list_destructors() completely and move to _ex(). Probably the last is the best option if we only have to fix two extensions. Andi At 11:18 PM 2/15/2004 +0200, Jani Taskinen wrote: > This is either bug in zend_fetch_list_dtor_id() as said in the > bug report or misuse of [zend_]register_list_destructors(). > > So which one is it? Is zend_register_list_destructors() deprecated in > favor of zend_register_list_destructors_ex() or what?? > > FYI: register_list_destructors() is only used by ext/mssql in HEAD. > It's also used by ext/crack in PHP_4_3. But not anywhere else. > > What's the difference between these two functions anyway?? > (some comments in the sources would be so nice sometimes :) > > --Jani