diff options
author | Zeev Suraski <zeev@php.net> | 1999-09-16 22:15:43 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 1999-09-16 22:15:43 +0000 |
commit | 13e67642fa1410fcc3840d2ea283c8bf4730133d (patch) | |
tree | 9f6f36653f55837d87803528697e8f2ff463df71 /main | |
parent | f52ffb8943058eff710e255d80511e63c4688a2e (diff) | |
download | php-git-13e67642fa1410fcc3840d2ea283c8bf4730133d.tar.gz |
Generalize SAPI a bit
Diffstat (limited to 'main')
-rw-r--r-- | main/php_content_types.c | 14 |
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; +} |