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

Go to the source code of this file.

Macros

#define OPENBASEDIR_CHECKPATH(filename)
 

Functions

PHPAPI int php_fopen_primary_script (zend_file_handle *file_handle)
 
PHPAPI char * expand_filepath (const char *filepath, char *real_path)
 
PHPAPI char * expand_filepath_ex (const char *filepath, char *real_path, const char *relative_to, size_t relative_to_len)
 
PHPAPI char * expand_filepath_with_mode (const char *filepath, char *real_path, const char *relative_to, size_t relative_to_len, int use_realpath)
 
PHPAPI int php_check_open_basedir (const char *path)
 
PHPAPI int php_check_open_basedir_ex (const char *path, int warn)
 
PHPAPI int php_check_specific_open_basedir (const char *basedir, const char *path)
 
PHPAPI int php_check_safe_mode_include_dir (const char *path)
 
PHPAPI zend_stringphp_resolve_path (const char *filename, size_t filename_len, const char *path)
 
PHPAPI FILE * php_fopen_with_path (const char *filename, const char *mode, const char *path, zend_string **opened_path)
 
PHPAPI char * php_strip_url_passwd (char *path)
 
PHPAPI ZEND_INI_MH (OnUpdateBaseDir)
 

Macro Definition Documentation

◆ OPENBASEDIR_CHECKPATH

#define OPENBASEDIR_CHECKPATH ( filename)
Value:
PHPAPI int php_check_open_basedir(const char *path)

Definition at line 34 of file fopen_wrappers.h.

Function Documentation

◆ expand_filepath()

PHPAPI char * expand_filepath ( const char * filepath,
char * real_path )

Definition at line 773 of file fopen_wrappers.c.

◆ expand_filepath_ex()

PHPAPI char * expand_filepath_ex ( const char * filepath,
char * real_path,
const char * relative_to,
size_t relative_to_len )

Definition at line 780 of file fopen_wrappers.c.

◆ expand_filepath_with_mode()

PHPAPI char * expand_filepath_with_mode ( const char * filepath,
char * real_path,
const char * relative_to,
size_t relative_to_len,
int use_realpath )

Definition at line 787 of file fopen_wrappers.c.

◆ php_check_open_basedir()

PHPAPI int php_check_open_basedir ( const char * path)

Definition at line 285 of file fopen_wrappers.c.

◆ php_check_open_basedir_ex()

PHPAPI int php_check_open_basedir_ex ( const char * path,
int warn )

Definition at line 291 of file fopen_wrappers.c.

◆ php_check_safe_mode_include_dir()

PHPAPI int php_check_safe_mode_include_dir ( const char * path)

◆ php_check_specific_open_basedir()

PHPAPI int php_check_specific_open_basedir ( const char * basedir,
const char * path )

Definition at line 142 of file fopen_wrappers.c.

◆ php_fopen_primary_script()

PHPAPI int php_fopen_primary_script ( zend_file_handle * file_handle)

Definition at line 360 of file fopen_wrappers.c.

◆ php_fopen_with_path()

PHPAPI FILE * php_fopen_with_path ( const char * filename,
const char * mode,
const char * path,
zend_string ** opened_path )

Definition at line 653 of file fopen_wrappers.c.

◆ php_resolve_path()

PHPAPI zend_string * php_resolve_path ( const char * filename,
size_t filename_len,
const char * path )

Definition at line 500 of file fopen_wrappers.c.

◆ php_strip_url_passwd()

PHPAPI char * php_strip_url_passwd ( char * path)

Definition at line 734 of file fopen_wrappers.c.

◆ ZEND_INI_MH()

PHPAPI ZEND_INI_MH ( OnUpdateBaseDir )

Definition at line 74 of file fopen_wrappers.c.