RE: [PHP-DEV] New globals for PUT and DELETE

From: Date: Tue, 14 Oct 2014 21:56:04 +0000
Subject: RE: [PHP-DEV] New globals for PUT and DELETE
References: 1 2 3 4 5 6 7 8 9 10 11 12 13  Groups: php.internals 
Request: Send a blank email to internals+get-78075@lists.php.net to get a copy of this message
> Personally, I like the idea of using more appropriately named aliases, > particularly if they're roughly the same number of characters. However, > we > would need to allow at least several years for people to adopt the new > globals before deprecating $_GET and $_POST. Ultimately, they will either > need to be deprecated or the $_PUT and $_DELETE aliases will need to be > added, otherwise the issue I raised would remain unresolved. Kris, Don't get this the wrong way, but $_GET and $_POST are not going to be deprecated. Whether or not we need $_PUT or $_DELETE is a separate, independent question from the axiom that $_GET and $_POST are here to stay. Personally, I don't think they make sense as Rasmus pointed out that $_GET and $_POST were never about HTTP methods but form methods, and there's really nothing missing from PHP today to enable successful & easy implementation of RESTful interfaces. Zeev

« previous php.internals (#78075) next »