summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-09-16 22:15:43 +0000
committerZeev Suraski <zeev@php.net>1999-09-16 22:15:43 +0000
commit13e67642fa1410fcc3840d2ea283c8bf4730133d (patch)
tree9f6f36653f55837d87803528697e8f2ff463df71 /main
parentf52ffb8943058eff710e255d80511e63c4688a2e (diff)
downloadphp-git-13e67642fa1410fcc3840d2ea283c8bf4730133d.tar.gz
Generalize SAPI a bit
Diffstat (limited to 'main')
-rw-r--r--main/php_content_types.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/main/php_content_types.c b/main/php_content_types.c
new file mode 100644
index 0000000000..8ee79dc0e5
--- /dev/null
+++ b/main/php_content_types.c
@@ -0,0 +1,14 @@
+#include "php.h"
+#include "SAPI.h"
+#include "rfc1867.h"
+
+static sapi_post_content_type_reader php_post_content_types[] = {
+ { MULTIPART_CONTENT_TYPE, sizeof(MULTIPART_CONTENT_TYPE)-1, rfc1867_post_reader },
+ { NULL, 0, NULL }
+}
+
+int php_startup_SAPI_content_types()
+{
+ sapi_register_post_readers(php_post_content_types);
+ return SUCCESS;
+}