Skip to content
Newer
Older
100644 58 lines (47 sloc) 2.03 KB
ebd9e89 @rlerdorf Clean up EXIF code and give up on extracting the embedded thumbnail for
rlerdorf authored
1 /*
2 +----------------------------------------------------------------------+
3 | PHP version 4.0 |
4 +----------------------------------------------------------------------+
eb6ba01 @andigutmans - Fix copyright notices with 2001
andigutmans authored
5 | Copyright (c) 1997-2001 The PHP Group |
ebd9e89 @rlerdorf Clean up EXIF code and give up on extracting the embedded thumbnail for
rlerdorf authored
6 +----------------------------------------------------------------------+
a0e4652 @andigutmans - License is at 2.02
andigutmans authored
7 | This source file is subject to version 2.02 of the PHP license, |
ebd9e89 @rlerdorf Clean up EXIF code and give up on extracting the embedded thumbnail for
rlerdorf authored
8 | that is bundled with this package in the file LICENSE, and is |
9 | available at through the world-wide-web at |
0836e10 various version 2.0 and 2.01 licenses -> 2.02
David Croft authored
10 | http://www.php.net/license/2_02.txt. |
ebd9e89 @rlerdorf Clean up EXIF code and give up on extracting the embedded thumbnail for
rlerdorf authored
11 | If you did not receive a copy of the PHP license and are unable to |
12 | obtain it through the world-wide-web, please send a note to |
13 | license@php.net so we can mail you a copy immediately. |
14 +----------------------------------------------------------------------+
15 | Authors: |
16 +----------------------------------------------------------------------+
0836e10 various version 2.0 and 2.01 licenses -> 2.02
David Croft authored
17 */
18
19 /* $Id$ */
20
13e6764 @zsuraski Generalize SAPI a bit
zsuraski authored
21 #include "php.h"
22 #include "SAPI.h"
23 #include "rfc1867.h"
24
d9a8628 Fix some warnings
Sascha Schumann authored
25 #include "php_content_types.h"
26
a6393de @zsuraski Make POST handling the way it should be. RFC1867, and any future POST…
zsuraski authored
27 static sapi_post_entry php_post_entries[] = {
28 { DEFAULT_POST_CONTENT_TYPE, sizeof(DEFAULT_POST_CONTENT_TYPE)-1, sapi_read_standard_form_data, php_std_post_handler },
29 { MULTIPART_CONTENT_TYPE, sizeof(MULTIPART_CONTENT_TYPE)-1, sapi_read_standard_form_data, rfc1867_post_handler },
13e6764 @zsuraski Generalize SAPI a bit
zsuraski authored
30 { NULL, 0, NULL }
98d95dd @zsuraski - Added support for unknown POST content types (Zeev)
zsuraski authored
31 };
32
33
34 SAPI_POST_READER_FUNC(php_default_post_reader)
35 {
601b837 SET_VAR_STR* expect a emalloc'ed copy of the string!
Thies C. Arntzen authored
36 char *data;
98d95dd @zsuraski - Added support for unknown POST content types (Zeev)
zsuraski authored
37 ELS_FETCH();
38
a6393de @zsuraski Make POST handling the way it should be. RFC1867, and any future POST…
zsuraski authored
39 sapi_read_standard_form_data(SLS_C);
601b837 SET_VAR_STR* expect a emalloc'ed copy of the string!
Thies C. Arntzen authored
40 data = estrndup(SG(request_info).post_data,SG(request_info).post_data_length);
41 SET_VAR_STRINGL("HTTP_RAW_POST_DATA", data, SG(request_info).post_data_length);
13e6764 @zsuraski Generalize SAPI a bit
zsuraski authored
42 }
43
98d95dd @zsuraski - Added support for unknown POST content types (Zeev)
zsuraski authored
44
a6393de @zsuraski Make POST handling the way it should be. RFC1867, and any future POST…
zsuraski authored
45 int php_startup_sapi_content_types(void)
13e6764 @zsuraski Generalize SAPI a bit
zsuraski authored
46 {
a6393de @zsuraski Make POST handling the way it should be. RFC1867, and any future POST…
zsuraski authored
47 sapi_register_post_entries(php_post_entries);
98d95dd @zsuraski - Added support for unknown POST content types (Zeev)
zsuraski authored
48 sapi_register_default_post_reader(php_default_post_reader);
13e6764 @zsuraski Generalize SAPI a bit
zsuraski authored
49 return SUCCESS;
50 }
ebd9e89 @rlerdorf Clean up EXIF code and give up on extracting the embedded thumbnail for
rlerdorf authored
51
52 /*
53 * Local variables:
54 * tab-width: 4
55 * c-basic-offset: 4
56 * End:
57 */
Something went wrong with that request. Please try again.