Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48768 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76714 invoked from network); 14 Jun 2010 10:39:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jun 2010 10:39:15 -0000 Authentication-Results: pb1.pair.com header.from=rquadling@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=rquadling@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.211.176 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: rquadling@gmail.com X-Host-Fingerprint: 209.85.211.176 mail-yw0-f176.google.com Received: from [209.85.211.176] ([209.85.211.176:58880] helo=mail-yw0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A6/A0-07295-1D6061C4 for ; Mon, 14 Jun 2010 06:39:14 -0400 Received: by ywh6 with SMTP id 6so2727145ywh.16 for ; Mon, 14 Jun 2010 03:39:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:reply-to:from :date:message-id:subject:to:content-type; bh=055pV32AFz9cGBfGYpzLGsfNITyfFHImjNhRpTVtNL0=; b=NSWAM+Kcx6DM/rV3C9I15GJkh7doxANCMEAx2xALXnhC7+sU31utgPbuqkb7/IIzoC JReWP5S7S9FSC+bdMZKZHchKLP8yErpHy7DneABKxnznTgtD0TFzTswCiZEeJZ4s2jk+ Cbb1XTehaTA6uw7G4O7ePQr9snSeA04DjJD+s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:from:date:message-id:subject:to:content-type; b=x244Lhrxto6A7Zt11kHBrPO0T+5910/3CyLAtlQ/BqDMwNMeCMvIW2I5OxvpYhVXQL oVxSn2GN5bfSwK9QWJXpbJiyaKdtDzXGYzQlT5F+XTwiCbB8NuUKea6xIVmW1AO42IWJ 9qa9/jNnorsCSENAPc5AbgxIOAQXi1SLAzkY0= Received: by 10.101.2.18 with SMTP id e18mr4451281ani.72.1276511951123; Mon, 14 Jun 2010 03:39:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.120.7 with HTTP; Mon, 14 Jun 2010 03:38:51 -0700 (PDT) Reply-To: RQuadling@googlemail.com Date: Mon, 14 Jun 2010 11:38:51 +0100 Message-ID: To: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Different ways to collect an extension's functions. From: rquadling@gmail.com (Richard Quadling) Hi. I'm looking into bug#52079 (missing lcfirst function from function index). The cause of the bug is that the genfunclist / genfuncindex scripts haven't been run in a while. Whilst running them and fixing a small issue with ereg => preg, I notice that in the results of genfunclist, there are 3 different ways to collect an extensions functions ... 1) The majority use const (79 in total). # const zend_function_entry apache_functions[] = { # const zend_function_entry apache_functions[] = { # const zend_function_entry basic_functions[] = { # const zend_function_entry bcmath_functions[] = { # const zend_function_entry birdstep_functions[] = { ... # const zend_function_entry xsl_functions[] = { # const zend_function_entry zend_funcs_aggregate[] = { # const zend_function_entry zend_funcs_arrayaccess[] = { # const zend_function_entry zend_funcs_iterator[] = { # const zend_function_entry zend_funcs_serializable[] = { 2) The following use static. # static zend_function_entry disabled_function[] = { # static zend_function_entry mysqlnd_functions[] = { # static zend_function_entry php_sqlite3_class_methods[] = { # static zend_function_entry php_sqlite3_result_class_methods[] = { # static zend_function_entry php_sqlite3_stmt_class_methods[] = { # static zend_function_entry spl_funcs_SplFixedArray[] = { 3) The following don't use const or static. # zend_function_entry enchant_functions[] = { # zend_function_entry fileinfo_functions[] = { # zend_function_entry intl_functions[] = { # zend_function_entry litespeed_functions[] = { # zend_function_entry phar_exception_methods[] = { # zend_function_entry phar_functions[] = { # zend_function_entry php_archive_methods[] = { # zend_function_entry php_entry_methods[] = { # zend_function_entry php_oci_functions[] = { Regards, Richard. -- ----- Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 ZOPA : http://uk.zopa.com/member/RQuadling