Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31653 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80311 invoked by uid 1010); 16 Aug 2007 20:46:55 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 80295 invoked from network); 16 Aug 2007 20:46:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Aug 2007 20:46:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=david.coallier@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=david.coallier@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.162.181 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: david.coallier@gmail.com X-Host-Fingerprint: 209.85.162.181 el-out-1112.google.com Linux 2.4/2.6 Received: from [209.85.162.181] ([209.85.162.181:41450] helo=el-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4E/71-06697-BB7B4C64 for ; Thu, 16 Aug 2007 16:46:53 -0400 Received: by el-out-1112.google.com with SMTP id r27so69975ele for ; Thu, 16 Aug 2007 13:46:07 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=I3N354FLZ04EKRpE3K4x18KwOOsBmLDIfbSaCeo8S8B6mK3PZK4UoDV99qyylsucLPBYvD+4iS8PnWoUvD6/VnrJuiY9r8RF9QtpuLjbNsQRNs8ba5L0xrFJr7ETapYbDQcAjHyTKW4tZvGxxNK7Zs0mfqjPGL/gEeqdxxsMNJQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=U7lFM5gcrhm+ZUjQmavWPVGSeAZIpca7jTp1eoomD1WlOz+kyqLDIGC7sm+Ty9FFBbdEBndPyRlla/2OwnEExFebWH49iT7uOvlGlfG3X+ZCxZ9YrmpExDbqNnq8SZkoTrKNm9oA33OfJWSJnlnF+29Mlz1MB1E5RmYeL7kINq8= Received: by 10.142.191.2 with SMTP id o2mr146205wff.1187297166526; Thu, 16 Aug 2007 13:46:06 -0700 (PDT) Received: by 10.143.33.15 with HTTP; Thu, 16 Aug 2007 13:46:06 -0700 (PDT) Message-ID: Date: Thu, 16 Aug 2007 16:46:06 -0400 Sender: david.coallier@gmail.com To: "Marcus Boerger" Cc: "Lukas Kahwe Smith" , "PHP Developers Mailing List" In-Reply-To: <1222090294.20070816222340@marcus-boerger.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46C30190.2060106@pooteeweet.org> <1222090294.20070816222340@marcus-boerger.de> X-Google-Sender-Auth: 362ed47c996b4305 Subject: Re: [PHP-DEV] reserved word alert From: davidc@php.net ("David Coallier") On 8/16/07, Marcus Boerger wrote: > Hello Lukas, > > this is a no issue. Prefix your code and be done! > That means prefixing your methods as well ? The problem is when one calls something like a method "import()" You prefix your functions ? I think this is silly. Prefix the class to make it namespace** like, but not the methods... PEAR_ClassName { public static function __PEAR_construct() { } public static function PEAR_import() { } public static function PEAR_export() { } } Which ends in PEAR_ClassName::PEAR_Import(); Whereas: PEAR_ClassName::import(); would usually be ok to do. Prefixing the methods imho is the no go in this case. > marcus > > Wednesday, August 15, 2007, 3:37:20 PM, you wrote: > > > Hi, > > > Someone in the Doctrine channel just brought up the issue of having to > > look forward to ensure mid term compatibility when choosing names for > > identifiers. I guess with namespaces and other things will add new > > reserved words. I think we should have a prominent place on php.net with > > early warning for reserved words that will be in future php releases. > > > regards, > > Lukas > > > > > Best regards, > Marcus > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- David Coallier, Founder & Software Architect, Agora Production (http://agoraproduction.com) 51.42.06.70.18