]> granicus.if.org Git - php/commitdiff
Bugfix #28300 Userspace stream/filter names don't need to be lowercased.
authorSara Golemon <pollita@php.net>
Thu, 6 May 2004 14:29:33 +0000 (14:29 +0000)
committerSara Golemon <pollita@php.net>
Thu, 6 May 2004 14:29:33 +0000 (14:29 +0000)
NEWS
ext/standard/user_filters.c
main/streams/userspace.c

diff --git a/NEWS b/NEWS
index 8c1152219a25db9fd92c0002d97b0793cd737451..ecb8be1d70db8597d03b4bd9b7038676eb7ccd17 100644 (file)
--- 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)
index 81a28f61a6b40b9c18004fee7dab57c8dfe39afc..b67815d6630f3518abb2ff6ce87126b203a31923 100644 (file)
@@ -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 &&
index e8b17d63015a4e605152a2df53092131cdd1bb91..cec3fbee378645263bc36acad73219ccb8352995 100644 (file)
@@ -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) {