Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: src/third_party/lighttpd/win/php5/compat-shim.php

Issue 12862: Remove getallheader() compat shim after upstream changes to use $_SERVER. (Closed)
Patch Set: Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/third_party/lighttpd/win/php5/php.ini » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/third_party/lighttpd/win/php5/compat-shim.php
diff --git a/src/third_party/lighttpd/win/php5/compat-shim.php b/src/third_party/lighttpd/win/php5/compat-shim.php
deleted file mode 100644
index 95be9b402dc48929859107ffc3903fc2696cab6f..0000000000000000000000000000000000000000
--- a/src/third_party/lighttpd/win/php5/compat-shim.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-// This is a compat shim to make our php-cgi act more like apache mod_php.
-// http://www.qijoo.com/fapm/PHP/en/function.getallheaders.html
-// Well, sort of, lighttpd gives us headers like HTTP_UPPERCASE_WEE, and so
-// we do some ugly php to make that Uppercase-Wee...
-function getallheaders() {
- foreach($_SERVER as $name => $value) {
- if(substr($name, 0, 5) == 'HTTP_') {
- $name = strtolower(substr($name, 5));
- $name = join("-", array_map('ucwords', explode("_", $name)));
- $headers[$name] = $value;
- }
- }
- return $headers;
-}
-?>
« no previous file with comments | « no previous file | src/third_party/lighttpd/win/php5/php.ini » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698