News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Andrei Zmievski's Blog:
PHP 6 and Request Decoding
February 22, 2007 @ 07:49:00

Andrei Zmievski has posted something new to his blog today about a feature of PHP6 that's finally been hammered down - HTTP input (request) decoding.

There have been no fewer than 4 different proposals floated before, but this one combines flexibility, performance, intuitiveness, and minimal architectural changes, and has only a couple of small drawbacks. Let's take a closer look.

He details the functionality - what it is, what's been decided on, and the advantages of the method. The basic approach is a "lazy" one where PHP will only store the request when it comes in, no filtering or anything, until you want to do something with it (i.e. get it via $_GET, $_POST, etc). When the request for data is made, PHP looks at the encoding settings and formats the data accordingly.

Advantages he mentions for this method include removing the guess-work on PHP's part for which encoding the request is and that it removes some of the overhead by not processing the data until it's actually needed.

0 comments voice your opinion now!
php6 decoding request lazy evaluation scheme php6 decoding request lazy evaluation scheme


blog comments powered by Disqus

Similar Posts

David Coallier's Blog: PHP Namespaces (Part 2: Namespace constants)

HashBangCode.com: Revisiting filter_var() and FILTER_VALIDATE_URL

PHPBuilder.com: Using XML - A PHP Developer\'s Primer (Part 4) - XML-RPC, PHP and Javascript

PHPClasses.org: Lately in PHP Podcast #43 - "Is Facebook HHVM going to Replace Zend Engine in PHP6"

PHPBuilder.com: Securing Data Sent Via GET Requests


Community Events





Don't see your event here?
Let us know!


install series zendserver library community update release laravel introduction podcast language framework list deployment package interview opinion api symfony tips

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework