Commit:    bd8912e47c8a74406fe49555a3eb76a8c3197b27
Author:    Stanislav Malyshev <s...@php.net>         Mon, 7 May 2012 21:54:19 
-0700
Parents:   20364bcff9f38bed83245d785cc8ec3a072e4da5
Branches:  PHP-5.4

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

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 a0a1ada..ba89c54 100644
--- a/sapi/cgi/cgi_main.c
+++ b/sapi/cgi/cgi_main.c
@@ -1615,21 +1615,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