php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_open_temporary_file.h File Reference

Go to the source code of this file.

Macros

#define PHP_TMP_FILE_DEFAULT   0
 
#define PHP_TMP_FILE_OPEN_BASEDIR_CHECK_ON_FALLBACK   (1<<0)
 
#define PHP_TMP_FILE_SILENT   (1<<1)
 
#define PHP_TMP_FILE_OPEN_BASEDIR_CHECK_ON_EXPLICIT_DIR   (1<<2)
 
#define PHP_TMP_FILE_OPEN_BASEDIR_CHECK_ALWAYS    (PHP_TMP_FILE_OPEN_BASEDIR_CHECK_ON_FALLBACK | PHP_TMP_FILE_OPEN_BASEDIR_CHECK_ON_EXPLICIT_DIR)
 
#define PHP_TMP_FILE_OPEN_BASEDIR_CHECK   PHP_TMP_FILE_OPEN_BASEDIR_CHECK_ON_FALLBACK
 

Functions

PHPAPI FILE * php_open_temporary_file (const char *dir, const char *pfx, zend_string **opened_path_p)
 
PHPAPI int php_open_temporary_fd_ex (const char *dir, const char *pfx, zend_string **opened_path_p, uint32_t flags)
 
PHPAPI int php_open_temporary_fd (const char *dir, const char *pfx, zend_string **opened_path_p)
 
PHPAPI const char * php_get_temporary_directory (void)
 

Macro Definition Documentation

◆ PHP_TMP_FILE_DEFAULT

#define PHP_TMP_FILE_DEFAULT   0

Definition at line 20 of file php_open_temporary_file.h.

◆ PHP_TMP_FILE_OPEN_BASEDIR_CHECK

#define PHP_TMP_FILE_OPEN_BASEDIR_CHECK   PHP_TMP_FILE_OPEN_BASEDIR_CHECK_ON_FALLBACK

Definition at line 28 of file php_open_temporary_file.h.

◆ PHP_TMP_FILE_OPEN_BASEDIR_CHECK_ALWAYS

Definition at line 24 of file php_open_temporary_file.h.

◆ PHP_TMP_FILE_OPEN_BASEDIR_CHECK_ON_EXPLICIT_DIR

#define PHP_TMP_FILE_OPEN_BASEDIR_CHECK_ON_EXPLICIT_DIR   (1<<2)

Definition at line 23 of file php_open_temporary_file.h.

◆ PHP_TMP_FILE_OPEN_BASEDIR_CHECK_ON_FALLBACK

#define PHP_TMP_FILE_OPEN_BASEDIR_CHECK_ON_FALLBACK   (1<<0)

Definition at line 21 of file php_open_temporary_file.h.

◆ PHP_TMP_FILE_SILENT

#define PHP_TMP_FILE_SILENT   (1<<1)

Definition at line 22 of file php_open_temporary_file.h.

Function Documentation

◆ php_get_temporary_directory()

PHPAPI const char * php_get_temporary_directory ( void )

Definition at line 235 of file php_open_temporary_file.c.

◆ php_open_temporary_fd()

PHPAPI int php_open_temporary_fd ( const char * dir,
const char * pfx,
zend_string ** opened_path_p )

Definition at line 358 of file php_open_temporary_file.c.

◆ php_open_temporary_fd_ex()

PHPAPI int php_open_temporary_fd_ex ( const char * dir,
const char * pfx,
zend_string ** opened_path_p,
uint32_t flags )

Definition at line 317 of file php_open_temporary_file.c.

◆ php_open_temporary_file()

PHPAPI FILE * php_open_temporary_file ( const char * dir,
const char * pfx,
zend_string ** opened_path_p )

Definition at line 363 of file php_open_temporary_file.c.