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

12

/PHP_5_6/sapi/fpm/fpm/
H A Dfpm_php.c236 size_t path_len; local
243 path_len = strlen(path);
246 if (path_len > ext_len) {
247 char *path_ext = path + path_len - ext_len;
H A Dfpm_main.c695 static void php_cgi_ini_activate_user_config(char *path, int path_len, const char *doc_root, int doc_root_len, int start TSRMLS_DC) argument
702 if (zend_hash_find(&CGIG(user_config_cache), path, path_len + 1, (void **) &entry) == FAILURE) {
707 zend_hash_update(&CGIG(user_config_cache), path, path_len + 1, new_entry, sizeof(user_config_cache_entry), (void **) &entry); local
721 if (!IS_ABSOLUTE_PATH(path, path_len)) {
728 path_len = real_path_len;
731 if (path_len > doc_root_len) {
738 s_len = path_len;
772 uint path_len, doc_root_len, server_name_len; local
796 path_len = strlen(SG(request_info).path_translated);
799 if (!IS_SLASH(SG(request_info).path_translated[path_len])) {
[all...]
/PHP_5_6/win32/
H A Dregistry.c60 static int LoadDirectory(HashTable *directories, HKEY key, char *path, int path_len, HashTable *parent_ht) argument
116 zend_hash_update(directories, path, path_len+1, &ht, sizeof(HashTable*), NULL);
131 char *new_path = (char*)emalloc(path_len+max_key+2);
140 if (path_len) {
141 memcpy(new_path, path, path_len);
142 new_path[path_len] = '/';
143 memcpy(new_path+path_len+1, name, name_len+1);
144 zend_str_tolower(new_path, path_len+name_len+1);
145 name_len += path_len+1;
175 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] == ' ') {
H A Dwinutil.h22 int php_win32_check_trailing_space(const char * path, const int path_len);
/PHP_5_6/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)) {
585 static inline unsigned long realpath_cache_key(const char *path, int path_len TSRMLS_DC) /* {{{ */
605 static inline unsigned long realpath_cache_key(const char *path, int path_len) /* {{{ */ argument
608 const char *e = path + path_len;
637 CWD_API void realpath_cache_del(const char *path, int path_len TSRMLS_DC) /* {{{ */
640 unsigned long key = realpath_cache_key(path, path_len TSRMLS_CC);
642 unsigned long key = realpath_cache_key(path, path_len);
648 if (key == (*bucket)->key && path_len
669 realpath_cache_add(const char *path, int path_len, const char *realpath, int realpath_len, int is_dir, time_t t TSRMLS_DC) argument
719 realpath_cache_find(const char *path, int path_len, time_t t TSRMLS_DC) argument
753 realpath_cache_lookup(const char *path, int path_len, time_t t TSRMLS_DC) argument
[all...]
H A Dzend_virtual_cwd.h216 int path_len; member in struct:_realpath_cache_bucket
247 CWD_API void realpath_cache_del(const char *path, int path_len TSRMLS_DC);
248 CWD_API realpath_cache_bucket* realpath_cache_lookup(const char *path, int path_len, time_t t TSRMLS_DC);
/PHP_5_6/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 TSRMLS_CC))) {
617 if (key_len > path_len &&
618 memcmp(str_key, resource->path+1, path_len) == 0 &&
619 IS_SLASH(str_key[path_len])) {
634 if (key_len > path_len &&
635 memcmp(str_key, resource->path+1, path_len) == 0 &&
636 IS_SLASH(str_key[path_len])) {
649 zend_hash_del(&phar->virtual_dirs, resource->path+1, path_len);
[all...]
H A Dphar_internal.h511 static inline void phar_unixify_path_separators(char *path, int path_len) argument
516 for (s = path; s - path < path_len; ++s) {
569 int phar_mount_entry(phar_archive_data *phar, char *filename, int filename_len, char *path, int path_len TSRMLS_DC);
607 phar_entry_info *phar_get_entry_info(phar_archive_data *phar, char *path, int path_len, char **error, int security TSRMLS_DC);
608 phar_entry_info *phar_get_entry_info_dir(phar_archive_data *phar, char *path, int path_len, char dir, char **error, int security TSRMLS_DC);
609 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 TSRMLS_DC);
610 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 TSRMLS_DC);
H A Dutil.c170 int phar_mount_entry(phar_archive_data *phar, char *filename, int filename_len, char *path, int path_len TSRMLS_DC) /* {{{ */
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 (SUCCESS != zend_hash_add(&phar->mounted_dirs, entry.filename, path_len, (void *)&(entry.filename), sizeof(char *), NULL)) {
243 if (SUCCESS == zend_hash_add(&phar->manifest, entry.filename, path_len, (void*)&entry, sizeof(phar_entry_info), NULL)) {
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 TSRMLS_DC) /* {{{ */ 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 TSRMLS_DC) argument
1209 phar_get_entry_info(phar_archive_data *phar, char *path, int path_len, char **error, int security TSRMLS_DC) argument
1219 phar_get_entry_info_dir(phar_archive_data *phar, char *path, int path_len, char dir, char **error, int security TSRMLS_DC) argument
[all...]
/PHP_5_6/ext/posix/
H A Dposix.c837 int path_len; local
841 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "pl", &path, &path_len, &mode) == FAILURE) {
866 int path_len; local
874 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "pl|ll", &path, &path_len,
/PHP_5_6/ext/standard/
H A Dfilestat.c236 int path_len; local
238 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &path, &path_len) == FAILURE) {
371 int path_len; local
373 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &path, &path_len) == FAILURE) {
1226 zend_hash_update(Z_ARRVAL_P(return_value), bucket->path, bucket->path_len+1, &entry, sizeof(zval *), NULL);
H A Dhead.c76 PHPAPI int php_setcookie(char *name, int name_len, char *value, int value_len, time_t expires, char *path, int path_len, char *domain, int domain_len, int secure, int url_encode, int httponly TSRMLS_DC) argument
105 len += path_len;
151 if (path && path_len > 0) {
183 int name_len, value_len = 0, path_len = 0, domain_len = 0; local
187 &path_len, &domain, &domain_len, &secure, &httponly) == FAILURE) {
191 if (php_setcookie(name, name_len, value, value_len, expires, path, path_len, domain, domain_len, secure, 1, httponly TSRMLS_CC) == SUCCESS) {
206 int name_len, value_len = 0, path_len = 0, domain_len = 0; local
210 &path_len, &domain, &domain_len, &secure, &httponly) == FAILURE) {
214 if (php_setcookie(name, name_len, value, value_len, expires, path, path_len, domain, domain_len, secure, 0, httponly TSRMLS_CC) == SUCCESS) {
H A Dhead.h34 PHPAPI int php_setcookie(char *name, int name_len, char *value, int value_len, time_t expires, char *path, int path_len, char *domain, int domain_len, int secure, int url_encode, int httponly TSRMLS_DC);
/PHP_5_6/ext/zip/
H A Dzip_stream.c120 int path_len = strlen(stream->orig_path); local
144 path_len = strlen(path);
145 if (path_len >= MAXPATHLEN) {
149 memcpy(file_dirname, path, path_len - fragment_len);
150 file_dirname[path_len - fragment_len] = '\0';
152 php_basename((char *)path, path_len - fragment_len, NULL, 0, &file_basename, &file_basename_len TSRMLS_CC);
169 if (path[path_len-1] != '/') {
260 int path_len; local
289 path_len = strlen(path);
290 if (path_len >
[all...]
H A Dphp_zip.c86 /* {{{ PHP_ZIP_STAT_PATH(za, path, path_len, flags, sb) */
87 #define PHP_ZIP_STAT_PATH(za, path, path_len, flags, sb) \
88 if (path_len < 1) { \
117 static char * php_zip_make_relative_path(char *path, int path_len) /* {{{ */ argument
122 if (path_len < 1 || path == NULL) {
130 i = path_len;
636 int php_zip_pcre(char *regexp, int regexp_len, char *path, int path_len, zval *return_value TSRMLS_DC) /* {{{ */ argument
648 if (!IS_ABSOLUTE_PATH(path, path_len)) {
699 if ((path_len + namelist_len + 1) >= MAXPATHLEN) {
701 MAXPATHLEN - 1, (path_len
1724 int pattern_len, add_path_len, remove_path_len = 0, path_len = 0; local
[all...]
/PHP_5_6/main/
H A Dfopen_wrappers.c151 int path_len; local
160 path_len = strlen(path);
161 if (path_len > (MAXPATHLEN - 1)) {
171 path_len = 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]
413 int path_len = strlen(path_info); local
[all...]
H A Dphp_ini.h39 PHPAPI void php_ini_activate_per_dir_config(char *path, uint path_len TSRMLS_DC);
H A Dphp_ini.c814 PHPAPI void php_ini_activate_per_dir_config(char *path, uint path_len TSRMLS_DC)
824 /* MAX_PATH is \0-terminated, path_len == MAXPATHLEN would overrun path_bak */
825 if (path_len >= MAXPATHLEN) {
827 if (path_len > MAXPATHLEN) {
833 memcpy(path_bak, path, path_len);
834 path_bak[path_len] = 0;
840 if (has_per_dir_config && path && path_len) {
/PHP_5_6/main/streams/
H A Dglob_wrapper.c45 size_t path_len; member in struct:__anon307
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_5_6/ext/pcntl/
H A Dpcntl.c755 int path_len; local
758 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|aa", &path, &path_len, &args, &envs) == FAILURE) {
/PHP_5_6/sapi/cgi/
H A Dcgi_main.c754 static void php_cgi_ini_activate_user_config(char *path, int path_len, const char *doc_root, int doc_root_len, int start TSRMLS_DC) argument
761 if (zend_hash_find(&CGIG(user_config_cache), path, path_len + 1, (void **) &entry) == FAILURE) {
766 zend_hash_update(&CGIG(user_config_cache), path, path_len + 1, new_entry, sizeof(user_config_cache_entry), (void **) &entry); local
780 if (!IS_ABSOLUTE_PATH(path, path_len)) {
787 path_len = real_path_len;
790 if (path_len > doc_root_len) {
797 s_len = path_len;
834 uint path_len, doc_root_len, server_name_len; local
864 path_len = strlen(SG(request_info).path_translated);
867 if (!IS_SLASH(SG(request_info).path_translated[path_len])) {
[all...]
H A Dfastcgi.c653 int path_len = strlen(path);
655 if (path_len >= sizeof(sa.sa_unix.sun_path)) {
662 memcpy(sa.sa_unix.sun_path, path, path_len + 1);
663 sock_len = (size_t)(((struct sockaddr_un *)0)->sun_path) + path_len;
/PHP_5_6/ext/spl/
H A Dspl_directory.c592 int pnlen, path_len; local
610 path = spl_filesystem_object_get_pathname(intern, &path_len TSRMLS_CC);
611 add_assoc_stringl_ex(&zrv, pnstr, pnlen+1, path, path_len, 1);
616 spl_filesystem_object_get_path(intern, &path_len TSRMLS_CC);
618 if (path_len && path_len < intern->file_name_len) {
619 add_assoc_stringl_ex(&zrv, pnstr, pnlen+1, intern->file_name + path_len + 1, intern->file_name_len - (path_len + 1), 1);
874 int path_len; local
880 path = spl_filesystem_object_get_path(intern, &path_len TSRMLS_C
890 int path_len; local
928 int path_len, idx; local
999 int slen = 0, path_len; local
1046 int path_len; local
1406 int path_len; local
[all...]
/PHP_5_6/sapi/phpdbg/
H A Dphpdbg_bp.c228 size_t path_len = 0L; local
233 path_len = strlen(path);
236 path, path_len, (void**)&broken) == FAILURE) {
242 path, path_len, &breaks, sizeof(HashTable),
250 new_break.filename = estrndup(path, path_len);

Completed in 38 milliseconds

12