Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32843 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76891 invoked by uid 1010); 18 Oct 2007 06:17:57 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 76876 invoked from network); 18 Oct 2007 06:17:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Oct 2007 06:17:57 -0000 Authentication-Results: pb1.pair.com header.from=andi@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=andi@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: andi@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:58593] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 37/A6-19466-49AF6174 for ; Thu, 18 Oct 2007 02:17:57 -0400 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 18 Oct 2007 08:17:53 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Wed, 17 Oct 2007 23:17:49 -0700 Message-ID: <698DE66518E7CA45812BD18E807866CECC6469@us-ex1.zend.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PHP-DEV] T_IMPORT vs. T_USE Thread-Index: AcgQ9/eBUhLpR/D9T2ad9EcD8RkqjAAVlKcw References: <1191237850.2903.19.camel@johannes.nop> <698DE66518E7CA45812BD18E807866CEB9528E@us-ex1.zend.net> <4701E210.70109@nohn.net> <698DE66518E7CA45812BD18E807866CEB954E9@us-ex1.zend.net> <8c631e020710171158n25b5efedt4eccf7d816331407@mail.gmail.com> <47166930.7000706@zend.com> To: "Stanislav Malyshev" , "Sebastian Nohn" Cc: =?iso-8859-1?Q?Johannes_Schl=FCter?= , "Sebastian Bergmann" , X-OriginalArrivalTime: 18 Oct 2007 06:17:53.0706 (UTC) FILETIME=[9E1078A0:01C8114E] Subject: RE: [PHP-DEV] T_IMPORT vs. T_USE From: andi@zend.com ("Andi Gutmans") Main problem I have right now after digging deeper is that any such = "fix" in the parser will mean that tokenizers and syntax highlighters = will not treat keywords like "import" correctly. Fixing this would = require them to do parsing which in many cases you don't want to do. = There are a lot of utilities and tools which depend on such behavior. Even if it's just for this reason it may be better if we stick to the "a = keyword is a keyword" rule and don't try and outsmart ourselves (other = languages like C have discovered the same issues and stuck to the = keyword only rule too). So it may make most sense to go ahead and use = "use". Andi > -----Original Message----- > From: Stanislav Malyshev [mailto:stas@zend.com] > Sent: Wednesday, October 17, 2007 12:58 PM > To: Sebastian Nohn > Cc: Andi Gutmans; Johannes Schl=FCter; Sebastian Bergmann; > internals@lists.php.net > Subject: Re: [PHP-DEV] T_IMPORT vs. T_USE >=20 > > Are there already any results on these checks? >=20 > Looks like we have the simple patch that allows to use "import" as > method name, function name and class name. If we didn't discover any > problems with it then import stays. > -- > Stanislav Malyshev, Zend Software Architect > stas@zend.com http://www.zend.com/ > (408)253-8829 MSN: stas@zend.com