Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31305 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20977 invoked by uid 1010); 27 Jul 2007 19:31:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 20954 invoked from network); 27 Jul 2007 19:31:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jul 2007 19:31:28 -0000 Received: from [127.0.0.1] ([127.0.0.1:10871]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id CC/39-41170-E084AA64 for ; Fri, 27 Jul 2007 15:31:27 -0400 Authentication-Results: pb1.pair.com header.from=void@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=void@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 62.166.203.90 as permitted sender) X-PHP-List-Original-Sender: void@php.net X-Host-Fingerprint: 62.166.203.90 cust203-90.dsl.versadsl.be Linux 2.5 (sometimes 2.4) (4) Received: from [62.166.203.90] ([62.166.203.90:37553] helo=server-int.bmco.be) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 01/48-41170-0054AA64 for ; Fri, 27 Jul 2007 15:18:25 -0400 Received: from [10.0.0.152] (unknown [10.0.0.152]) by server-int.bmco.be (Postfix) with ESMTP id B6EB83996D0 for ; Fri, 27 Jul 2007 21:18:21 +0200 (CEST) To: internals@lists.php.net Content-Type: text/plain Date: Fri, 27 Jul 2007 21:18:28 +0200 Message-ID: <1185563908.16883.16.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.11.5 Content-Transfer-Encoding: 7bit Subject: Detect Change in function table From: void@php.net (Xavier De Cock) Hello I'm currently working on the bbcode pecl extension. This extension provides callback facilities for handling datas. Therefore I have to get the function pointer from the function table and work with those pointers. This extension will only throw a warning when a callback can not be found but will still parse all the datas effectively bypassing the callback. But between two subsequent calls with the same ressource, some function might have been added, so is there an efficient way to detect this? Because I won't be able to reset the cached functions pointers easily on each call. I'm currently implementing a brand new algorithm for the library, so the response may change some implementation details, in advance, thanks. PS: Please CC me, I have not subscribed to the list Thanks, Xavier De Cock