Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33655 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7877 invoked by uid 1010); 4 Dec 2007 17:18:50 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 7858 invoked from network); 4 Dec 2007 17:18:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Dec 2007 17:18:50 -0000 Authentication-Results: pb1.pair.com header.from=greg@chiaraquartet.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=greg@chiaraquartet.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain chiaraquartet.net from 38.99.98.18 cause and error) X-PHP-List-Original-Sender: greg@chiaraquartet.net X-Host-Fingerprint: 38.99.98.18 beast.bluga.net Linux 2.6 Received: from [38.99.98.18] ([38.99.98.18:55851] helo=mail.bluga.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 74/D0-27173-12B85574 for ; Tue, 04 Dec 2007 12:15:14 -0500 Received: from mail.bluga.net (localhost.localdomain [127.0.0.1]) by mail.bluga.net (Postfix) with ESMTP id A7FC4C0E693; Tue, 4 Dec 2007 10:07:14 -0700 (MST) Received: from [192.168.0.106] (CPE-76-84-15-179.neb.res.rr.com [76.84.15.179]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bluga.net (Postfix) with ESMTP id 3C5C7C0E67E; Tue, 4 Dec 2007 10:07:14 -0700 (MST) Message-ID: <47558945.20308@chiaraquartet.net> Date: Tue, 04 Dec 2007 11:07:17 -0600 User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: Martin Alterisio CC: PHP Developers Mailing List References: <4731278C.8020301@chiaraquartet.net> <52dbac0f0712040809v64da917cic9aa803f9800f49b@mail.gmail.com> <169B5499-3238-4364-823D-97572630E77B@gmx.net> <52dbac0f0712040850m2e1a764cgc86f579246728b4f@mail.gmail.com> In-Reply-To: <52dbac0f0712040850m2e1a764cgc86f579246728b4f@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: [PHP-DEV] ignored patches From: greg@chiaraquartet.net (Gregory Beaver) Martin Alterisio wrote: > I didn't understand. Do you mean that I was wrong? Or that I was right about > namespaces purpose, but that's only needed in development? Therefore, > shouldn't the bundling process remove the need for namespaces (i.e. the > bundling process removes namespaces)? You can't expand classes in different namespaces as class Blah::Blah {} is not possible. In addition, by forcing code modifications on creating the bundle, you introduce a level of complexity that can introduce subtle but critical bugs, simply because the code being executed is different from the pre-existing code. Having done this kind of work for years with PEAR in the install phars for a different reason, I can say definitively that any code modifications that are required to make something work in an automatic fashion introduce a level of magic that is brittle and much less maintainable. > Aside form that, is it not coherent that a whole namespace conforms one > bundle? Why should namespaces mix? That's a developer's choice. The current implementation forces it to be so, with code modifications. In addition, you would need to check for all import clauses and replace them, as combining these files is a fatal error: So in other words, without the simple 10-line patch to zend_compile.c allowing combining of namespaces into a single file, you just can't reliably combine multiple files containing a namespace statement even in the same namespace, no matter what foobar magic your bundling script practices. Greg