Searched refs:path_len (Results 1 - 25 of 26) sorted by relevance

12

/PHP_TRUNK/main/
H A Dphp_ini.h40 PHPAPI void php_ini_activate_per_dir_config(char *path, size_t path_len);
H A Dfastcgi.c735 int path_len = strlen(path);
737 if (path_len >= sizeof(sa.sa_unix.sun_path)) {
744 memcpy(sa.sa_unix.sun_path, path, path_len + 1);
745 sock_len = (size_t)(((struct sockaddr_un *)0)->sun_path) + path_len;
H A Dfopen_wrappers.c147 int path_len; local
156 path_len = (int)strlen(path);
157 if (path_len > (MAXPATHLEN - 1)) {
167 path_len = (int)strlen(resolved_name);
168 memcpy(path_tmp, resolved_name, path_len + 1); /* safe */
199 path_len = path_file - path_tmp + 1;
201 if (path_len > 1 && path_tmp[path_len - 2] == ':') {
202 if (path_len != 3) {
206 path_tmp[path_len]
409 int path_len = (int)strlen(path_info); local
761 int path_len; local
[all...]
H A Dphp_ini.c801 PHPAPI void php_ini_activate_per_dir_config(char *path, size_t path_len) argument
811 /* MAX_PATH is \0-terminated, path_len == MAXPATHLEN would overrun path_bak */
812 if (path_len >= MAXPATHLEN) {
814 if (path_len > MAXPATHLEN) {
820 memcpy(path_bak, path, path_len);
821 path_bak[path_len] = 0;
827 if (has_per_dir_config && path && path_len) {
/PHP_TRUNK/win32/
H A Dwinutil.h22 int php_win32_check_trailing_space(const char * path, const int path_len);
H A Dregistry.c78 static int LoadDirectory(HashTable *directories, HKEY key, char *path, int path_len, HashTable *parent_ht) argument
125 zend_hash_str_update_mem(directories, path, path_len, ht, sizeof(HashTable));
140 char *new_path = (char*)emalloc(path_len+max_key+2);
149 if (path_len) {
150 memcpy(new_path, path, path_len);
151 new_path[path_len] = '/';
152 memcpy(new_path+path_len+1, name, name_len+1);
153 zend_str_tolower(new_path, path_len+name_len+1);
154 name_len += path_len+1;
185 int path_len; local
[all...]
H A Dwinutil.c37 int php_win32_check_trailing_space(const char * path, const int path_len) { argument
38 if (path_len < 1) {
42 if (path[0] == ' ' || path[path_len - 1] == ' ') {
/PHP_TRUNK/main/streams/
H A Dglob_wrapper.c45 size_t path_len; member in struct:__anon15
56 *plen = pglob->path_len;
59 return estrndup(pglob->path, pglob->path_len);
134 pglob->path_len = path - gpath;
135 pglob->path = estrndup(gpath, pglob->path_len);
/PHP_TRUNK/ext/zip/
H A Dzip_stream.c128 int path_len = strlen(stream->orig_path); local
151 path_len = strlen(path);
152 if (path_len >= MAXPATHLEN) {
156 memcpy(file_dirname, path, path_len - fragment_len);
157 file_dirname[path_len - fragment_len] = '\0';
159 file_basename = php_basename((char *)path, path_len - fragment_len, NULL, 0);
177 if (path[path_len-1] != '/') {
268 int path_len; local
296 path_len = strlen(path);
297 if (path_len >
[all...]
H A Dphp_zip.c68 /* {{{ PHP_ZIP_STAT_PATH(za, path, path_len, flags, sb) */
69 #define PHP_ZIP_STAT_PATH(za, path, path_len, flags, sb) \
70 if (path_len < 1) { \
96 static char * php_zip_make_relative_path(char *path, size_t path_len) /* {{{ */ argument
101 if (path_len < 1 || path == NULL) {
109 i = path_len;
599 int php_zip_pcre(zend_string *regexp, char *path, int path_len, zval *return_value) /* {{{ */ argument
611 if (!IS_ABSOLUTE_PATH(path, path_len)) {
661 if ((path_len + namelist_len + 1) >= MAXPATHLEN) {
663 MAXPATHLEN - 1, (path_len
1612 size_t add_path_len, remove_path_len = 0, path_len = 0; local
[all...]
/PHP_TRUNK/ext/standard/
H A Dfilestat.c224 size_t path_len; local
226 if (zend_parse_parameters(ZEND_NUM_ARGS(), "p", &path, &path_len) == FAILURE) {
359 size_t path_len; local
361 if (zend_parse_parameters(ZEND_NUM_ARGS(), "p", &path, &path_len) == FAILURE) {
1239 zend_hash_str_update(Z_ARRVAL_P(return_value), bucket->path, bucket->path_len, &entry);
H A Dstring.c1690 size_t path_len; local
1695 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|l", &path, &path_len, &opt) == FAILURE) {
1704 dirname = estrndup(path, path_len);
1705 php_dirname(dirname, path_len);
1713 ret = php_basename(path, path_len, NULL, 0);
1722 ret = php_basename(path, path_len, NULL, 0);
1739 ret = php_basename(path, path_len, NULL, 0);
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_main.c671 static void php_cgi_ini_activate_user_config(char *path, int path_len, const char *doc_root, int doc_root_len, int start) argument
675 user_config_cache_entry *entry = zend_hash_str_find_ptr(&CGIG(user_config_cache), path, path_len);
683 zend_hash_str_update_ptr(&CGIG(user_config_cache), path, path_len, entry); local
696 if (!IS_ABSOLUTE_PATH(path, path_len)) {
703 path_len = real_path_len;
706 if (path_len > doc_root_len) {
713 s_len = path_len;
748 uint path_len, doc_root_len, server_name_len; local
772 path_len = strlen(SG(request_info).path_translated);
775 if (!IS_SLASH(SG(request_info).path_translated[path_len])) {
[all...]
H A Dfpm_php.c234 size_t path_len; local
241 path_len = strlen(path);
244 if (path_len > ext_len) {
245 char *path_ext = path + path_len - ext_len;
/PHP_TRUNK/ext/pcntl/
H A Dpcntl.c865 size_t path_len; local
868 if (zend_parse_parameters(ZEND_NUM_ARGS(), "p|aa", &path, &path_len, &args, &envs) == FAILURE) {
/PHP_TRUNK/ext/phar/
H A Ddirstream.c553 uint path_len; local
599 path_len = strlen(resource->path+1);
601 if (!(entry = phar_get_entry_info_dir(phar, resource->path + 1, path_len, 2, &error, 1))) {
617 if (ZSTR_LEN(str_key) > path_len &&
618 memcmp(ZSTR_VAL(str_key), resource->path+1, path_len) == 0 &&
619 IS_SLASH(ZSTR_VAL(str_key)[path_len])) {
634 if (ZSTR_LEN(str_key) > path_len &&
635 memcmp(ZSTR_VAL(str_key), resource->path+1, path_len) == 0 &&
636 IS_SLASH(ZSTR_VAL(str_key)[path_len])) {
649 zend_hash_str_del(&phar->virtual_dirs, resource->path+1, path_len);
[all...]
H A Dutil.c170 int phar_mount_entry(phar_archive_data *phar, char *filename, int filename_len, char *path, int path_len) /* {{{ */ argument
177 if (phar_path_check(&path, &path_len, &err) > pcr_is_ok) {
181 if (path_len >= sizeof(".phar")-1 && !memcmp(path, ".phar", sizeof(".phar")-1)) {
189 entry.filename = estrndup(path, path_len);
191 phar_unixify_path_separators(entry.filename, path_len);
193 entry.filename_len = path_len;
230 if (NULL == zend_hash_str_add_ptr(&phar->mounted_dirs, entry.filename, path_len, entry.filename)) {
243 if (NULL != zend_hash_str_add_mem(&phar->manifest, entry.filename, path_len, (void*)&entry, sizeof(phar_entry_info))) {
352 int phar_get_entry_data(phar_entry_data **ret, char *fname, int fname_len, char *path, int path_len, const char *mode, char allow_dir, char **error, int security) /* {{{ */ argument
382 if (!path_len) {
513 phar_get_or_create_entry_data(char *fname, int fname_len, char *path, int path_len, const char *mode, char allow_dir, char **error, int security) argument
1204 phar_get_entry_info(phar_archive_data *phar, char *path, int path_len, char **error, int security) argument
1214 phar_get_entry_info_dir(phar_archive_data *phar, char *path, int path_len, char dir, char **error, int security) argument
[all...]
H A Dphar_internal.h506 static inline void phar_unixify_path_separators(char *path, int path_len) argument
511 for (s = path; s - path < path_len; ++s) {
567 int phar_mount_entry(phar_archive_data *phar, char *filename, int filename_len, char *path, int path_len);
605 phar_entry_info *phar_get_entry_info(phar_archive_data *phar, char *path, int path_len, char **error, int security);
606 phar_entry_info *phar_get_entry_info_dir(phar_archive_data *phar, char *path, int path_len, char dir, char **error, int security);
607 phar_entry_data *phar_get_or_create_entry_data(char *fname, int fname_len, char *path, int path_len, const char *mode, char allow_dir, char **error, int security);
608 int phar_get_entry_data(phar_entry_data **ret, char *fname, int fname_len, char *path, int path_len, const char *mode, char allow_dir, char **error, int security);
H A Dphar_object.c459 size_t path_len, actual_len; local
462 if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss", &path, &path_len, &actual, &actual_len) == FAILURE) {
477 if (path_len > 7 && !memcmp(path, "phar://", 7)) {
498 if (SUCCESS != phar_mount_entry(pphar, actual, actual_len, path, path_len)) {
528 } else if (SUCCESS == phar_split_fname(path, path_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) {
530 path_len = entry_len;
/PHP_TRUNK/sapi/cgi/
H A Dcgi_main.c735 static void php_cgi_ini_activate_user_config(char *path, size_t path_len, const char *doc_root, size_t doc_root_len, int start) argument
742 if ((entry = zend_hash_str_find_ptr(&CGIG(user_config_cache), path, path_len)) == NULL) {
747 entry = zend_hash_str_update_ptr(&CGIG(user_config_cache), path, path_len, new_entry);
760 if (!IS_ABSOLUTE_PATH(path, path_len)) {
767 path_len = real_path_len;
770 if (path_len > doc_root_len) {
777 s_len = path_len;
814 size_t path_len, doc_root_len, server_name_len; local
844 path_len = strlen(SG(request_info).path_translated);
847 if (!IS_SLASH(SG(request_info).path_translated[path_len])) {
[all...]
/PHP_TRUNK/Zend/
H A Dzend_virtual_cwd.c296 const size_t path_len = strlen(path); local
303 if (path_len >= 1 && path[1] == ':') {
309 } else if (IS_UNC_PATH(path, path_len)) {
592 static inline zend_ulong realpath_cache_key(const char *path, int path_len) /* {{{ */ argument
612 static inline zend_ulong realpath_cache_key(const char *path, int path_len) /* {{{ */ argument
615 const char *e = path + path_len;
644 CWD_API void realpath_cache_del(const char *path, int path_len) /* {{{ */ argument
646 zend_ulong key = realpath_cache_key(path, path_len);
651 if (key == (*bucket)->key && path_len == (*bucket)->path_len
672 realpath_cache_add(const char *path, int path_len, const char *realpath, int realpath_len, int is_dir, time_t t) argument
718 realpath_cache_find(const char *path, int path_len, time_t t) argument
747 realpath_cache_lookup(const char *path, int path_len, time_t t) argument
[all...]
H A Dzend_virtual_cwd.h219 int path_len; member in struct:_realpath_cache_bucket
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_TRUNK/ext/posix/
H A Dposix.c899 size_t path_len; local
903 if (zend_parse_parameters(ZEND_NUM_ARGS(), "pl", &path, &path_len, &mode) == FAILURE) {
928 size_t path_len; local
936 if (zend_parse_parameters(ZEND_NUM_ARGS(), "pl|ll", &path, &path_len,
/PHP_TRUNK/ext/spl/
H A Dspl_directory.c589 size_t path_len; local
601 path = spl_filesystem_object_get_pathname(intern, &path_len);
602 ZVAL_STRINGL(&tmp, path, path_len);
608 spl_filesystem_object_get_path(intern, &path_len);
610 if (path_len && path_len < intern->file_name_len) {
611 ZVAL_STRINGL(&tmp, intern->file_name + path_len + 1, intern->file_name_len - (path_len + 1));
867 size_t path_len; local
873 path = spl_filesystem_object_get_path(intern, &path_len);
883 size_t path_len; local
921 size_t path_len; local
988 size_t slen = 0, path_len; local
1033 size_t path_len; local
1384 size_t path_len; local
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_bp.c241 size_t path_len = 0L; local
246 path_len = strlen(path);
248 phpdbg_debug("file path: %s, resolved path: %s, was compiled: %d\n", original_path, path, zend_hash_str_exists(&PHPDBG_G(file_sources), path, path_len));
250 if (!zend_hash_str_exists(&PHPDBG_G(file_sources), path, path_len)) {
259 path_len = strlen(path);
269 path_str = zend_string_init(path, path_len, 0);
280 new_break.filename = estrndup(path, path_len);
884 size_t path_len; local
892 path_len = strlen(path);
895 phpdbg_debug("Op at: %.*s %d\n", path_len, pat
[all...]

Completed in 64 milliseconds

12