From: Pierrick Charron Date: Wed, 27 Jul 2016 04:33:13 +0000 (-0400) Subject: Fixed bug #72686 (zlib: url support is broken). X-Git-Tag: php-7.0.10RC1~39^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=074b86d8451365c81d3ae76616fb4df1757ddc1f;p=php Fixed bug #72686 (zlib: url support is broken). zlib: support is broken since a really long time. It never worked on versions >= PHP5.6 so we can just remove this dead code. Bug was introduced 2006-05-14 (Before 5.2.0) --- diff --git a/main/streams/streams.c b/main/streams/streams.c index 30ea628d1a..f8581336bd 100644 --- a/main/streams/streams.c +++ b/main/streams/streams.c @@ -1775,11 +1775,6 @@ PHPAPI php_stream_wrapper *php_stream_locate_url_wrapper(const char *path, const if ((*p == ':') && (n > 1) && (!strncmp("//", p+1, 2) || (n == 4 && !memcmp("data:", path, 5)))) { protocol = path; - } else if (n == 5 && strncasecmp(path, "zlib:", 5) == 0) { - /* BC with older php scripts and zlib wrapper */ - protocol = "compress.zlib"; - n = 13; - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Use of \"zlib:\" wrapper is deprecated; please use \"compress.zlib://\" instead"); } if (protocol) {