Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34185 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64626 invoked by uid 1010); 20 Dec 2007 21:57:10 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 64610 invoked from network); 20 Dec 2007 21:57:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Dec 2007 21:57:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=cellog@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=cellog@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 38.99.98.18 as permitted sender) X-PHP-List-Original-Sender: cellog@php.net X-Host-Fingerprint: 38.99.98.18 beast.bluga.net Linux 2.6 Received: from [38.99.98.18] ([38.99.98.18:34559] helo=mail.bluga.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AA/3D-18668-535EA674 for ; Thu, 20 Dec 2007 16:57:10 -0500 Received: from mail.bluga.net (localhost.localdomain [127.0.0.1]) by mail.bluga.net (Postfix) with ESMTP id 593EAC0F8B0; Thu, 20 Dec 2007 14:57:06 -0700 (MST) Received: from [192.168.1.109] (ftcl002.digis.net [66.17.140.42]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bluga.net (Postfix) with ESMTP id E707CC0F8AF; Thu, 20 Dec 2007 14:57:05 -0700 (MST) Message-ID: <476AE52F.9090607@php.net> Date: Thu, 20 Dec 2007 15:57:03 -0600 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Martin Alterisio CC: PHP Developers Mailing List References: <52dbac0f0712201120x2b8cd45dne6097fe4c57ee281@mail.gmail.com> In-Reply-To: <52dbac0f0712201120x2b8cd45dne6097fe4c57ee281@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: Question on "use" behavior From: cellog@php.net (Greg Beaver) Martin Alterisio wrote: > Consider the following code: > > test.php: > include 'foo.php'; > use test::foo; > foo(); > ?> > > foo.php: > namespace test; > function foo() { } > ?> > > Is it expected behavior that the scripts ends in: > Fatal error: Call to undefined function foo() > ? Hi Martin, No. This is a bug, I was alluding to it in an earlier email, but you know how time eats up one's life, so I haven't reported it and would grateful if someone would (or Dmitry/Stas would just know why it is broken and fix it :) Greg