summaryrefslogtreecommitdiffstats
path: root/third_party/lighttpd/win/php5
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/lighttpd/win/php5')
-rw-r--r--third_party/lighttpd/win/php5/compat-shim.php16
-rw-r--r--third_party/lighttpd/win/php5/php-cgi.exebin0 -> 45118 bytes
-rw-r--r--third_party/lighttpd/win/php5/php.ini2
-rw-r--r--third_party/lighttpd/win/php5/php5ts.dllbin0 -> 4874301 bytes
4 files changed, 18 insertions, 0 deletions
diff --git a/third_party/lighttpd/win/php5/compat-shim.php b/third_party/lighttpd/win/php5/compat-shim.php
new file mode 100644
index 0000000..95be9b4
--- /dev/null
+++ b/third_party/lighttpd/win/php5/compat-shim.php
@@ -0,0 +1,16 @@
+<?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;
+}
+?>
diff --git a/third_party/lighttpd/win/php5/php-cgi.exe b/third_party/lighttpd/win/php5/php-cgi.exe
new file mode 100644
index 0000000..3665a53
--- /dev/null
+++ b/third_party/lighttpd/win/php5/php-cgi.exe
Binary files differ
diff --git a/third_party/lighttpd/win/php5/php.ini b/third_party/lighttpd/win/php5/php.ini
new file mode 100644
index 0000000..55d4f39
--- /dev/null
+++ b/third_party/lighttpd/win/php5/php.ini
@@ -0,0 +1,2 @@
+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"
diff --git a/third_party/lighttpd/win/php5/php5ts.dll b/third_party/lighttpd/win/php5/php5ts.dll
new file mode 100644
index 0000000..899a34c
--- /dev/null
+++ b/third_party/lighttpd/win/php5/php5ts.dll
Binary files differ