File manager - Edit - /opt/alt/tests/alt-php83-pecl-http_4.2.4-1.el8/tests/encstream005.phpt
Back
--TEST-- encoding stream zlib static --SKIPIF-- <?php include "skipif.inc"; ?> --FILE-- <?php echo "Test\n"; $file = file_get_contents(__FILE__); var_dump($file === http\Encoding\Stream\Inflate::decode( http\Encoding\Stream\Deflate::encode( $file, http\Encoding\Stream\Deflate::TYPE_GZIP ) ) ); var_dump($file === http\Encoding\Stream\Inflate::decode( http\Encoding\Stream\Deflate::encode( $file, http\Encoding\Stream\Deflate::TYPE_ZLIB ) ) ); var_dump($file === http\Encoding\Stream\Inflate::decode( http\Encoding\Stream\Deflate::encode( $file, http\Encoding\Stream\Deflate::TYPE_RAW ) ) ); ?> DONE --EXPECT-- Test bool(true) bool(true) bool(true) DONE
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.14 |
proxy
|
phpinfo
|
Settings