Home
last modified time | relevance | path

Searched refs:path_len (Results 1 – 25 of 28) sorted by relevance

12

/PHP-7.0/win32/
H A Dregistry.c149 if (path_len) { in LoadDirectory()
154 name_len += path_len+1; in LoadDirectory()
185 int path_len; in UpdateIniFromRegistry() local
252 path_len = 0; in UpdateIniFromRegistry()
253 while (path[path_len] != 0) { in UpdateIniFromRegistry()
255 path[path_len] = '/'; in UpdateIniFromRegistry()
257 path_len++; in UpdateIniFromRegistry()
261 while (path_len > 0) { in UpdateIniFromRegistry()
274 path_len--; in UpdateIniFromRegistry()
275 } while (path_len > 0 && path[path_len] != '/'); in UpdateIniFromRegistry()
[all …]
H A Dwinutil.c37 int php_win32_check_trailing_space(const char * path, const int path_len) { in php_win32_check_trailing_space() argument
38 if (path_len < 1) { in php_win32_check_trailing_space()
42 if (path[0] == ' ' || path[path_len - 1] == ' ') { in php_win32_check_trailing_space()
H A Dwinutil.h22 int php_win32_check_trailing_space(const char * path, const int path_len);
/PHP-7.0/ext/zip/
H A Dzip_stream.c127 size_t path_len = strlen(stream->orig_path); in php_zip_ops_stat() local
150 path_len = strlen(path); in php_zip_ops_stat()
151 if (path_len >= MAXPATHLEN) { in php_zip_ops_stat()
155 memcpy(file_dirname, path, path_len - fragment_len); in php_zip_ops_stat()
156 file_dirname[path_len - fragment_len] = '\0'; in php_zip_ops_stat()
176 if (path[path_len-1] != '/') { in php_zip_ops_stat()
267 size_t path_len; in php_stream_zip_opener() local
295 path_len = strlen(path); in php_stream_zip_opener()
296 if (path_len >= MAXPATHLEN || mode[0] != 'r') { in php_stream_zip_opener()
300 memcpy(file_dirname, path, path_len - fragment_len); in php_stream_zip_opener()
[all …]
H A Dphp_zip.c68 #define PHP_ZIP_STAT_PATH(za, path, path_len, flags, sb) \ argument
69 if (path_len < 1) { \
95 static char * php_zip_make_relative_path(char *path, size_t path_len) /* {{{ */ in php_zip_make_relative_path() argument
100 if (path_len < 1 || path == NULL) { in php_zip_make_relative_path()
108 i = path_len; in php_zip_make_relative_path()
610 if (!IS_ABSOLUTE_PATH(path, path_len)) { in php_zip_pcre()
660 if ((path_len + namelist_len + 1) >= MAXPATHLEN) { in php_zip_pcre()
662 MAXPATHLEN - 1, (path_len + namelist_len + 1)); in php_zip_pcre()
1629 size_t add_path_len, remove_path_len = 0, path_len = 1; in php_zip_add_from_pattern() local
1649 &pattern, &path, &path_len, &options) == FAILURE) { in php_zip_add_from_pattern()
[all …]
/PHP-7.0/main/
H A Dfopen_wrappers.c147 size_t path_len; local
156 path_len = strlen(path);
157 if (path_len > (MAXPATHLEN - 1)) {
167 path_len = strlen(resolved_name);
201 if (path_len > 1 && path_tmp[path_len - 2] == ':') {
202 if (path_len != 3) {
206 path_tmp[path_len] = '\0';
208 path_tmp[path_len - 1] = '\0';
211 path_tmp[path_len - 1] = '\0';
769 int path_len; local
[all …]
H A Dphp_ini.c804 PHPAPI void php_ini_activate_per_dir_config(char *path, size_t path_len) argument
815 if (path_len >= MAXPATHLEN) {
817 if (path_len > MAXPATHLEN) {
823 memcpy(path_bak, path, path_len);
824 path_bak[path_len] = 0;
830 if (has_per_dir_config && path && path_len) {
H A Dphp_ini.h40 PHPAPI void php_ini_activate_per_dir_config(char *path, size_t path_len);
H A Dfastcgi.c742 int path_len = strlen(path); in fcgi_listen()
744 if (path_len >= sizeof(sa.sa_unix.sun_path)) { in fcgi_listen()
751 memcpy(sa.sa_unix.sun_path, path, path_len + 1); in fcgi_listen()
752 sock_len = (size_t)(((struct sockaddr_un *)0)->sun_path) + path_len; in fcgi_listen()
/PHP-7.0/ext/phar/
H A Dutil.c189 entry.filename = estrndup(path, path_len); in phar_mount_entry()
193 entry.filename_len = path_len; in phar_mount_entry()
382 if (!path_len) { in phar_get_entry_data()
530 is_dir = (path_len && path[path_len - 1] == '/') ? 1 : 0; in phar_get_or_create_entry_data()
561 etemp.filename_len = path_len; in phar_get_or_create_entry_data()
583 path_len--; in phar_get_or_create_entry_data()
1229 is_dir = (path_len && (path[path_len - 1] == '/')) ? 1 : 0; in phar_get_entry_info_dir()
1242 if (!path_len && !dir) { in phar_get_entry_info_dir()
1261 if (!path_len || path_len == 1) { in phar_get_entry_info_dir()
1264 path_len--; in phar_get_entry_info_dir()
[all …]
H A Ddirstream.c554 uint path_len; in phar_wrapper_rmdir() local
600 path_len = strlen(resource->path+1); in phar_wrapper_rmdir()
602 if (!(entry = phar_get_entry_info_dir(phar, resource->path + 1, path_len, 2, &error, 1))) { in phar_wrapper_rmdir()
618 if (ZSTR_LEN(str_key) > path_len && in phar_wrapper_rmdir()
619 memcmp(ZSTR_VAL(str_key), resource->path+1, path_len) == 0 && in phar_wrapper_rmdir()
620 IS_SLASH(ZSTR_VAL(str_key)[path_len])) { in phar_wrapper_rmdir()
635 if (ZSTR_LEN(str_key) > path_len && in phar_wrapper_rmdir()
636 memcmp(ZSTR_VAL(str_key), resource->path+1, path_len) == 0 && in phar_wrapper_rmdir()
637 IS_SLASH(ZSTR_VAL(str_key)[path_len])) { in phar_wrapper_rmdir()
650 zend_hash_str_del(&phar->virtual_dirs, resource->path+1, path_len); in phar_wrapper_rmdir()
H A Dphar_internal.h501 static inline void phar_unixify_path_separators(char *path, int path_len) in phar_unixify_path_separators() argument
506 for (s = path; s - path < path_len; ++s) { in phar_unixify_path_separators()
565 …r_mount_entry(phar_archive_data *phar, char *filename, int filename_len, char *path, int path_len);
603 phar_entry_info *phar_get_entry_info(phar_archive_data *phar, char *path, int path_len, char **erro…
604 phar_entry_info *phar_get_entry_info_dir(phar_archive_data *phar, char *path, int path_len, char di…
605 phar_entry_data *phar_get_or_create_entry_data(char *fname, int fname_len, char *path, int path_len
606 int phar_get_entry_data(phar_entry_data **ret, char *fname, int fname_len, char *path, int path_len
/PHP-7.0/main/streams/
H A Dglob_wrapper.c45 size_t path_len; member
56 *plen = pglob->path_len; in _php_glob_stream_get_path()
59 return estrndup(pglob->path, pglob->path_len); in _php_glob_stream_get_path()
134 pglob->path_len = path - gpath; in php_glob_stream_path_split()
135 pglob->path = estrndup(gpath, pglob->path_len); in php_glob_stream_path_split()
/PHP-7.0/Zend/
H A Dzend_virtual_cwd.c309 const size_t path_len = strlen(path); in php_sys_stat_ex() local
316 if (path_len >= 1 && path[1] == ':') { in php_sys_stat_ex()
322 } else if (IS_UNC_PATH(path, path_len)) { in php_sys_stat_ex()
632 const char *e = path + path_len; in realpath_cache_key()
668 if (key == (*bucket)->key && path_len == (*bucket)->path_len && in realpath_cache_del()
694 if (realpath_len != path_len || in realpath_cache_add()
695 memcmp(path, realpath, path_len) != 0) { in realpath_cache_add()
710 memcpy(bucket->path, path, path_len+1); in realpath_cache_add()
711 bucket->path_len = path_len; in realpath_cache_add()
753 } else if (key == (*bucket)->key && path_len == (*bucket)->path_len && in realpath_cache_find()
[all …]
H A Dzend_virtual_cwd.h219 int path_len; member
247 CWD_API void realpath_cache_del(const char *path, int path_len);
248 CWD_API realpath_cache_bucket* realpath_cache_lookup(const char *path, int path_len, time_t t);
/PHP-7.0/sapi/fpm/fpm/
H A Dfpm_php.c234 size_t path_len; in fpm_php_limit_extensions() local
241 path_len = strlen(path); in fpm_php_limit_extensions()
244 if (path_len > ext_len) { in fpm_php_limit_extensions()
245 char *path_ext = path + path_len - ext_len; in fpm_php_limit_extensions()
H A Dfpm_main.c695 if (!IS_ABSOLUTE_PATH(path, path_len)) {
702 path_len = real_path_len;
705 if (path_len > doc_root_len) {
712 s_len = path_len;
747 uint path_len, doc_root_len, server_name_len; local
771 path_len = strlen(SG(request_info).path_translated);
775 path = emalloc(path_len + 2);
777 path_len = zend_dirname(path, path_len);
778 path[path_len++] = DEFAULT_SLASH;
781 path_len = zend_dirname(path, path_len);
[all …]
/PHP-7.0/ext/spl/
H A Dspl_directory.c585 size_t path_len; in spl_filesystem_object_get_debug_info() local
606 if (path_len && path_len < intern->file_name_len) { in spl_filesystem_object_get_debug_info()
864 size_t path_len; in SPL_METHOD() local
880 size_t path_len; in SPL_METHOD() local
888 if (path_len && path_len < intern->file_name_len) { in SPL_METHOD()
918 size_t path_len; in SPL_METHOD() local
928 if (path_len && path_len < intern->file_name_len) { in SPL_METHOD()
993 if (path_len && path_len < intern->file_name_len) { in SPL_METHOD()
1030 size_t path_len; in SPL_METHOD() local
1381 size_t path_len; in SPL_METHOD() local
[all …]
/PHP-7.0/sapi/cgi/
H A Dcgi_main.c759 if (!IS_ABSOLUTE_PATH(path, path_len)) {
766 path_len = real_path_len;
769 if (path_len > doc_root_len) {
776 s_len = path_len;
813 size_t path_len, doc_root_len, server_name_len; local
843 path_len = strlen(SG(request_info).path_translated);
847 path = emalloc(path_len + 2);
849 path_len = zend_dirname(path, path_len);
850 path[path_len++] = DEFAULT_SLASH;
853 path_len = zend_dirname(path, path_len);
[all …]
/PHP-7.0/sapi/litespeed/
H A Dlsapi_main.c650 uint path_len; member
692 ctx->path_len = strlen(ctx->path); in lsapi_activate_user_ini_mk_path()
693 path = ctx->path = estrndup(SG(request_info).path_translated, ctx->path_len); in lsapi_activate_user_ini_mk_path()
696 ctx->path_len = zend_dirname(path, ctx->path_len); in lsapi_activate_user_ini_mk_path()
714 if (!IS_ABSOLUTE_PATH(ctx->path, ctx->path_len)) { in lsapi_activate_user_ini_mk_realpath()
720 ctx->path_len = strlen(ctx->path); in lsapi_activate_user_ini_mk_realpath()
742 ctx->entry = zend_hash_str_find_ptr(&user_config_cache, ctx->path, ctx->path_len); in lsapi_activate_user_ini_mk_user_config()
753 ctx->path_len, ctx->entry); in lsapi_activate_user_ini_mk_user_config()
790 ctx->path_len < docroot_len || in lsapi_activate_user_ini_walk_down_the_path()
/PHP-7.0/sapi/phpdbg/
H A Dphpdbg_bp.h129 PHPDBG_API void phpdbg_set_breakpoint_file_ex(const char* filename, size_t path_len, long lineno);
H A Dphpdbg_bp.c245 PHPDBG_API void phpdbg_set_breakpoint_file_ex(const char *path, size_t path_len, long line_num) /* … in phpdbg_set_breakpoint_file_ex() argument
256 if (!path_len) { in phpdbg_set_breakpoint_file_ex()
261 path_len = strlen(path); in phpdbg_set_breakpoint_file_ex()
263 …mpiled: %d\n", original_path, path, zend_hash_str_exists(&PHPDBG_G(file_sources), path, path_len)); in phpdbg_set_breakpoint_file_ex()
265 if (!zend_hash_str_exists(&PHPDBG_G(file_sources), path, path_len)) { in phpdbg_set_breakpoint_file_ex()
274 path_len = strlen(path); in phpdbg_set_breakpoint_file_ex()
284 path_str = zend_string_init(path, path_len, 0); in phpdbg_set_breakpoint_file_ex()
295 new_break.filename = estrndup(path, path_len); in phpdbg_set_breakpoint_file_ex()
/PHP-7.0/ext/standard/
H A Dfilestat.c224 size_t path_len; in PHP_FUNCTION() local
226 if (zend_parse_parameters(ZEND_NUM_ARGS(), "p", &path, &path_len) == FAILURE) { in PHP_FUNCTION()
359 size_t path_len; in PHP_FUNCTION() local
361 if (zend_parse_parameters(ZEND_NUM_ARGS(), "p", &path, &path_len) == FAILURE) { in PHP_FUNCTION()
1225 zend_hash_str_update(Z_ARRVAL_P(return_value), bucket->path, bucket->path_len, &entry); in PHP_FUNCTION()
/PHP-7.0/ext/posix/
H A Dposix.c899 size_t path_len; in PHP_FUNCTION() local
903 if (zend_parse_parameters(ZEND_NUM_ARGS(), "pl", &path, &path_len, &mode) == FAILURE) { in PHP_FUNCTION()
928 size_t path_len; in PHP_FUNCTION() local
936 if (zend_parse_parameters(ZEND_NUM_ARGS(), "pl|ll", &path, &path_len, in PHP_FUNCTION()
/PHP-7.0/ext/pcntl/
H A Dpcntl.c866 size_t path_len; in PHP_FUNCTION() local
869 if (zend_parse_parameters(ZEND_NUM_ARGS(), "p|aa", &path, &path_len, &args, &envs) == FAILURE) { in PHP_FUNCTION()

Completed in 90 milliseconds

12