Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34187 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84744 invoked by uid 1010); 20 Dec 2007 23:09:43 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 84729 invoked from network); 20 Dec 2007 23:09:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Dec 2007 23:09:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=malterisio777@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=malterisio777@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.162.234 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: malterisio777@gmail.com X-Host-Fingerprint: 64.233.162.234 nz-out-0506.google.com Received: from [64.233.162.234] ([64.233.162.234:5495] helo=nz-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 90/7F-18668-736FA674 for ; Thu, 20 Dec 2007 18:09:43 -0500 Received: by nz-out-0506.google.com with SMTP id x7so57818nzc.38 for ; Thu, 20 Dec 2007 15:09:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=mcpPAw5N2n4TYtLD0IiP591SUVo8Ik0ac4ae+u2GaEE=; b=OTkxtAfcT3Ssv1HW5USKQ/NjGs0JjLWxqOpe1jXVRMeR0SXUAvyp9vd7qef7i7b3dxh76b146TLW3xPiI5WPwDBfZphtZl7Stj/GYxb2IXVulWq8HTWd0vMVOeI3+KrudEOY/adH8r0tpYdl2sAKU8iYSFrotRm/DnIW3hRWIsI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=PMlKgn/NeRa336Sv6km/Qw2Vz1jLkjLcvoMjAeZyULimXfL1YbkLoSnWsu9vyX5ZAvDVAEy/1kLi6TgS6xMBwVh1TQrg+k5FwziHcfQs95sXni7NX5YPn0U+nMHUwr+C0jJ08NFKqYch1kxdcyA0/4q6Ima+67w8SgFvuCFKcRg= Received: by 10.142.158.17 with SMTP id g17mr437357wfe.127.1198192179637; Thu, 20 Dec 2007 15:09:39 -0800 (PST) Received: by 10.142.157.9 with HTTP; Thu, 20 Dec 2007 15:09:39 -0800 (PST) Message-ID: <52dbac0f0712201509h426c1208i7c035793653aa711@mail.gmail.com> Date: Thu, 20 Dec 2007 20:09:39 -0300 To: "Greg Beaver" Cc: "PHP Developers Mailing List" In-Reply-To: <476AE52F.9090607@php.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_23320_28486019.1198192179654" References: <52dbac0f0712201120x2b8cd45dne6097fe4c57ee281@mail.gmail.com> <476AE52F.9090607@php.net> Subject: Re: Question on "use" behavior From: malterisio777@gmail.com ("Martin Alterisio") ------=_Part_23320_28486019.1198192179654 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 2007/12/20, 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 > Thank you. Sorry I didn't read your mail about this bug. I'll look into it a bit more and post a bug report. Have you seen my post scriptum in the first mail about benchmarks? Any idea of what I could use to test the performance of the unsolved name resolutions that are pushed into the executer? I expect there won't be any considerable performance penalty but just want to be completely sure. ------=_Part_23320_28486019.1198192179654--