Skip to content
Newer
Older
100644 92 lines (76 sloc) 3.36 KB
8e3f23e ws fixes + missing $Id$ tags, headers added
foobar authored Feb 19, 2003
1 /*
2 +----------------------------------------------------------------------+
ccfc46b - Happy new year and PHP 5 for rest of the files too..
foobar authored Jan 8, 2004
3 | PHP Version 5 |
8e3f23e ws fixes + missing $Id$ tags, headers added
foobar authored Feb 19, 2003
4 +----------------------------------------------------------------------+
4e19825 @felipensp - Year++
felipensp authored Jan 1, 2012
5 | Copyright (c) 1997-2012 The PHP Group |
8e3f23e ws fixes + missing $Id$ tags, headers added
foobar authored Feb 19, 2003
6 +----------------------------------------------------------------------+
5bd9322 bump year and license version
foobar authored Jan 1, 2006
7 | This source file is subject to version 3.01 of the PHP license, |
8e3f23e ws fixes + missing $Id$ tags, headers added
foobar authored Feb 19, 2003
8 | that is bundled with this package in the file LICENSE, and is |
f68c7ff updating license information in the headers.
James Cox authored Jun 10, 2003
9 | available through the world-wide-web at the following url: |
5bd9322 bump year and license version
foobar authored Jan 1, 2006
10 | http://www.php.net/license/3_01.txt |
8e3f23e ws fixes + missing $Id$ tags, headers added
foobar authored Feb 19, 2003
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 | Author: |
16 +----------------------------------------------------------------------+
17 */
18
19 /* $Id$ */
20
16017f6 Change header protection macros to conform to standard.
Sascha Schumann authored Jul 2, 2000
21 #ifndef RFC1867_H
22 #define RFC1867_H
cf58b7e @zsuraski Add container for file-upload. It's not quite implemented yet.
zsuraski authored May 25, 1999
23
24 #include "SAPI.h"
25
26 #define MULTIPART_CONTENT_TYPE "multipart/form-data"
cfac29e Added RFC1867 fileupload processing hook.
Stefan Esser authored Jul 22, 2006
27 #define MULTIPART_EVENT_START 0
28 #define MULTIPART_EVENT_FORMDATA 1
29 #define MULTIPART_EVENT_FILE_START 2
30 #define MULTIPART_EVENT_FILE_DATA 3
31 #define MULTIPART_EVENT_FILE_END 4
32 #define MULTIPART_EVENT_END 5
33
34 typedef struct _multipart_event_start {
35 size_t content_length;
36 } multipart_event_start;
37
38 typedef struct _multipart_event_formdata {
39 size_t post_bytes_processed;
40 char *name;
41 char **value;
42 size_t length;
43 size_t *newlength;
44 } multipart_event_formdata;
45
46 typedef struct _multipart_event_file_start {
47 size_t post_bytes_processed;
48 char *name;
49 char **filename;
50 } multipart_event_file_start;
51
52 typedef struct _multipart_event_file_data {
53 size_t post_bytes_processed;
54 off_t offset;
55 char *data;
56 size_t length;
57 size_t *newlength;
58 } multipart_event_file_data;
59
60 typedef struct _multipart_event_file_end {
61 size_t post_bytes_processed;
62 char *temp_filename;
63 int cancel_upload;
64 } multipart_event_file_end;
65
66 typedef struct _multipart_event_end {
67 size_t post_bytes_processed;
68 } multipart_event_end;
cf58b7e @zsuraski Add container for file-upload. It's not quite implemented yet.
zsuraski authored May 25, 1999
69
755c2cd Removed compile time dependency from ext/mbstring
Dmitry Stogov authored Dec 8, 2010
70 typedef int (*php_rfc1867_encoding_translation_t)(TSRMLS_D);
cdb9ee0 Fix zend.multibyte oddities. Hope this will address all the known pro…
Moriyoshi Koizumi authored Mar 6, 2011
71 typedef void (*php_rfc1867_get_detect_order_t)(const zend_encoding ***list, size_t *list_size TSRMLS_DC);
72 typedef void (*php_rfc1867_set_input_encoding_t)(const zend_encoding *encoding TSRMLS_DC);
73 typedef char* (*php_rfc1867_getword_t)(const zend_encoding *encoding, char **line, char stop TSRMLS_DC);
74 typedef char* (*php_rfc1867_getword_conf_t)(const zend_encoding *encoding, char *str TSRMLS_DC);
75 typedef char* (*php_rfc1867_basename_t)(const zend_encoding *encoding, char *str TSRMLS_DC);
755c2cd Removed compile time dependency from ext/mbstring
Dmitry Stogov authored Dec 8, 2010
76
0dab84d fix SAPI_POST_* exports
Daniel Beulshausen authored Aug 15, 2001
77 SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler);
cf58b7e @zsuraski Add container for file-upload. It's not quite implemented yet.
zsuraski authored May 25, 1999
78
d87cc97 @zsuraski Redesigned thread safety mechanism - nua nua
zsuraski authored Jul 28, 2001
79 void destroy_uploaded_files_hash(TSRMLS_D);
ed58d3a - Added predefined constants for the upload errors.
foobar authored Jul 12, 2002
80 void php_rfc1867_register_constants(TSRMLS_D);
e1dfc42 @tony2001 eliminate compilation warnings on AIX
tony2001 authored Jul 26, 2006
81 extern PHPAPI int (*php_rfc1867_callback)(unsigned int event, void *event_data, void **extra TSRMLS_DC);
6c4cb4c @zsuraski Security related updates:
zsuraski authored Sep 9, 2000
82
755c2cd Removed compile time dependency from ext/mbstring
Dmitry Stogov authored Dec 8, 2010
83 SAPI_API void php_rfc1867_set_multibyte_callbacks(
84 php_rfc1867_encoding_translation_t encoding_translation,
cdb9ee0 Fix zend.multibyte oddities. Hope this will address all the known pro…
Moriyoshi Koizumi authored Mar 6, 2011
85 php_rfc1867_get_detect_order_t get_detect_order,
86 php_rfc1867_set_input_encoding_t set_input_encoding,
755c2cd Removed compile time dependency from ext/mbstring
Dmitry Stogov authored Dec 8, 2010
87 php_rfc1867_getword_t getword,
cdb9ee0 Fix zend.multibyte oddities. Hope this will address all the known pro…
Moriyoshi Koizumi authored Mar 6, 2011
88 php_rfc1867_getword_conf_t getword_conf,
755c2cd Removed compile time dependency from ext/mbstring
Dmitry Stogov authored Dec 8, 2010
89 php_rfc1867_basename_t basename);
90
16017f6 Change header protection macros to conform to standard.
Sascha Schumann authored Jul 2, 2000
91 #endif /* RFC1867_H */
Something went wrong with that request. Please try again.