Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48770 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87571 invoked from network); 14 Jun 2010 11:28:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jun 2010 11:28:36 -0000 Authentication-Results: pb1.pair.com header.from=glopes@nebm.ist.utl.pt; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=glopes@nebm.ist.utl.pt; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain nebm.ist.utl.pt from 193.136.128.21 cause and error) X-PHP-List-Original-Sender: glopes@nebm.ist.utl.pt X-Host-Fingerprint: 193.136.128.21 smtp1.ist.utl.pt Linux 2.6 Received: from [193.136.128.21] ([193.136.128.21:37094] helo=smtp1.ist.utl.pt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5E/B2-07295-162161C4 for ; Mon, 14 Jun 2010 07:28:34 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp1.ist.utl.pt (Postfix) with ESMTP id BF115700E8DC for ; Mon, 14 Jun 2010 12:28:30 +0100 (WEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at ist.utl.pt Received: from smtp1.ist.utl.pt ([127.0.0.1]) by localhost (smtp1.ist.utl.pt [127.0.0.1]) (amavisd-new, port 10025) with LMTP id 4GS4mRM1luzE for ; Mon, 14 Jun 2010 12:28:30 +0100 (WEST) Received: from mail2.ist.utl.pt (mail.ist.utl.pt [IPv6:2001:690:2100:1::8]) by smtp1.ist.utl.pt (Postfix) with ESMTP id 89815700E82D for ; Mon, 14 Jun 2010 12:28:30 +0100 (WEST) Received: from damnation.dulce.lo.geleia.net (52.152.108.93.rev.vodafone.pt [93.108.152.52]) (Authenticated sender: ist155741) by mail2.ist.utl.pt (Postfix) with ESMTPSA id 6B322200798D for ; Mon, 14 Jun 2010 12:28:30 +0100 (WEST) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes References: <6296D1E6-24DC-4A8E-892A-9EA6D08B0DC8@php.net> To: internals@lists.php.net Date: Mon, 14 Jun 2010 12:28:30 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Organization: =?utf-8?Q?N=C3=BAcleo_de_Eng=2E_Biom=C3=A9di?= =?utf-8?Q?ca_do_IST?= Message-ID: In-Reply-To: <6296D1E6-24DC-4A8E-892A-9EA6D08B0DC8@php.net> User-Agent: Opera Mail/10.53 (Win32) Subject: Re: [PHP-DEV] Different ways to collect an extension's functions. From: glopes@nebm.ist.utl.pt ("Gustavo Lopes") On Mon, 14 Jun 2010 11:56:57 +0100, Melanie Rhianna Lewis wrote: > My feeling is that they should all be static consts unless explicitly > accessed outside of the object module or changed. Since typically > they're a list of function/method entries only accessed by a class or > zend_module_entry that is really the case. Without the static we're > polluting the name space. > The static keyword is unnecessary, const already makes the variable have internal linkage by default. -- Gustavo Lopes