Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58788 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55965 invoked from network); 8 Mar 2012 16:25:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Mar 2012 16:25:07 -0000 Authentication-Results: pb1.pair.com smtp.mail=ircmaxell@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ircmaxell@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.170 as permitted sender) X-PHP-List-Original-Sender: ircmaxell@gmail.com X-Host-Fingerprint: 209.85.216.170 mail-qy0-f170.google.com Received: from [209.85.216.170] ([209.85.216.170:59216] helo=mail-qy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 89/79-00152-26DD85F4 for ; Thu, 08 Mar 2012 11:25:07 -0500 Received: by qcmt36 with SMTP id t36so515376qcm.29 for ; Thu, 08 Mar 2012 08:25:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=Tnxb3sJyoiRcAM2d9qhoBBVWQG0qGCVWLEnXTA+x/Jc=; b=QfKYdW8M7o7tgDuk1pExno4NYBq4D90LmlTxx2vcCq8V0FJSPPk1nmIXyFSlNRXWuG QHNszTTLeVRO+ZYZuIxh5LMNgVvtpMHm+UbTSlxlOSxBKHW2q/8vgypUoxuC0wlzbwQi hfCBWSdUacvHoHlrJUtbthqZkTgR6LOM0acynR7jWgV7r9ZdADXxD4hPjBuqZ1ms8Pv6 97OAkwAL6eU8lngjlf4fY1XPberc87+9ev8yEHLm/5mx8fPWw6pER45JlWEymfUjWKut jx+pjjf2fcT6VLEAG4vXBn/UYC8zxTbEGF8nkmR4xtGgmPaUZXqeUIJlLUit6Lb+tNmE MA1Q== MIME-Version: 1.0 Received: by 10.229.76.149 with SMTP id c21mr1204567qck.5.1331223903969; Thu, 08 Mar 2012 08:25:03 -0800 (PST) Received: by 10.229.49.74 with HTTP; Thu, 8 Mar 2012 08:25:03 -0800 (PST) In-Reply-To: References: Date: Thu, 8 Mar 2012 11:25:03 -0500 Message-ID: To: Michael Morris Cc: PHP Internals List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Specify namespace to include file into. From: ircmaxell@gmail.com (Anthony Ferrara) Michael, Quick question: how would this work with require_once? Let's say that I have a class Foo defined in a file without a namespace declaration. What happens if I require_once with a namespace first (so Foo gets imported into the namespace), and then require_once later without a namespace? Should it require twice? Which then could break things (if there was procedural or initialization code in there)... If not, then you won't have Foo in the root namespace, and lead to other errors. Anthony On Thu, Mar 8, 2012 at 11:05 AM, Michael Morris wr= ote: > https://wiki.php.net/rfc/changes_to_include_and_require > > Since the reaction to the first of the two suggestions was largely > negative I've withdrawn it for now to focus on the second of the two > changes. =A0In all honestly, these two suggestions should have had > independent RFC's from the start. > > Of the two suggestions this one has the more profound implications to > the language even if it is simpler to implement. =A0Thoughts? > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >