|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesremove-broken-zlib-urls (last revision 2016-07-27 02:45 UTC by ekobrin at akamai dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-07-27 04:41 UTC] pierrick@php.net
[2016-07-27 04:41 UTC] pierrick@php.net
-Status: Open
+Status: Closed
[2016-07-27 04:45 UTC] pierrick@php.net
-Assigned To:
+Assigned To: pierrick
[2016-07-27 04:45 UTC] pierrick@php.net
[2016-10-17 10:10 UTC] bwoebi@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 17:00:01 2025 UTC |
Description: ------------ Line 1772 of streams.c is: '} else if (n == 5 && strncasecmp(path, "zlib:", 5) == 0) ' This is a bug. If path starts with "zlib:" then n will be 4, not 5. Since this branch can never be entered, and it only exists to support a deprecated stream type, I suggest simple deleting the entire "else" clause. Test script: --------------- readfile("zlib:file.gz"); Expected result: ---------------- gzip content is extracted, warning (Use of "zlib:" wrapper is deprecated; please use "compress.zlib://" instead) is printed Actual result: -------------- Warning (failed to open stream: No such file or directory) is printed