Re: Re: HTTP supergloblas and request body/query (was: Parsing PUT data)
| From: | Daniel Lowrey | Date: | Mon, 07 Oct 2013 17:19:03 +0000 |
| Subject: | Re: Re: HTTP supergloblas and request body/query (was: Parsing PUT data) | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-69509@lists.php.net to get a copy of this message | ||
>> You can't efficiently model an HTTP request with associative arrays.
Period.
> The fact is that for 99% of use cases, yes you can, and developers
> happily do so.
Leaky abstraction is leaky. If this is truly an efficient model of the HTTP
request then why do we fragment it out into $_SERVER and $_COOKIES and
$_FILES and $_POST and $_GET and php://input? I don't know what your
definition of "efficiently model" is, but it must be different from mine.
Array Oriented Programming !== design.
> without building a whole HTTP framework into the core.
I'm devoutly anti-framework and I don't think anyone is actually advocating
this. If you read closely I'm arguing *against* adding more superglobals.
I'm also against changing the names of the existing arrays as any
improvement is far outweighed by the massive BC implications of such a
change. I personally don't care whether or not a better request model is
implemented in core -- I've already unlearned the bad-habits ingrained at
the language-level.