php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
fopen_wrappers.h
Go to the documentation of this file.
1/*
2 +----------------------------------------------------------------------+
3 | Copyright (c) The PHP Group |
4 +----------------------------------------------------------------------+
5 | This source file is subject to version 3.01 of the PHP license, |
6 | that is bundled with this package in the file LICENSE, and is |
7 | available through the world-wide-web at the following url: |
8 | https://www.php.net/license/3_01.txt |
9 | If you did not receive a copy of the PHP license and are unable to |
10 | obtain it through the world-wide-web, please send a note to |
11 | license@php.net so we can mail you a copy immediately. |
12 +----------------------------------------------------------------------+
13 | Author: Jim Winstead <jimw@php.net> |
14 +----------------------------------------------------------------------+
15 */
16
17#ifndef FOPEN_WRAPPERS_H
18#define FOPEN_WRAPPERS_H
19
21#include "php_globals.h"
22#include "php_ini.h"
23
25PHPAPI char *expand_filepath(const char *filepath, char *real_path);
26PHPAPI char *expand_filepath_ex(const char *filepath, char *real_path, const char *relative_to, size_t relative_to_len);
27PHPAPI char *expand_filepath_with_mode(const char *filepath, char *real_path, const char *relative_to, size_t relative_to_len, int use_realpath);
28
29PHPAPI int php_check_open_basedir(const char *path);
30PHPAPI int php_check_open_basedir_ex(const char *path, int warn);
31PHPAPI int php_check_specific_open_basedir(const char *basedir, const char *path);
32
33/* OPENBASEDIR_CHECKPATH(filename) to ease merge between 6.x and 5.x */
34#define OPENBASEDIR_CHECKPATH(filename) php_check_open_basedir(filename)
35
37
38PHPAPI zend_string *php_resolve_path(const char *filename, size_t filename_len, const char *path);
39
40PHPAPI FILE *php_fopen_with_path(const char *filename, const char *mode, const char *path, zend_string **opened_path);
41
42PHPAPI char *php_strip_url_passwd(char *path);
43
44PHPAPI ZEND_INI_MH(OnUpdateBaseDir);
46
47#endif
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 char * php_strip_url_passwd(char *path)
PHPAPI int php_check_safe_mode_include_dir(const char *path)
PHPAPI int php_fopen_primary_script(zend_file_handle *file_handle)
PHPAPI int php_check_open_basedir(const char *path)
PHPAPI char * expand_filepath(const char *filepath, char *real_path)
PHPAPI int php_check_open_basedir_ex(const char *path, int warn)
PHPAPI FILE * php_fopen_with_path(const char *filename, const char *mode, const char *path, zend_string **opened_path)
PHPAPI int php_check_specific_open_basedir(const char *basedir, const char *path)
PHPAPI char * expand_filepath_ex(const char *filepath, char *real_path, const char *relative_to, size_t relative_to_len)
PHPAPI zend_string * php_resolve_path(const char *filename, size_t filename_len, const char *path)
char * mode
size_t filename_len
#define PHPAPI
Definition php.h:71
#define ZEND_INI_MH(name)
Definition zend_ini.h:30
struct _zend_file_handle zend_file_handle
struct _zend_string zend_string
#define END_EXTERN_C()
#define BEGIN_EXTERN_C()