Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23271 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72231 invoked by uid 1010); 11 May 2006 19:56:09 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 72215 invoked from network); 11 May 2006 19:56:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 May 2006 19:56:09 -0000 X-PHP-List-Original-Sender: sean@caedmon.net X-Host-Fingerprint: 69.60.120.90 iconoclast.caedmon.net Linux 2.4/2.6 Received: from ([69.60.120.90:32784] helo=iconoclast.caedmon.net) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id C1/BF-19568-8D693644 for ; Thu, 11 May 2006 15:56:09 -0400 Received: from localhost ([127.0.0.1]) by iconoclast.caedmon.net with esmtp (Exim 3.35 #1 (Debian)) id 1FeHDs-0001Xc-00; Thu, 11 May 2006 15:53:20 -0400 Message-ID: <446396D4.1060008@caedmon.net> Date: Thu, 11 May 2006 15:56:04 -0400 User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Jasper Bryant-Greene , internals References: <446222C8.3090101@smashlabs.com> <44623E75.4070304@zend.com> <446273F7.2090702@iamjochem.com> <446370F9.9060105@smashlabs.com> <446391D4.4010600@album.co.nz> <44639486.4040500@album.co.nz> In-Reply-To: <44639486.4040500@album.co.nz> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PHP6 OOP compiler feature question / request From: sean@caedmon.net (Sean Coates) > In any event, I'm just trying to indicate that others may also face > issues if they have PHP4 apps with these sorts of keywords in them. "try" has been a reserved word (documented) since Fri Oct 1 08:07:16 2004 UTC: http://cvs.php.net/viewcvs.cgi/phpdoc/en/appendices/reserved.xml?view=diff&r1=1.48&r2=1.49 See: http://php.net/manual/en/reserved.php (which admittedly needs work) "You cannot use any of the following words as constants, class names, function or method names." I do understand the original question, and I supposed it IS technically possible to determine the context of a T_TRY token, but nonetheless, it's bad practice to have functions named the same as reserved words (even where allowed). S