php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #72686
Patch remove-broken-zlib-urls revision 2016-07-27 02:45 UTC by ekobrin at akamai dot com

Patch remove-broken-zlib-urls for Streams related Bug #72686

Patch version 2016-07-27 02:45 UTC

Return to Bug #72686 | Download this patch
Patch Revisions:

Developer: ekobrin@akamai.com

diff --git a/main/streams/streams.c b/main/streams/streams.c
index cb21c8f..d738970 100644
--- a/main/streams/streams.c
+++ b/main/streams/streams.c
@@ -1769,11 +1769,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, E_WARNING, "Use of \"zlib:\" wrapper is deprecated; please use \"compress.zlib://\" instead");
 	}
 
 	if (protocol) {
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 17:01:34 2024 UTC