From: Sara Golemon Date: Thu, 6 May 2004 14:29:33 +0000 (+0000) Subject: Bugfix #28300 Userspace stream/filter names don't need to be lowercased. X-Git-Tag: RELEASE_0_1~281 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0dae58bb2a648747bb1326a06285c0210dcc6a45;p=php Bugfix #28300 Userspace stream/filter names don't need to be lowercased. --- diff --git a/NEWS b/NEWS index 8c1152219a..ecb8be1d70 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,7 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? 2004, PHP 5 Release Candidate 3 - You may now use count() on COM arrays. (Wez) +- Fixed bug #28300 (Userspace stream/filter names forced to lowercase). (Sara) - Fixed bug #28287 (stream_*_register() not calling __autoload()). (Sara) - Fixed bug #28161 (COM: Array style properties could not be accessed). (Wez) - Fixed bug #28125 (ArrayObject leaks when accessing elements). (Marcus) diff --git a/ext/standard/user_filters.c b/ext/standard/user_filters.c index 81a28f61a6..b67815d663 100644 --- a/ext/standard/user_filters.c +++ b/ext/standard/user_filters.c @@ -525,7 +525,6 @@ PHP_FUNCTION(stream_filter_register) fdat = ecalloc(1, sizeof(*fdat) + classname_len); memcpy(fdat->classname, classname, classname_len); - zend_str_tolower(fdat->classname, classname_len); if (zend_hash_add(BG(user_filter_map), filtername, filtername_len, (void*)fdat, sizeof(*fdat) + classname_len, NULL) == SUCCESS && diff --git a/main/streams/userspace.c b/main/streams/userspace.c index e8b17d6301..cec3fbee37 100644 --- a/main/streams/userspace.c +++ b/main/streams/userspace.c @@ -414,7 +414,6 @@ PHP_FUNCTION(stream_wrapper_register) uwrap->wrapper.wops = &user_stream_wops; uwrap->wrapper.abstract = uwrap; - zend_str_tolower(uwrap->classname, classname_len); rsrc_id = ZEND_REGISTER_RESOURCE(NULL, uwrap, le_protocols); if (zend_lookup_class(uwrap->classname, classname_len, (zend_class_entry***)&uwrap->ce TSRMLS_CC) == SUCCESS) {