php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
rfc1867.c File Reference
#include <stdio.h>
#include "php.h"
#include "php_open_temporary_file.h"
#include "zend_globals.h"
#include "php_globals.h"
#include "php_variables.h"
#include "rfc1867.h"
#include "zend_smart_string.h"
#include "zend_exceptions.h"

Go to the source code of this file.

Data Structures

struct  multipart_buffer
 
struct  mime_header_entry
 

Macros

#define DEBUG_FILE_UPLOAD   0
 
#define MAX_SIZE_OF_INDEX   sizeof("[full_path]")
 
#define MAX_SIZE_ANONNAME   33
 
#define FILLUNIT   (1024 * 5)
 
#define EMIT_WARNING_OR_ERROR(...)
 

Functions

PHPAPI void destroy_uploaded_files_hash (void)
 
SAPI_API SAPI_POST_HANDLER_FUNC (rfc1867_post_handler)
 
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) = NULL
 

Macro Definition Documentation

◆ DEBUG_FILE_UPLOAD

#define DEBUG_FILE_UPLOAD   0

Definition at line 35 of file rfc1867.c.

◆ EMIT_WARNING_OR_ERROR

#define EMIT_WARNING_OR_ERROR ( ...)
Value:
do { \
if (throw_exceptions) { \
zend_throw_exception_ex(zend_ce_request_parse_body_exception, 0, __VA_ARGS__); \
} else { \
php_error_docref(NULL, E_WARNING, __VA_ARGS__); \
} \
} while (0)
#define NULL
Definition gdcache.h:45
#define E_WARNING
Definition zend_errors.h:24
ZEND_API zend_class_entry * zend_ce_request_parse_body_exception

◆ FILLUNIT

#define FILLUNIT   (1024 * 5)

Definition at line 184 of file rfc1867.c.

◆ MAX_SIZE_ANONNAME

#define MAX_SIZE_ANONNAME   33

Definition at line 61 of file rfc1867.c.

◆ MAX_SIZE_OF_INDEX

#define MAX_SIZE_OF_INDEX   sizeof("[full_path]")

Definition at line 58 of file rfc1867.c.

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 ) = NULL

Definition at line 53 of file rfc1867.c.