Re: Re: 5.3 Namespace resolution rules suggestions
| From: | Stanislav Malyshev | Date: | Sat, 17 May 2008 00:49:00 +0000 |
| Subject: | Re: Re: 5.3 Namespace resolution rules suggestions | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-37691@lists.php.net to get a copy of this message | ||
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