Home
last modified time | relevance | path

Searched refs:path (Results 1 - 25 of 178) sorted by relevance

12345678

/php-7.4/Zend/
H A Dzend_virtual_cwd.h(last modified 15/07/2019 08:00)83 #define COPY_WHEN_ABSOLUTE(path) 2
84 #define IS_UNC_PATH(path, len) \
85 (len >= 2 && IS_SLASH(path[0]) && IS_SLASH(path[1]))
86 #define IS_ABSOLUTE_PATH(path, len) \
87 (len >= 2 && (/* is local */isalpha(path[0]) && path[1] == ':' || /* is UNC */IS_SLASH(path[0]) && IS_SLASH(path[1])))
109 #define COPY_WHEN_ABSOLUTE(path)
207 char *path; global() member
[all...]
H A Dzend_virtual_cwd.c(last modified 27/10/2020 08:00)308 static inline zend_ulong realpath_cache_key(const char *path, size_t path_len) /* {{{ */ in realpath_cache_key() argument
312 char *bucket_key_start = tsrm_win32_get_path_sid_key(path, path_len, &bucket_key_len); in realpath_cache_key()
325 if (bucket_key_start != path) { in realpath_cache_key()
332 static inline zend_ulong realpath_cache_key(const char *path, size_t path_len) /* {{{ */ in realpath_cache_key() argument
335 const char *e = path + path_len; in realpath_cache_key()
337 for (h = Z_UL(2166136261); path < e;) { in realpath_cache_key()
339 h ^= *path++; in realpath_cache_key()
364 CWD_API void realpath_cache_del(const char *path, size_t path_len) /* {{{ */ in realpath_cache_del() argument
366 zend_ulong key = realpath_cache_key(path, path_len); in realpath_cache_del()
372 memcmp(path, (*bucke in realpath_cache_del()
392 realpath_cache_add(const char *path, size_t path_len, const char *realpath, size_t realpath_len, int is_dir, time_t t) realpath_cache_add() argument
438 realpath_cache_find(const char *path, size_t path_len, time_t t) realpath_cache_find() argument
467 realpath_cache_lookup(const char *path, size_t path_len, time_t t) realpath_cache_lookup() argument
492 tsrm_realpath_r(char *path, size_t start, size_t len, int *ll, time_t *t, int use_realpath, int is_dir, int *link_is_dir) tsrm_realpath_r() argument
1009 virtual_file_ex(cwd_state *state, const char *path, verify_path_func verify_path, int use_realpath) virtual_file_ex() argument
1190 virtual_chdir(const char *path) virtual_chdir() argument
1196 virtual_chdir_file(const char *path, int (*p_chdir)(const char *path)) virtual_chdir_file() argument
1230 virtual_realpath(const char *path, char *real_path) virtual_realpath() argument
1267 virtual_filepath_ex(const char *path, char **filepath, verify_path_func verify_path) virtual_filepath_ex() argument
1282 virtual_filepath(const char *path, char **filepath) virtual_filepath() argument
1288 virtual_fopen(const char *path, const char *mode) virtual_fopen() argument
1424 virtual_open(const char *path, int flags, ...) virtual_open() argument
1460 virtual_creat(const char *path, mode_t mode) virtual_creat() argument
1515 virtual_stat(const char *path, zend_stat_t *buf) virtual_stat() argument
1533 virtual_lstat(const char *path, zend_stat_t *buf) virtual_lstat() argument
1551 virtual_unlink(const char *path) virtual_unlink() argument
1701 tsrm_realpath(const char *path, char *real_path) tsrm_realpath() argument
[all...]
/php-7.4/main/streams/
H A Dglob_wrapper.c(last modified 23/07/2019 08:00)42 char *path; member
52 if (pglob && pglob->path) { in _php_glob_stream_get_path()
56 return pglob->path; in _php_glob_stream_get_path()
102 static void php_glob_stream_path_split(glob_s_t *pglob, const char *path, int get_path, const char **p_file) /* {{{ */ in php_glob_stream_path_split() argument
104 const char *pos, *gpath = path; in php_glob_stream_path_split()
106 if ((pos = strrchr(path, '/')) != NULL) { in php_glob_stream_path_split()
107 path = pos+1; in php_glob_stream_path_split()
110 if ((pos = strrchr(path, '\\')) != NULL) { in php_glob_stream_path_split()
111 path = pos+1; in php_glob_stream_path_split()
115 *p_file = path; in php_glob_stream_path_split()
134 const char *path; php_glob_stream_read() local
199 php_glob_stream_opener(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) php_glob_stream_opener() argument
[all...]
H A Dmemory.c(last modified 23/07/2019 08:00)633 static php_stream * php_stream_url_wrap_rfc2397(php_stream_wrapper *wrapper, const char *path, in php_stream_url_wrap_rfc2397() argument
647 if (memcmp(path, "data:", 5)) { in php_stream_url_wrap_rfc2397()
651 path += 5; in php_stream_url_wrap_rfc2397()
652 dlen = strlen(path); in php_stream_url_wrap_rfc2397()
654 if (dlen >= 2 && path[0] == '/' && path[1] == '/') { in php_stream_url_wrap_rfc2397()
656 path += 2; in php_stream_url_wrap_rfc2397()
659 if ((comma = memchr(path, ',', dlen)) == NULL) { in php_stream_url_wrap_rfc2397()
664 if (comma != path) { in php_stream_url_wrap_rfc2397()
666 mlen = comma - path; in php_stream_url_wrap_rfc2397()
[all...]
H A Dstreams.c(last modified 22/09/2020 08:00)153 void php_stream_display_wrapper_errors(php_stream_wrapper *wrapper, const char *path, const char *caption) in php_stream_display_wrapper_errors() argument
164 tmp = estrdup(path); in php_stream_display_wrapper_errors()
1822 PHPAPI php_stream_wrapper *php_stream_locate_url_wrapper(const char *path, const char **path_for_open, int options) argument
1830 *path_for_open = (char*)path;
1837 for (p = path; isalnum((int)*p) || *p == '+' || *p == '-' || *p == '.'; p++) {
1841 if ((*p == ':') && (n > 1) && (!strncmp("//", p+1, 2) || (n == 4 && !memcmp("data:", path, 5)))) {
1842 protocol = path;
1874 if (!strncasecmp(path, "file://localhost/", 17)) {
1879 if (localhost == 0 && path[n+3] != '\0' && path[
1953 _php_stream_mkdir(const char *path, int mode, int options, php_stream_context *context) global() argument
1968 _php_stream_rmdir(const char *path, int options, php_stream_context *context) global() argument
1982 _php_stream_stat_path(const char *path, int flags, php_stream_statbuf *ssb, php_stream_context *context) global() argument
2033 _php_stream_opendir(const char *path, int options, php_stream_context *context STREAMS_DC) global() argument
2082 _php_stream_open_wrapper_ex(const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) global() argument
[all...]
/php-7.4/main/
H A Dfopen_wrappers.c(last modified 31/12/2019 08:00)134 PHPAPI int php_check_specific_open_basedir(const char *basedir, const char *path) argument
148 /* Else use the unmodified path */
152 path_len = strlen(path);
158 /* normalize and expand path */
159 if (expand_filepath(path, resolved_name) == NULL) {
176 /* put the real path into the path buffer */
192 /* none of the path components exist. definitely not in open_basedir.. */
240 /* Check the path */
267 /* Unable to resolve the real path, retur
273 php_check_open_basedir(const char *path) global() argument
280 php_check_open_basedir_ex(const char *path, int warn) global() argument
329 php_fopen_and_set_opened_path(const char *path, const char *mode, zend_string **opened_path) global() argument
473 php_resolve_path(const char *filename, size_t filename_length, const char *path) global() argument
626 php_fopen_with_path(const char *filename, const char *mode, const char *path, zend_string **opened_path) global() argument
[all...]
H A Dphp_streams.h(last modified 23/07/2019 08:00)68 #define php_stream_fopen_with_path_rel(filename, mode, path, opened, options) _php_stream_fopen_with_path((filename), (mode), (path), (opened), (options) STREAMS_REL_CC)
79 #define php_stream_open_wrapper_rel(path, mode, options, opened) _php_stream_open_wrapper_ex((path), (mode), (options), (opened), NULL STREAMS_REL_CC)
80 #define php_stream_open_wrapper_ex_rel(path, mode, options, opened, context) _php_stream_open_wrapper_ex((path), (mode), (options), (opened), (context) STREAMS_REL_CC)
350 PHPAPI int _php_stream_stat_path(const char *path, int flags, php_stream_statbuf *ssb, php_stream_context *context);
351 #define php_stream_stat_path(path, ssb) _php_stream_stat_path((path), 0, (ssb), NULL)
352 #define php_stream_stat_path_ex(path, flag
[all...]
/php-7.4/win32/
H A Dioutil.c(last modified 04/02/2020 08:00)189 PW32IO int php_win32_ioutil_open_w(const wchar_t *path, int flags, ...) in php_win32_ioutil_open_w() argument
196 PHP_WIN32_IOUTIL_CHECK_PATH_W(path, -1, 0) in php_win32_ioutil_open_w()
211 file = CreateFileW(path, in php_win32_ioutil_open_w()
225 /* specified, it means the path referred to a directory. */ in php_win32_ioutil_open_w()
288 PW32IO int php_win32_ioutil_mkdir_w(const wchar_t *path, mode_t mode) in php_win32_ioutil_mkdir_w() argument
293 if (!path) { in php_win32_ioutil_mkdir_w()
298 PHP_WIN32_IOUTIL_CHECK_PATH_W(path, -1, 0) in php_win32_ioutil_mkdir_w()
300 path_len = wcslen(path); in php_win32_ioutil_mkdir_w()
304 "When using an API to create a directory, the specified path cannot be in php_win32_ioutil_mkdir_w()
308 already needs to be a long path in php_win32_ioutil_mkdir_w()
370 php_win32_ioutil_unlink_w(const wchar_t *path) php_win32_ioutil_unlink_w() argument
441 php_win32_ioutil_rmdir_w(const wchar_t *path) php_win32_ioutil_rmdir_w() argument
456 php_win32_ioutil_chdir_w(const wchar_t *path) php_win32_ioutil_chdir_w() argument
523 php_win32_ioutil_dirname(char *path, size_t len) php_win32_ioutil_dirname() argument
669 php_win32_ioutil_access_w(const wchar_t *path, mode_t mode) php_win32_ioutil_access_w() argument
697 php_win32_ioutil_fopen_w(const wchar_t *path, const wchar_t *mode) php_win32_ioutil_fopen_w() argument
772 php_win32_ioutil_realpath_w(const wchar_t *path, wchar_t *resolved) php_win32_ioutil_realpath_w() argument
777 php_win32_ioutil_realpath_w_ex0(const wchar_t *path, wchar_t *resolved, PBY_HANDLE_FILE_INFORMATION info) php_win32_ioutil_realpath_w_ex0() argument
817 realpath(const char *path, char *resolved) realpath() argument
975 php_win32_ioutil_stat_ex_w(const wchar_t *path, size_t path_len, php_win32_ioutil_stat_t *buf, int lstat) php_win32_ioutil_stat_ex_w() argument
1145 php_win32_ioutil_readlink_w(const wchar_t *path, wchar_t *buf, size_t buf_len) php_win32_ioutil_readlink_w() argument
[all...]
H A Dioutil.h(last modified 17/07/2020 08:00)145 #define PHP_WIN32_IOUTIL_INIT_W(path) \
146 wchar_t *pathw = php_win32_ioutil_any_to_w(path); \
153 #define PHP_WIN32_IOUTIL_REINIT_W(path) do { \
155 pathw = php_win32_ioutil_any_to_w(path); \
267 PW32IO int php_win32_ioutil_open_w(const wchar_t *path, int flags, ...);
268 PW32IO int php_win32_ioutil_chdir_w(const wchar_t *path);
271 PW32IO int php_win32_ioutil_unlink_w(const wchar_t *path);
272 PW32IO int php_win32_ioutil_access_w(const wchar_t *path, mode_t mode);
273 PW32IO int php_win32_ioutil_mkdir_w(const wchar_t *path, mode_t mode);
274 PW32IO FILE *php_win32_ioutil_fopen_w(const wchar_t *path, cons
280 php_win32_ioutil_access(const char *path, mode_t mode) php_win32_ioutil_access() argument
305 php_win32_ioutil_open(const char *path, int flags, ...) php_win32_ioutil_open() argument
340 php_win32_ioutil_unlink(const char *path) php_win32_ioutil_unlink() argument
364 php_win32_ioutil_rmdir(const char *path) php_win32_ioutil_rmdir() argument
559 php_win32_ioutil_mkdir(const char *path, mode_t mode) php_win32_ioutil_mkdir() argument
638 php_win32_ioutil_realpath_ex0(const char *path, char *resolved, PBY_HANDLE_FILE_INFORMATION info) php_win32_ioutil_realpath_ex0() argument
683 php_win32_ioutil_realpath(const char *path, char *resolved) php_win32_ioutil_realpath() argument
747 php_win32_ioutil_stat_ex(const char *path, php_win32_ioutil_stat_t *buf, int lstat) php_win32_ioutil_stat_ex() argument
769 php_win32_ioutil_readlink(const char *path, char *buf, size_t buf_len) php_win32_ioutil_readlink() argument
[all...]
H A Dregistry.c(last modified 13/02/2019 23:05)78 static int LoadDirectory(HashTable *directories, HKEY key, char *path, int path_len, HashTable *parent_ht) in LoadDirectory() argument
125 zend_hash_str_update_mem(directories, path, path_len, ht, sizeof(HashTable)); in LoadDirectory()
150 memcpy(new_path, path, path_len); in LoadDirectory()
182 void UpdateIniFromRegistry(char *path) in UpdateIniFromRegistry() argument
187 if(!path) { in UpdateIniFromRegistry()
218 orig_path = path = estrdup(path); in UpdateIniFromRegistry()
221 p = strchr(path, ':'); in UpdateIniFromRegistry()
223 *p = path[0]; /* replace the colon with the drive letter */ in UpdateIniFromRegistry()
224 path in UpdateIniFromRegistry()
[all...]
/php-7.4/ext/phar/
H A Ddirstream.c(last modified 23/07/2019 08:00)177 * files in a phar and retrieving its relative path. From this, construct
227 /* the entry has a path separator and is a subdirectory */ in phar_make_dirstream()
257 save += dirlen + 1; /* seek to just past the path separator */ in phar_make_dirstream()
303 php_stream *phar_wrapper_open_dir(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) /* {{{ */ in phar_wrapper_open_dir() argument
314 if ((resource = phar_parse_url(wrapper, path, mode, options)) == NULL) { in phar_wrapper_open_dir()
315 php_stream_wrapper_log_error(wrapper, options, "phar url \"%s\" is unknown", path); in phar_wrapper_open_dir()
320 if (!resource->scheme || !resource->host || !resource->path) { in phar_wrapper_open_dir()
321 if (resource->host && !resource->path) { in phar_wrapper_open_dir()
322 php_stream_wrapper_log_error(wrapper, options, "phar error: no directory in \"%s\", must have at least phar://%s/ for root directory (always use full path to a new phar)", path, ZSTR_VA in phar_wrapper_open_dir()
[all...]
H A Dutil.c(last modified 24/07/2019 08:00)165 /* mount an absolute path or uri to a path internal to the phar archive */
166 int phar_mount_entry(phar_archive_data *phar, char *filename, size_t filename_len, char *path, size_t path_len) /* {{{ */ in phar_mount_entry() argument
173 if (phar_path_check(&path, &path_len, &err) > pcr_is_ok) { in phar_mount_entry()
177 if (path_len >= sizeof(".phar")-1 && !memcmp(path, ".phar", sizeof(".phar")-1)) { in phar_mount_entry()
185 entry.filename = estrndup(path, path_len); in phar_mount_entry()
245 char *path, *fname, *arch, *entry, *test; in phar_find_in_include_path() local
308 spprintf(&path, MAXPATHLEN + 1 + strlen(PG(include_path)), "phar://%s/%s%c%s", arch, PHAR_G(cwd), DEFAULT_DIR_SEPARATOR, PG(include_path)); in phar_find_in_include_path()
310 ret = php_resolve_path(filename, filename_len, path); in phar_find_in_include_path()
311 efree(path); in phar_find_in_include_path()
341 phar_get_entry_data(phar_entry_data **ret, char *fname, size_t fname_len, char *path, size_t path_len, const char *mode, char allow_dir, char **error, int security) phar_get_entry_data() argument
507 phar_get_or_create_entry_data(char *fname, size_t fname_len, char *path, size_t path_len, const char *mode, char allow_dir, char **error, int security) phar_get_or_create_entry_data() argument
1198 phar_get_entry_info(phar_archive_data *phar, char *path, size_t path_len, char **error, int security) phar_get_entry_info() argument
1208 phar_get_entry_info_dir(phar_archive_data *phar, char *path, size_t path_len, char dir, char **error, int security) phar_get_entry_info_dir() argument
[all...]
H A Dstream.c(last modified 23/07/2019 08:00)78 php_stream_wrapper_log_error(wrapper, options, "phar error: no directory in \"%s\", must have at least phar://%s/ for root directory (always use full path to a new phar)", filename, arch); in phar_parse_url()
90 resource->path = zend_string_init(entry, entry_len, 0); in phar_parse_url()
101 fprintf(stderr, "Path: %s\n", ZSTR_VAL(resource->path)); in phar_parse_url()
161 static php_stream * phar_wrapper_open_url(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) /* {{{ */ in phar_wrapper_open_url() argument
173 if ((resource = phar_parse_url(wrapper, path, mode, options)) == NULL) { in phar_wrapper_open_url()
178 if (!resource->scheme || !resource->host || !resource->path) { in phar_wrapper_open_url()
180 php_stream_wrapper_log_error(wrapper, options, "phar error: invalid url \"%s\"", path); in phar_wrapper_open_url()
186 php_stream_wrapper_log_error(wrapper, options, "phar error: not a phar stream url \"%s\"", path); in phar_wrapper_open_url()
194 internal_file = estrndup(ZSTR_VAL(resource->path) + 1, ZSTR_LEN(resource->path) in phar_wrapper_open_url()
[all...]
/php-7.4/ext/standard/
H A Dhead.c(last modified 29/01/2020 08:00)79 PHPAPI int php_setcookie(zend_string *name, zend_string *value, time_t expires, zend_string *path, zend_string *domain, int secure, int httponly, zend_string *samesite, int url_encode) in php_setcookie() argument
100 if (path && strpbrk(ZSTR_VAL(path), ",; \t\r\n\013\014") != NULL) { /* man isspace for \013 and \014 */ in php_setcookie()
162 if (path && ZSTR_LEN(path)) { in php_setcookie()
164 smart_str_append(&buf, path); in php_setcookie()
189 static void php_head_parse_cookie_options_array(zval *options, zend_long *expires, zend_string **path, zend_string **domain, zend_bool *secure, zend_bool *httponly, zend_string **samesite) { in php_head_parse_cookie_options_array() argument
199 } else if (zend_string_equals_literal_ci(key, "path")) { in php_head_parse_cookie_options_array()
200 *path = zval_get_string(value); in php_head_parse_cookie_options_array()
228 /* {{{ proto bool setcookie(string name [, string value [, int expires [, string path [, strin
234 zend_string *name, *value = NULL, *path = NULL, *domain = NULL, *samesite = NULL; PHP_FUNCTION() local
289 zend_string *name, *value = NULL, *path = NULL, *domain = NULL, *samesite = NULL; PHP_FUNCTION() local
[all...]
H A Dftp_fopen_wrapper.c(last modified 23/07/2019 08:00)131 static php_stream *php_ftp_fopen_connect(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, in php_ftp_fopen_connect() argument
142 resource = php_url_parse(path); in php_ftp_fopen_connect()
143 if (resource == NULL || resource->path == NULL) { in php_ftp_fopen_connect()
413 php_stream * php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, const char *path, const char *mode, in php_stream_url_wrap_ftp() argument
458 return php_stream_url_wrap_http(wrapper, path, mode, options, opened_path, context STREAMS_CC); in php_stream_url_wrap_ftp()
466 stream = php_ftp_fopen_connect(wrapper, path, mode, options, opened_path, context, &reuseid, &resource, &use_ssl, &use_ssl_on_data); in php_stream_url_wrap_ftp()
478 php_stream_printf(stream, "SIZE %s\r\n", ZSTR_VAL(resource->path)); in php_stream_url_wrap_ftp()
507 php_stream_printf(stream, "DELE %s\r\n", ZSTR_VAL(resource->path)); in php_stream_url_wrap_ftp()
551 php_stream_printf(stream, "%s %s\r\n", tmp_line, (resource->path != NULL ? ZSTR_VAL(resource->path) in php_stream_url_wrap_ftp()
693 php_stream_ftp_opendir(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) php_stream_ftp_opendir() argument
[all...]
H A Dphp_fopen_wrapper.c(last modified 09/10/2019 08:00)178 php_stream * php_stream_url_wrap_php(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, in php_stream_url_wrap_php() argument
191 if (!strncasecmp(path, "php://", 6)) { in php_stream_url_wrap_php()
192 path += 6; in php_stream_url_wrap_php()
195 if (!strncasecmp(path, "temp", 4)) { in php_stream_url_wrap_php()
196 path += 4; in php_stream_url_wrap_php()
198 if (!strncasecmp(path, "/maxmemory:", 11)) { in php_stream_url_wrap_php()
199 path += 11; in php_stream_url_wrap_php()
200 max_memory = ZEND_STRTOL(path, NULL, 10); in php_stream_url_wrap_php()
210 if (!strcasecmp(path, "memory")) { in php_stream_url_wrap_php()
215 if (!strcasecmp(path, "outpu in php_stream_url_wrap_php()
[all...]
/php-7.4/ext/zip/
H A Dzip_stream.c(last modified 23/07/2019 08:00)128 const char *path = stream->orig_path; in php_zip_ops_stat() local
137 fragment = strchr(path, '#'); in php_zip_ops_stat()
143 if (strncasecmp("zip://", path, 6) == 0) { in php_zip_ops_stat()
144 path += 6; in php_zip_ops_stat()
152 path_len = strlen(path); in php_zip_ops_stat()
157 memcpy(file_dirname, path, path_len - fragment_len); in php_zip_ops_stat()
160 file_basename = php_basename((char *)path, path_len - fragment_len, NULL, 0); in php_zip_ops_stat()
178 if (path[path_len-1] != '/') { in php_zip_ops_stat()
213 php_stream *php_stream_zip_open(const char *filename, const char *path, const char *mode STREAMS_DC) in php_stream_zip_open() argument
237 zf = zip_fopen(stream_za, path, in php_stream_zip_open()
262 php_stream_zip_opener(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) php_stream_zip_opener() argument
[all...]
/php-7.4/sapi/litespeed/
H A Dlsapi_main.c(last modified 24/07/2020 08:00)61 * the path starting from doc_root through to dirname(PATH_TRANSLATED). There is no point
554 char *path, *server_name; in sapi_lsapi_activate() local
575 /* Prepare search path */ in sapi_lsapi_activate()
580 path = emalloc(path_len + 2); in sapi_lsapi_activate()
581 memcpy(path, SG(request_info).path_translated, path_len + 1); in sapi_lsapi_activate()
582 path_len = zend_dirname(path, path_len); in sapi_lsapi_activate()
583 path[path_len++] = DEFAULT_SLASH; in sapi_lsapi_activate()
585 path = estrndup(SG(request_info).path_translated, path_len); in sapi_lsapi_activate()
586 path_len = zend_dirname(path, path_len); in sapi_lsapi_activate()
588 path[path_le in sapi_lsapi_activate()
852 pathlen_without_trailing_slash(char *path) pathlen_without_trailing_slash() argument
918 char *path; global() member
956 char *path; lsapi_activate_user_ini_mk_path() local
[all...]
/php-7.4/sapi/fpm/fpm/
H A Dfpm_main.c(last modified 21/04/2020 08:00)163 * the path starting from doc_root through to dirname(PATH_TRANSLATED). There is no point
623 static void php_cgi_ini_activate_user_config(char *path, int path_len, const char *doc_root, int doc_root_len) in php_cgi_ini_activate_user_config() argument
627 user_config_cache_entry *entry = zend_hash_str_find_ptr(&CGIG(user_config_cache), path, path_len); in php_cgi_ini_activate_user_config()
635 zend_hash_str_update_ptr(&CGIG(user_config_cache), path, path_len, entry); in php_cgi_ini_activate_user_config() local
648 if (!IS_ABSOLUTE_PATH(path, path_len)) { in php_cgi_ini_activate_user_config()
649 real_path = tsrm_realpath(path, NULL); in php_cgi_ini_activate_user_config()
654 path = real_path; in php_cgi_ini_activate_user_config()
660 s2 = path; in php_cgi_ini_activate_user_config()
663 s1 = path; in php_cgi_ini_activate_user_config()
668 /* we have to test if path i in php_cgi_ini_activate_user_config()
695 char *path, *doc_root, *server_name; sapi_cgi_activate() local
862 is_valid_path(const char *path) is_valid_path() argument
[all...]
H A Dfpm_conf.c(last modified 01/10/2019 08:00)142 { "ping.path", &fpm_conf_set_string, WPO(ping_path) },
165 static int fpm_conf_is_dir(char *path) /* {{{ */ in fpm_conf_is_dir() argument
169 if (stat(path, &sb) != 0) { in fpm_conf_is_dir()
689 static int fpm_evaluate_full_path(char **path, struct fpm_worker_pool_s *wp, char *default_prefix, int expand) /* {{{ */ in fpm_evaluate_full_path() argument
694 if (!path || !*path || **path == '/') { in fpm_evaluate_full_path()
714 tmp = strstr(*path, "$prefix"); in fpm_evaluate_full_path()
717 if (tmp != *path) { in fpm_evaluate_full_path()
722 if (strlen(*path) > strle in fpm_evaluate_full_path()
[all...]
/php-7.4/build/
H A Dshtool(last modified 13/02/2019 23:05)45 ## path Deal with program paths
112 echo ' <sed-cmd>] <file> [<file> ...] <path>'
120 echo ' path [-s|--suppress] [-r|--reverse] [-d|--dirname] [-b|--basename]'
121 echo ' [-m|--magic] [-p|--path <path>] <str> [<str> ...]'
125 echo ' [-f|--field-sep <str>] [-o|--order <spec>] <path>'
131 echo ' mkln [-t|--trace] [-f|--force] [-s|--symbolic] <src-path>'
132 echo ' [<src-path> ...] <dst-path>'
134 echo ' fixperm [-v|--verbose] [-t|--trace] <path> [<pat
[all...]
/php-7.4/ext/spl/
H A Dspl_directory.c(last modified 22/06/2020 08:00)217 char *path = spl_filesystem_object_get_path(intern, &path_len); in spl_filesystem_object_get_file_name() local
221 /* if there is parent path, ammend it, otherwise just use the given path as is */ in spl_filesystem_object_get_file_name()
227 &intern->file_name, 0, "%s%c%s", path, slash, intern->u.dir.entry.d_name); in spl_filesystem_object_get_file_name()
255 static void spl_filesystem_dir_open(spl_filesystem_object* intern, char *path) in spl_filesystem_dir_open() argument
260 intern->_path_len = strlen(path); in spl_filesystem_dir_open()
261 intern->u.dir.dirp = php_stream_opendir(path, REPORT_ERRORS, FG(default_context)); in spl_filesystem_dir_open()
263 if (intern->_path_len > 1 && IS_SLASH_AT(path, intern->_path_len-1)) { in spl_filesystem_dir_open()
264 intern->_path = estrndup(path, --intern->_path_len); in spl_filesystem_dir_open()
266 intern->_path = estrndup(path, inter in spl_filesystem_dir_open()
401 spl_filesystem_info_set_filename(spl_filesystem_object *intern, char *path, size_t len, size_t use_copy) spl_filesystem_info_set_filename() argument
608 char *path; spl_filesystem_object_get_debug_info() local
700 char *path; spl_filesystem_object_construct() local
884 char *path; SPL_METHOD() local
1054 char *path; SPL_METHOD() local
1134 char *path; SPL_METHOD() local
1410 char *path = spl_filesystem_object_get_pathname(intern, &path_len); SPL_METHOD() local
[all...]
/php-7.4/win32/build/
H A Dconfutils.js(last modified 20/11/2020 08:00)174 function condense_path(path)
176 path = FSO.GetAbsolutePathName(path);
178 if (path.substr(0, CWD.length).toLowerCase()
180 (path.charCodeAt(CWD.length) == 92 || path.charCodeAt(CWD.length) == 47)) {
181 return path.substr(CWD.length + 1);
185 var b = path.split("\\");
193 path = "";
195 path
[all...]
/php-7.4/sapi/cgi/
H A Dcgi_main.c(last modified 13/05/2020 08:00)182 * the path starting from doc_root through to dirname(PATH_TRANSLATED). There is no point
212 #define TRANSLATE_SLASHES(path) \
214 char *tmp = path; \
221 #define TRANSLATE_SLASHES(path)
784 static void php_cgi_ini_activate_user_config(char *path, size_t path_len, const char *doc_root, size_t doc_root_len) argument
790 if ((entry = zend_hash_str_find_ptr(&CGIG(user_config_cache), path, path_len)) == NULL) {
795 entry = zend_hash_str_update_ptr(&CGIG(user_config_cache), path, path_len, new_entry);
807 if (!IS_ABSOLUTE_PATH(path, path_len)) {
809 real_path = tsrm_realpath(path, NULL);
814 path
894 char *path; global() local
1067 is_valid_path(const char *path) global() argument
[all...]
/php-7.4/ext/ftp/
H A Dftp.h(last modified 13/02/2019 23:05)151 /* returns a NULL-terminated array of filenames in the given path
155 char** ftp_nlist(ftpbuf_t *ftp, const char *path, const size_t path_len);
158 * LIST command for the given path or NULL on error. the return
162 char** ftp_list(ftpbuf_t *ftp, const char *path, const size_t path_len, int recursive);
170 * MLSD command for the given path or NULL on error. the return
174 char** ftp_mlsd(ftpbuf_t *ftp, const char *path, const size_t path_len);
184 int ftp_get(ftpbuf_t *ftp, php_stream *outstream, const char *path, const size_t path_len, ftptype_t type, zend_long resumepos);
189 int ftp_put(ftpbuf_t *ftp, const char *path, const size_t path_len, php_stream *instream, ftptype_t type, zend_long startpos);
194 int ftp_append(ftpbuf_t *ftp, const char *path, const size_t path_len, php_stream *instream, ftptype_t type);
197 zend_long ftp_size(ftpbuf_t *ftp, const char *path, cons
[all...]

Completed in 119 milliseconds

12345678