Remove getallheader() compat shim after upstream changes to use $_SERVER.
Review URL: http://codereview.chromium.org/12862 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6213 0039d316-1c4b-4281-b951-d872f2087c98
Esse commit está contido em:
@@ -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;
|
||||
}
|
||||
?>
|
||||
-2
@@ -1,2 +0,0 @@
|
||||
include_path = "../third_party/lighttpd/win/php5/;../../third_party/lighttpd/win/php5/;../../../third_party/lighttpd/win/php5/;../../../../third_party/lighttpd/win/php5/;../../../../../third_party/lighttpd/win/php5/;../../../../../../third_party/lighttpd/win/php5/;../../../../../../../third_party/lighttpd/win/php5/;../../../../../../../../third_party/lighttpd/win/php5/;../../../../../../../../../third_party/lighttpd/win/php5/;"
|
||||
auto_prepend_file = "compat-shim.php"
|
||||
Referência em uma Nova Issue
Bloquear um usuário