Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40050 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67650 invoked from network); 21 Aug 2008 13:16:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Aug 2008 13:16:46 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.163 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 212.25.124.163 il-gw1.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.163] ([212.25.124.163:38626] helo=il-gw1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3E/C0-06543-DBA6DA84 for ; Thu, 21 Aug 2008 09:16:46 -0400 Received: from [10.1.10.24] ([10.1.10.24]) by il-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 21 Aug 2008 16:17:39 +0300 Message-ID: <48AD6AB2.7080407@zend.com> Date: Thu, 21 Aug 2008 17:16:34 +0400 User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Ryan Panning CC: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 21 Aug 2008 13:17:40.0594 (UTC) FILETIME=[49D99520:01C90390] Subject: Re: [PHP-DEV] Namespace Global User Function Calls From: dmitry@zend.com (Dmitry Stogov) Don't you forget the "echo"? Dmitry. Ryan Panning wrote: > I can't seem to get global user function calls to work from namespaces > in the latest 5.3 snaps. This is on Win XP SP2 using Apache 2.2.8 and > the php5apache2_2.dll. Example: > > > global_file.php > --------------- > require 'namespace_file.php'; > function globalFunc() { > 'Global Called!'; > } > TestNS::callGlobalFunc(); > > > > namespace_file.php > ------------------ > namespace TestNS; > function callGlobalFunc() { > ::globalFunc(); > } >