Paul wrote:
Здравствуйте, internals.

"From: Rasmus Lerdorf
To: internals@lists.php.net
CC: [EMAIL PROTECTED]
Subject: [PHP-DEV] JSON inclusion in core
Date: Fri, 20 Jan 2006 11:31:58 -0800

pecl/json is a rather simple extension with no external deps (it
bundles the small library it uses). The JSON format is stable with
no real possibility of changing basically by definition, and I see
its use exploding this year. There is also talk to a JSON Request
object being added to browsers and if that happens we need to
support that natively much like we support url-encoded form data
ending up directly in $_POST. I could see a $_JSON if browsers
start sending this. But, as an initial step how about we bundle
pecl/json in the next release?

I think super-global array $_JSON is a bad idea, because it allows
only single instance. It is not $_GET or $_POST which are always
single per request.

Also, $_SESSION was bad idea too, when we need 2 separated sessions
(for example with different cookie params) - we cant use PHP
integrated session solution.

So please, do not repeat old mistakes.

You are confused. $_JSON would be for the JSON request mechanism that is being discussed. By definition there can only be 1 JSON body per JSON request, just like there can only be 1 POST body per POST request.

-Rasmus

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to