Commit:    ac2146c2883299157a2a4447577f81246b9cf779
Author:    Stanislav Malyshev <s...@php.net>         Mon, 7 May 2012 21:54:19 
-0700
Parents:   eb8f3b025b0a6dbbf6b44bf51d8cf345437b7354
Branches:  PHP-5.4.3

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=ac2146c2883299157a2a4447577f81246b9cf779

Log:
ws + restore BC to apache_request_headers

Changed paths:
  M  sapi/cgi/cgi_main.c


Diff:
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c
index a1690b1..215a3d2 100644
--- a/sapi/cgi/cgi_main.c
+++ b/sapi/cgi/cgi_main.c
@@ -1614,21 +1614,21 @@ PHP_FUNCTION(apache_request_headers) /* {{{ */
                                p = var + 5;
 
                                var = q = t;
-                                // First char keep uppercase
+                               // First char keep uppercase
                                *q++ = *p++;
                                while (*p) {
                                        if (*p == '=') {
-                                               // End of name
-                                               break;
-                                        } else if (*p == '_') {
+                                               // End of name
+                                               break;
+                                       } else if (*p == '_') {
                                                *q++ = '-';
                                                p++;
-                                                // First char after - keep 
uppercase
-                                               if (*p && *p!='=' && *p!='_') {
+                                               // First char after - keep 
uppercase
+                                               if (*p && *p!='=') {
                                                        *q++ = *p++;
                                                }
                                        } else if (*p >= 'A' && *p <= 'Z') {
-                                                // lowercase
+                                               // lowercase
                                                *q++ = (*p++ - 'A' + 'a');
                                        } else {
                                                *q++ = *p++;


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to