Searched defs:path_len (Results 1 - 24 of 24) sorted by relevance

/PHP_TRUNK/Zend/
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);
H A Dzend_virtual_cwd.c298 const size_t path_len = strlen(path); local
305 if (path_len >= 1 && path[1] == ':') {
311 } else if (IS_UNC_PATH(path, path_len)) {
586 static inline zend_ulong realpath_cache_key(const char *path, int path_len) /* {{{ */ argument
606 static inline zend_ulong realpath_cache_key(const char *path, int path_len) /* {{{ */ argument
609 const char *e = path + path_len;
638 CWD_API void realpath_cache_del(const char *path, int path_len) /* {{{ */ argument
641 zend_ulong key = realpath_cache_key(path, path_len);
643 zend_ulong key = realpath_cache_key(path, path_len);
649 if (key == (*bucket)->key && path_len
670 realpath_cache_add(const char *path, int path_len, const char *realpath, int realpath_len, int is_dir, time_t t) argument
720 realpath_cache_find(const char *path, int path_len, time_t t) argument
754 realpath_cache_lookup(const char *path, int path_len, time_t t) argument
[all...]
/PHP_TRUNK/win32/
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] == ' ') {
H A Dregistry.c60 static int LoadDirectory(HashTable *directories, HKEY key, char *path, int path_len, HashTable *parent_ht) argument
107 zend_hash_str_update_mem(directories, path, path_len, ht, sizeof(HashTable));
122 char *new_path = (char*)emalloc(path_len+max_key+2);
131 if (path_len) {
132 memcpy(new_path, path, path_len);
133 new_path[path_len] = '/';
134 memcpy(new_path+path_len+1, name, name_len+1);
135 zend_str_tolower(new_path, path_len+name_len+1);
136 name_len += path_len+1;
167 int path_len; local
[all...]
/PHP_TRUNK/ext/standard/
H A Dhead.c80 PHPAPI int php_setcookie(char *name, size_t name_len, char *value, size_t value_len, time_t expires, char *path, size_t path_len, char *domain, size_t domain_len, int secure, int url_encode, int httponly) argument
109 len += path_len;
155 if (path && path_len > 0) {
187 size_t name_len, value_len = 0, path_len = 0, domain_len = 0; local
191 &path_len, &domain, &domain_len, &secure, &httponly) == FAILURE) {
195 if (php_setcookie(name, name_len, value, value_len, expires, path, path_len, domain, domain_len, secure, 1, httponly) == SUCCESS) {
210 size_t name_len, value_len = 0, path_len = 0, domain_len = 0; local
214 &path_len, &domain, &domain_len, &secure, &httponly) == FAILURE) {
218 if (php_setcookie(name, name_len, value, value_len, expires, path, path_len, domain, domain_len, secure, 0, httponly) == SUCCESS) {
H A Dstring.c1654 size_t path_len; local
1659 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|l", &path, &path_len, &opt) == FAILURE) {
1668 dirname = estrndup(path, path_len);
1669 php_dirname(dirname, path_len);
1677 ret = php_basename(path, path_len, NULL, 0);
1686 ret = php_basename(path, path_len, NULL, 0);
1703 ret = php_basename(path, path_len, NULL, 0);
H A Dfilestat.c236 size_t path_len; local
238 if (zend_parse_parameters(ZEND_NUM_ARGS(), "p", &path, &path_len) == FAILURE) {
371 size_t path_len; local
373 if (zend_parse_parameters(ZEND_NUM_ARGS(), "p", &path, &path_len) == FAILURE) {
1251 zend_hash_str_update(Z_ARRVAL_P(return_value), bucket->path, bucket->path_len, &entry);
H A Dbasic_functions.c5705 size_t path_len; local
5711 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &path, &path_len) == FAILURE) {
5715 if (zend_hash_str_exists(SG(rfc1867_uploaded_files), path, path_len)) {
5728 size_t path_len, new_path_len; local
5739 if (zend_parse_parameters(ZEND_NUM_ARGS(), "sp", &path, &path_len, &new_path, &new_path_len) == FAILURE) {
5743 if (!zend_hash_str_exists(SG(rfc1867_uploaded_files), path, path_len)) {
5769 zend_hash_str_del(SG(rfc1867_uploaded_files), path, path_len); local
/PHP_TRUNK/sapi/fpm/fpm/
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;
H A Dfpm_main.c639 static void php_cgi_ini_activate_user_config(char *path, int path_len, const char *doc_root, int doc_root_len, int start) argument
643 user_config_cache_entry *entry = zend_hash_str_find_ptr(&CGIG(user_config_cache), path, path_len);
651 zend_hash_str_update_ptr(&CGIG(user_config_cache), path, path_len, entry); local
664 if (!IS_ABSOLUTE_PATH(path, path_len)) {
671 path_len = real_path_len;
674 if (path_len > doc_root_len) {
681 s_len = path_len;
715 uint path_len, doc_root_len, server_name_len; local
739 path_len = strlen(SG(request_info).path_translated);
742 if (!IS_SLASH(SG(request_info).path_translated[path_len])) {
[all...]
/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 (str_key->len > path_len &&
618 memcmp(str_key->val, resource->path+1, path_len) == 0 &&
619 IS_SLASH(str_key->val[path_len])) {
634 if (str_key->len > path_len &&
635 memcmp(str_key->val, resource->path+1, path_len) == 0 &&
636 IS_SLASH(str_key->val[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_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;
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);
/PHP_TRUNK/ext/zip/
H A Dzip_stream.c120 int path_len = strlen(stream->orig_path); local
143 path_len = strlen(path);
144 if (path_len >= MAXPATHLEN) {
148 memcpy(file_dirname, path, path_len - fragment_len);
149 file_dirname[path_len - fragment_len] = '\0';
151 file_basename = php_basename((char *)path, path_len - fragment_len, NULL, 0);
169 if (path[path_len-1] != '/') {
260 int path_len; local
288 path_len = strlen(path);
289 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;
590 int php_zip_pcre(zend_string *regexp, char *path, int path_len, zval *return_value) /* {{{ */ argument
602 if (!IS_ABSOLUTE_PATH(path, path_len)) {
652 if ((path_len + namelist_len + 1) >= MAXPATHLEN) {
654 MAXPATHLEN - 1, (path_len
1593 size_t add_path_len, remove_path_len = 0, path_len = 0; local
[all...]
/PHP_TRUNK/main/
H A Dphp_ini.c805 PHPAPI void php_ini_activate_per_dir_config(char *path, size_t path_len) argument
815 /* MAX_PATH is \0-terminated, path_len == MAXPATHLEN would overrun path_bak */
816 if (path_len >= MAXPATHLEN) {
818 if (path_len > MAXPATHLEN) {
824 memcpy(path_bak, path, path_len);
825 path_bak[path_len] = 0;
831 if (has_per_dir_config && path && path_len) {
H A Dfopen_wrappers.c151 int path_len; local
160 path_len = (int)strlen(path);
161 if (path_len > (MAXPATHLEN - 1)) {
171 path_len = (int)strlen(resolved_name);
172 memcpy(path_tmp, resolved_name, path_len + 1); /* safe */
203 path_len = path_file - path_tmp + 1;
205 if (path_len > 1 && path_tmp[path_len - 2] == ':') {
206 if (path_len != 3) {
210 path_tmp[path_len]
413 int path_len = (int)strlen(path_info); local
765 int path_len; local
[all...]
/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/sapi/phpdbg/
H A Dphpdbg_bp.c234 size_t path_len = 0L; local
239 path_len = strlen(path);
241 phpdbg_debug("file path: %s, resolved path: %s, was compiled: %d\n", original_path, path, zend_hash_exists(&PHPDBG_G(file_sources), path, path_len));
243 if (!zend_hash_str_exists(&PHPDBG_G(file_sources), path, path_len)) {
252 path_len = strlen(path);
262 if (!(broken = zend_hash_str_find_ptr(file_breaks, path, path_len))) {
266 broken = zend_hash_str_add_mem(file_breaks, path, path_len, &breaks, sizeof(HashTable));
271 new_break.filename = estrndup(path, path_len);
279 zend_string *file, *path_str = zend_string_init(path, path_len, 0);
844 size_t path_len; local
[all...]
/PHP_TRUNK/ext/pcntl/
H A Dpcntl.c783 size_t path_len; local
786 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|aa", &path, &path_len, &args, &envs) == FAILURE) {
/PHP_TRUNK/ext/posix/
H A Dposix.c838 size_t path_len; local
842 if (zend_parse_parameters(ZEND_NUM_ARGS(), "pl", &path, &path_len, &mode) == FAILURE) {
867 size_t path_len; local
875 if (zend_parse_parameters(ZEND_NUM_ARGS(), "pl|ll", &path, &path_len,
/PHP_TRUNK/sapi/cgi/
H A Dcgi_main.c721 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
728 if ((entry = zend_hash_str_find_ptr(&CGIG(user_config_cache), path, path_len)) == NULL) {
733 entry = zend_hash_str_update_ptr(&CGIG(user_config_cache), path, path_len, new_entry);
746 if (!IS_ABSOLUTE_PATH(path, path_len)) {
753 path_len = real_path_len;
756 if (path_len > doc_root_len) {
763 s_len = path_len;
800 size_t path_len, doc_root_len, server_name_len; local
830 path_len = strlen(SG(request_info).path_translated);
833 if (!IS_SLASH(SG(request_info).path_translated[path_len])) {
[all...]
/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));
866 size_t path_len; local
872 path = spl_filesystem_object_get_path(intern, &path_len);
882 size_t path_len; local
920 size_t path_len; local
988 size_t slen = 0, path_len; local
1033 size_t path_len; local
1383 size_t path_len; local
[all...]

Completed in 55 milliseconds