note 121264 added to migration56.incompatible
| From: | Roger | Date: | Thu, 22 Jun 2017 22:15:29 +0000 |
| Subject: | note 121264 added to migration56.incompatible | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-209147@lists.php.net to get a copy of this message | ||
Another breaking change involves opening the special "php://input" stream for
decompression. In PHP 5.5, the following code would allow PHP to decode a gzip'd request input
stream:
<?php
// Open the input stream for requests with Content-Encoding: gzip.
$input = gzopen('php://input','r');
// This has the same effect as fopen('compress.zlib://php://input','r').
// Get the decompressed request body.
var_dump(stream_get_contents($input));
?>
However in PHP 5.6 this does not work. Instead PHP gives the following warning: gzopen(): cannot
represent a stream of type Input as a File Descriptor.
It is unclear whether this is a bug or intentional, backward-incompatible change.
----
Server IP: 72.52.91.14
Probable Submitter: 198.207.222.132
----
Manual Page -- http://php.net/manual/en/migration56.incompatible.php
Edit -- https://master.php.net/note/edit/121264
Del: integrated -- https://master.php.net/note/delete/121264/integrated
Del: useless -- https://master.php.net/note/delete/121264/useless
Del: bad code -- https://master.php.net/note/delete/121264/bad+code
Del: spam -- https://master.php.net/note/delete/121264/spam
Del: non-english -- https://master.php.net/note/delete/121264/non-english
Del: in docs -- https://master.php.net/note/delete/121264/in+docs
Del: other reasons-- https://master.php.net/note/delete/121264
Reject -- https://master.php.net/note/reject/121264
Search -- https://master.php.net/manage/user-notes.php