Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31638 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16405 invoked by uid 1010); 16 Aug 2007 18:28:09 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 16388 invoked from network); 16 Aug 2007 18:28:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Aug 2007 18:28:08 -0000 Authentication-Results: pb1.pair.com smtp.mail=tijnema@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tijnema@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.162.179 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: tijnema@gmail.com X-Host-Fingerprint: 209.85.162.179 el-out-1112.google.com Linux 2.4/2.6 Received: from [209.85.162.179] ([209.85.162.179:39407] helo=el-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D4/91-04135-43794C64 for ; Thu, 16 Aug 2007 14:28:06 -0400 Received: by el-out-1112.google.com with SMTP id r27so56586ele for ; Thu, 16 Aug 2007 11:28:00 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jExmjJNmmQBKnoTj7QWojLZV0mYwYrCYpKWzAbKC8fiG8/z3gHyvllaE0SgB79eTbcSMZLfNh4CL0lXP/rpHZFQIZ7NIxBm1emzIc2E8PNlhLN32QxBGzgfzN86y7VOmv5ySSBF8N+Ve/djBUgqIMcyIbJUAIZV7LR6xWM7BfI4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Gw/mGf7f/G7Mb/+pQLiSdlIzUUx9nZaXWJ/EZBLedOKxhsMZ1oZjo+I4Jv/7TDXXy5WqP1EBosH31zOIGYjuYb1btJv2HbLRDEjv6hU8y6mKxJ0tR/dGTouxT1jq7jQAYfF+Hg0bE+HkSmA8IWls8pfVtguKNiYliAyRjMks9oU= Received: by 10.143.10.15 with SMTP id n15mr138568wfi.1187288877613; Thu, 16 Aug 2007 11:27:57 -0700 (PDT) Received: by 10.143.38.20 with HTTP; Thu, 16 Aug 2007 11:27:57 -0700 (PDT) Message-ID: Date: Thu, 16 Aug 2007 20:27:57 +0200 To: "=?ISO-8859-1?Q?Johannes_Schl=FCter?=" Cc: "PHP Internals List" , "Dmitry Stogov" In-Reply-To: <1186737992.2772.57.camel@johannes.nop> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1186737992.2772.57.camel@johannes.nop> Subject: Re: [PHP-DEV] Renaming namespaces to packages From: tijnema@gmail.com (Tijnema) On 8/10/07, Johannes Schl=FCter wrote: > Hi, > > I think we reached the consensus to rename namespaces to packages as our > implementation is more package-like. Therefore I wrote the corresponding > patch which tries to get rid of all "namespaces" and "ns" (well, not all > "ns" only the namespace-related ones of course) used in the code. > Additionally I changed all package-tests. Any objections? > > Does anybody (with the move-on-CVS-server powers) care about the history > of the tests? Then please cp ZendEngine2/tests/ns_* to pkg_* there else > I'll do a simple cvs rm and cvs add. > > The patch is at > http://schlueters.de/~johannes/php/zend_namespace_to_package.diff and > the tarball with the changed tests at > http://schlueters.de/~johannes/php/zend_package_tests.tar.bz2 > > johannes > Just a little note, right now, your patch doesn't seem to work Johannes. It's saying that T_NAMESPACE and T_NS can't be found in Zend/zend_language_scanner.c. Extra patch (that worked for me): --------zend_packages_extra_patch.patch------ --- Zend/zend_language_scanner.c=0931 Jul 2007 23:23:37 -0000 +++ Zend/zend_language_scanner.c=0916 Aug 2007 20:13:24 -0000 @@ -5415,7 +5415,7 @@ case 59: YY_RULE_SETUP { -=09return T_NAMESPACE; +=09return T_PACKAGE; } =09YY_BREAK case 60: @@ -5908,13 +5908,13 @@ case 118: YY_RULE_SETUP { -=09if (CG(current_namespace)) { -=09=09*zendlval =3D *CG(current_namespace); +=09if (CG(current_package)) { +=09=09*zendlval =3D *CG(current_package); =09=09zval_copy_ctor(zendlval); =09} else { =09=09ZVAL_EMPTY_TEXT(zendlval); =09} -=09return T_NS_C; +=09return T_PKG_C; } =09YY_BREAK case 119: ---------------------------------- Tijnema --=20 Vote for PHP Color Coding in Gmail! -> http://gpcc.tijnema.info