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

/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
101 zend_hash_str_update_mem(directories, path, path_len + 1, &ht, sizeof(HashTable*));
116 char *new_path = (char*)emalloc(path_len+max_key+2);
125 if (path_len) {
126 memcpy(new_path, path, path_len);
127 new_path[path_len] = '/';
128 memcpy(new_path+path_len+1, name, name_len+1);
129 zend_str_tolower(new_path, path_len+name_len+1);
130 name_len += path_len+1;
161 int path_len; local
[all...]
/PHP_TRUNK/Zend/
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...]
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/pcntl/
H A Dpcntl.c753 size_t path_len; local
756 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|aa", &path, &path_len, &args, &envs) == FAILURE) {
/PHP_TRUNK/ext/phar/
H A Ddirstream.c554 uint path_len; local
600 path_len = strlen(resource->path+1);
602 if (!(entry = phar_get_entry_info_dir(phar, resource->path + 1, path_len, 2, &error, 1))) {
618 if (str_key->len > path_len &&
619 memcmp(str_key->val, resource->path+1, path_len) == 0 &&
620 IS_SLASH(str_key->val[path_len])) {
635 if (str_key->len > path_len &&
636 memcmp(str_key->val, resource->path+1, path_len) == 0 &&
637 IS_SLASH(str_key->val[path_len])) {
650 zend_hash_str_del(&phar->virtual_dirs, resource->path+1, path_len);
[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) {
564 int phar_mount_entry(phar_archive_data *phar, char *filename, int filename_len, char *path, int path_len);
602 phar_entry_info *phar_get_entry_info(phar_archive_data *phar, char *path, int path_len, char **error, int security);
603 phar_entry_info *phar_get_entry_info_dir(phar_archive_data *phar, char *path, int path_len, char dir, char **error, int security);
604 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);
605 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;
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))) {
353 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
383 if (!path_len) {
514 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
1205 phar_get_entry_info(phar_archive_data *phar, char *path, int path_len, char **error, int security) argument
1215 phar_get_entry_info_dir(phar_archive_data *phar, char *path, int path_len, char dir, char **error, int security) argument
[all...]
/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/ext/spl/
H A Dspl_directory.c582 size_t path_len; local
596 path = spl_filesystem_object_get_pathname(intern, &path_len);
597 ZVAL_STRINGL(&tmp, path, path_len);
603 spl_filesystem_object_get_path(intern, &path_len);
605 if (path_len && path_len < intern->file_name_len) {
606 ZVAL_STRINGL(&tmp, intern->file_name + path_len + 1, intern->file_name_len - (path_len + 1));
861 size_t path_len; local
867 path = spl_filesystem_object_get_path(intern, &path_len);
877 size_t path_len; local
915 size_t path_len; local
984 size_t slen = 0, path_len; local
1029 size_t path_len; local
1389 size_t path_len; local
[all...]
/PHP_TRUNK/ext/standard/
H A Dbasic_functions.c5691 size_t path_len; local
5697 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &path, &path_len) == FAILURE) {
5701 if (zend_hash_str_exists(SG(rfc1867_uploaded_files), path, path_len)) {
5714 size_t path_len, new_path_len; local
5725 if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss", &path, &path_len, &new_path, &new_path_len) == FAILURE) {
5729 if (!zend_hash_str_exists(SG(rfc1867_uploaded_files), path, path_len)) {
5755 zend_hash_str_del(SG(rfc1867_uploaded_files), path, path_len); local
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 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.c1531 size_t path_len; local
1536 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|l", &path, &path_len, &opt) == FAILURE) {
1545 dirname = estrndup(path, path_len);
1546 php_dirname(dirname, path_len);
1554 ret = php_basename(path, path_len, NULL, 0);
1563 ret = php_basename(path, path_len, NULL, 0);
1580 ret = php_basename(path, path_len, NULL, 0);
/PHP_TRUNK/ext/zip/
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
1578 size_t add_path_len, remove_path_len = 0, path_len = 0; local
[all...]
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);
168 if (path[path_len-1] != '/') {
259 int path_len; local
287 path_len = strlen(path);
288 if (path_len >
[all...]
/PHP_TRUNK/main/
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 */
209 path_len = path_file - path_tmp + 1;
211 if (path_len > 1 && path_tmp[path_len - 2] == ':') {
212 if (path_len != 3) {
216 path_tmp[path_len]
414 int path_len = (int)strlen(path_info); local
762 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
814 /* MAX_PATH is \0-terminated, path_len == MAXPATHLEN would overrun path_bak */
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) {
/PHP_TRUNK/main/streams/
H A Dglob_wrapper.c45 size_t path_len; member in struct:__anon266
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/cgi/
H A Dcgi_main.c769 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
776 if ((entry = zend_hash_str_find_ptr(&CGIG(user_config_cache), path, path_len)) == NULL) {
781 entry = zend_hash_str_update_ptr(&CGIG(user_config_cache), path, path_len, new_entry);
794 if (!IS_ABSOLUTE_PATH(path, path_len)) {
801 path_len = real_path_len;
804 if (path_len > doc_root_len) {
811 s_len = path_len;
848 size_t path_len, doc_root_len, server_name_len; local
878 path_len = strlen(SG(request_info).path_translated);
881 if (!IS_SLASH(SG(request_info).path_translated[path_len])) {
[all...]
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_main.c684 static void php_cgi_ini_activate_user_config(char *path, int path_len, const char *doc_root, int doc_root_len, int start) argument
688 user_config_cache_entry *entry = zend_hash_str_find_ptr(&CGIG(user_config_cache), path, path_len);
696 zend_hash_str_update_ptr(&CGIG(user_config_cache), path, path_len, entry); local
709 if (!IS_ABSOLUTE_PATH(path, path_len)) {
716 path_len = real_path_len;
719 if (path_len > doc_root_len) {
726 s_len = path_len;
760 uint path_len, doc_root_len, server_name_len; local
784 path_len = strlen(SG(request_info).path_translated);
787 if (!IS_SLASH(SG(request_info).path_translated[path_len])) {
[all...]
H A Dfpm_php.c233 size_t path_len; local
240 path_len = strlen(path);
243 if (path_len > ext_len) {
244 char *path_ext = path + path_len - ext_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...]

Completed in 76 milliseconds