php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
rfc1867.h File Reference
#include "SAPI.h"

Go to the source code of this file.

Data Structures

struct  _multipart_event_start
 
struct  _multipart_event_formdata
 
struct  _multipart_event_file_start
 
struct  _multipart_event_file_data
 
struct  _multipart_event_file_end
 
struct  _multipart_event_end
 

Macros

#define MULTIPART_CONTENT_TYPE   "multipart/form-data"
 
#define MULTIPART_EVENT_START   0
 
#define MULTIPART_EVENT_FORMDATA   1
 
#define MULTIPART_EVENT_FILE_START   2
 
#define MULTIPART_EVENT_FILE_DATA   3
 
#define MULTIPART_EVENT_FILE_END   4
 
#define MULTIPART_EVENT_END   5
 
#define PHP_UPLOAD_ERROR_OK   0 /* File upload successful */
 
#define PHP_UPLOAD_ERROR_A   1 /* Uploaded file exceeded upload_max_filesize */
 
#define PHP_UPLOAD_ERROR_B   2 /* Uploaded file exceeded MAX_FILE_SIZE */
 
#define PHP_UPLOAD_ERROR_C   3 /* Partially uploaded */
 
#define PHP_UPLOAD_ERROR_D   4 /* No file uploaded */
 
#define PHP_UPLOAD_ERROR_E   6 /* Missing /tmp or similar directory */
 
#define PHP_UPLOAD_ERROR_F   7 /* Failed to write file to disk */
 
#define PHP_UPLOAD_ERROR_X   8 /* File upload stopped by extension */
 

Typedefs

typedef struct _multipart_event_start multipart_event_start
 
typedef struct _multipart_event_formdata multipart_event_formdata
 
typedef struct _multipart_event_file_start multipart_event_file_start
 
typedef struct _multipart_event_file_data multipart_event_file_data
 
typedef struct _multipart_event_file_end multipart_event_file_end
 
typedef struct _multipart_event_end multipart_event_end
 
typedef int(* php_rfc1867_encoding_translation_t) (void)
 
typedef void(* php_rfc1867_get_detect_order_t) (const zend_encoding ***list, size_t *list_size)
 
typedef void(* php_rfc1867_set_input_encoding_t) (const zend_encoding *encoding)
 
typedef char *(* php_rfc1867_getword_t) (const zend_encoding *encoding, char **line, char stop)
 
typedef char *(* php_rfc1867_getword_conf_t) (const zend_encoding *encoding, char *str)
 
typedef char *(* php_rfc1867_basename_t) (const zend_encoding *encoding, char *str)
 

Functions

SAPI_API SAPI_POST_HANDLER_FUNC (rfc1867_post_handler)
 
PHPAPI void destroy_uploaded_files_hash (void)
 
SAPI_API void php_rfc1867_set_multibyte_callbacks (php_rfc1867_encoding_translation_t encoding_translation, php_rfc1867_get_detect_order_t get_detect_order, php_rfc1867_set_input_encoding_t set_input_encoding, php_rfc1867_getword_t getword, php_rfc1867_getword_conf_t getword_conf, php_rfc1867_basename_t basename)
 

Variables

PHPAPI zend_result(* php_rfc1867_callback )(unsigned int event, void *event_data, void **extra)
 

Macro Definition Documentation

◆ MULTIPART_CONTENT_TYPE

#define MULTIPART_CONTENT_TYPE   "multipart/form-data"

Definition at line 22 of file rfc1867.h.

◆ MULTIPART_EVENT_END

#define MULTIPART_EVENT_END   5

Definition at line 28 of file rfc1867.h.

◆ MULTIPART_EVENT_FILE_DATA

#define MULTIPART_EVENT_FILE_DATA   3

Definition at line 26 of file rfc1867.h.

◆ MULTIPART_EVENT_FILE_END

#define MULTIPART_EVENT_FILE_END   4

Definition at line 27 of file rfc1867.h.

◆ MULTIPART_EVENT_FILE_START

#define MULTIPART_EVENT_FILE_START   2

Definition at line 25 of file rfc1867.h.

◆ MULTIPART_EVENT_FORMDATA

#define MULTIPART_EVENT_FORMDATA   1

Definition at line 24 of file rfc1867.h.

◆ MULTIPART_EVENT_START

#define MULTIPART_EVENT_START   0

Definition at line 23 of file rfc1867.h.

◆ PHP_UPLOAD_ERROR_A

#define PHP_UPLOAD_ERROR_A   1 /* Uploaded file exceeded upload_max_filesize */

Definition at line 32 of file rfc1867.h.

◆ PHP_UPLOAD_ERROR_B

#define PHP_UPLOAD_ERROR_B   2 /* Uploaded file exceeded MAX_FILE_SIZE */

Definition at line 33 of file rfc1867.h.

◆ PHP_UPLOAD_ERROR_C

#define PHP_UPLOAD_ERROR_C   3 /* Partially uploaded */

Definition at line 34 of file rfc1867.h.

◆ PHP_UPLOAD_ERROR_D

#define PHP_UPLOAD_ERROR_D   4 /* No file uploaded */

Definition at line 35 of file rfc1867.h.

◆ PHP_UPLOAD_ERROR_E

#define PHP_UPLOAD_ERROR_E   6 /* Missing /tmp or similar directory */

Definition at line 36 of file rfc1867.h.

◆ PHP_UPLOAD_ERROR_F

#define PHP_UPLOAD_ERROR_F   7 /* Failed to write file to disk */

Definition at line 37 of file rfc1867.h.

◆ PHP_UPLOAD_ERROR_OK

#define PHP_UPLOAD_ERROR_OK   0 /* File upload successful */

Definition at line 31 of file rfc1867.h.

◆ PHP_UPLOAD_ERROR_X

#define PHP_UPLOAD_ERROR_X   8 /* File upload stopped by extension */

Definition at line 38 of file rfc1867.h.

Typedef Documentation

◆ multipart_event_end

◆ multipart_event_file_data

◆ multipart_event_file_end

◆ multipart_event_file_start

◆ multipart_event_formdata

◆ multipart_event_start

◆ php_rfc1867_basename_t

typedef char *(* php_rfc1867_basename_t) (const zend_encoding *encoding, char *str)

Definition at line 81 of file rfc1867.h.

◆ php_rfc1867_encoding_translation_t

typedef int(* php_rfc1867_encoding_translation_t) (void)

Definition at line 76 of file rfc1867.h.

◆ php_rfc1867_get_detect_order_t

typedef void(* php_rfc1867_get_detect_order_t) (const zend_encoding ***list, size_t *list_size)

Definition at line 77 of file rfc1867.h.

◆ php_rfc1867_getword_conf_t

typedef char *(* php_rfc1867_getword_conf_t) (const zend_encoding *encoding, char *str)

Definition at line 80 of file rfc1867.h.

◆ php_rfc1867_getword_t

typedef char *(* php_rfc1867_getword_t) (const zend_encoding *encoding, char **line, char stop)

Definition at line 79 of file rfc1867.h.

◆ php_rfc1867_set_input_encoding_t

typedef void(* php_rfc1867_set_input_encoding_t) (const zend_encoding *encoding)

Definition at line 78 of file rfc1867.h.

Function Documentation

◆ destroy_uploaded_files_hash()

PHPAPI void destroy_uploaded_files_hash ( void )

Definition at line 168 of file rfc1867.c.

◆ php_rfc1867_set_multibyte_callbacks()

SAPI_API void php_rfc1867_set_multibyte_callbacks ( php_rfc1867_encoding_translation_t encoding_translation,
php_rfc1867_get_detect_order_t get_detect_order,
php_rfc1867_set_input_encoding_t set_input_encoding,
php_rfc1867_getword_t getword,
php_rfc1867_getword_conf_t getword_conf,
php_rfc1867_basename_t basename )

Definition at line 1289 of file rfc1867.c.

◆ SAPI_POST_HANDLER_FUNC()

SAPI_API SAPI_POST_HANDLER_FUNC ( rfc1867_post_handler )

Definition at line 651 of file rfc1867.c.

Variable Documentation

◆ php_rfc1867_callback

PHPAPI zend_result(* php_rfc1867_callback) (unsigned int event, void *event_data, void **extra) ( unsigned int event,
void * event_data,
void ** extra )
extern

Definition at line 53 of file rfc1867.c.