|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patcheszlib_inner_open (last revision 2010-09-26 19:49 UTC by cataphract@php.net)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-09-26 21:48 UTC] cataphract@php.net
-Status: Open
+Status: Analyzed
-Package: Streams related
+Package: Zlib Related
[2010-09-26 21:48 UTC] cataphract@php.net
[2010-09-26 21:49 UTC] cataphract@php.net
[2010-09-26 22:34 UTC] simast at gmail dot com
[2010-09-26 22:46 UTC] pajoye@php.net
[2010-09-26 22:47 UTC] pajoye@php.net
-Status: Analyzed
+Status: Closed
-Assigned To:
+Assigned To: pajoye
[2010-09-26 22:47 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 07:00:01 2025 UTC |
Description: ------------ Hello! I was trying to add gzip/deflate support to standard HTTP streams (code attached). It seems stream_context_set_default() works fine as long as stream wrappers are not chained, like when used with "compress.zlib://" it will not use options as set with this function and will revert to php default ones. Simas Test script: --------------- stream_context_set_default(array( 'http' => array( 'protocol_version' => 1.1, // HTTP 1.1 compatible 'header' => array( 'Connection: close', // No Keep-Alive 'Accept-Encoding: gzip, deflate' // We support content compression ) ) )); file_get_contents('compress.zlib://http://example.com'); Expected result: ---------------- Default stream options should be used for chained streams as well.