com php-src: Fixed bug #72686 (zlib: url support is broken).: main/streams/streams.c
| From: | Pierrick Charron | Date: | Wed, 27 Jul 2016 04:33:13 +0000 |
| Subject: | com php-src: Fixed bug #72686 (zlib: url support is broken).: main/streams/streams.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-93411@lists.php.net to get a copy of this message | ||
Commit: 074b86d8451365c81d3ae76616fb4df1757ddc1f
Author: Pierrick Charron <pierrick@php.net> Wed, 27 Jul 2016 00:33:13 -0400
Parents: 4c2e1a13be27b0c44ac5c33a6c548a3d5e5faf8c
Branches: PHP-5.6 PHP-7.0 PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=074b86d8451365c81d3ae76616fb4df1757ddc1f
Log:
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)
Bugs:
https://bugs.php.net/72686
Changed paths:
M main/streams/streams.c
Diff:
diff --git a/main/streams/streams.c b/main/streams/streams.c
index 30ea628..f858133 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) {