17#ifndef PHP_OPEN_TEMPORARY_FILE_H
18#define PHP_OPEN_TEMPORARY_FILE_H
20#define PHP_TMP_FILE_DEFAULT 0
21#define PHP_TMP_FILE_OPEN_BASEDIR_CHECK_ON_FALLBACK (1<<0)
22#define PHP_TMP_FILE_SILENT (1<<1)
23#define PHP_TMP_FILE_OPEN_BASEDIR_CHECK_ON_EXPLICIT_DIR (1<<2)
24#define PHP_TMP_FILE_OPEN_BASEDIR_CHECK_ALWAYS \
25 (PHP_TMP_FILE_OPEN_BASEDIR_CHECK_ON_FALLBACK | PHP_TMP_FILE_OPEN_BASEDIR_CHECK_ON_EXPLICIT_DIR)
28#define PHP_TMP_FILE_OPEN_BASEDIR_CHECK PHP_TMP_FILE_OPEN_BASEDIR_CHECK_ON_FALLBACK
dir(string $directory, $context=null)
PHPAPI int php_open_temporary_fd(const char *dir, const char *pfx, zend_string **opened_path_p)
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 const char * php_get_temporary_directory(void)
struct _zend_string zend_string