Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37691 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70655 invoked from network); 17 May 2008 00:57:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 May 2008 00:57:53 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:45544] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3C/A8-18477-F8D2E284 for ; Fri, 16 May 2008 20:57:52 -0400 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Sat, 17 May 2008 03:58:56 +0300 Received: from [192.168.16.217] ([192.168.16.217]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 16 May 2008 17:50:09 -0700 Message-ID: <482E2B7C.4070805@zend.com> Date: Fri, 16 May 2008 17:49:00 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Stan Vassilev | FM CC: internals Mailing List References: <482B9F96.7050908@gmail.com> <482CE5F8.5000700@gmail.com> <4D.AE.00945.5066D284@pb1.pair.com> <482D9F66.4000802@chiaraquartet.net> <2DA61F1F6DB245F5A628540F51AAE45F@pc> <482DDF8F.7070005@zend.com> <208411A24212429683264E1E5C89980F@pc> <482E1CB6.7030601@zend.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 17 May 2008 00:50:09.0660 (UTC) FILETIME=[F4F42BC0:01C8B7B7] Subject: Re: [PHP-DEV] Re: 5.3 Namespace resolution rules suggestions From: stas@zend.com (Stanislav Malyshev) Hi! > But inside a namespace, you'll need to do the above checks since > internals and user functions don't resolve under the same rules. No, not really - just use: $encoded = ::json_encode($raw); It might be even possible to allow something like: use ::json_encode; to allow you to write just json_encode() instead, but this needs to be checked. ::json_encode just works. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com