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

/PHP_5_4/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.c691 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
698 if (zend_hash_find(&CGIG(user_config_cache), path, path_len + 1, (void **) &entry) == FAILURE) {
703 zend_hash_update(&CGIG(user_config_cache), path, path_len + 1, new_entry, sizeof(user_config_cache_entry), (void **) &entry); local
717 if (!IS_ABSOLUTE_PATH(path, path_len)) {
724 path_len = real_path_len;
727 if (path_len > doc_root_len) {
734 s_len = path_len;
768 uint path_len, doc_root_len, server_name_len; local
792 path_len = strlen(SG(request_info).path_translated);
795 if (!IS_SLASH(SG(request_info).path_translated[path_len])) {
[all...]
/PHP_5_4/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] == ' ') {
/PHP_5_4/ext/zip/
H A Dzip_stream.c104 int path_len = strlen(stream->orig_path); local
128 path_len = strlen(path);
129 if (path_len >= MAXPATHLEN) {
133 memcpy(file_dirname, path, path_len - fragment_len);
134 file_dirname[path_len - fragment_len] = '\0';
136 php_basename((char *)path, path_len - fragment_len, NULL, 0, &file_basename, &file_basename_len TSRMLS_CC);
153 if (path[path_len-1] != '/') {
244 int path_len; local
273 path_len = strlen(path);
274 if (path_len >
[all...]
H A Dphp_zip.c70 /* {{{ PHP_ZIP_STAT_PATH(za, path, path_len, flags, sb) */
71 #define PHP_ZIP_STAT_PATH(za, path, path_len, flags, sb) \
72 if (path_len < 1) { \
100 static char * php_zip_make_relative_path(char *path, int path_len) /* {{{ */ argument
105 if (path_len < 1 || path == NULL) {
113 i = path_len;
625 int php_zip_pcre(char *regexp, int regexp_len, char *path, int path_len, zval *return_value TSRMLS_DC) /* {{{ */ argument
637 if (!IS_ABSOLUTE_PATH(path, path_len)) {
688 if ((path_len + namelist_len + 1) >= MAXPATHLEN) {
690 MAXPATHLEN - 1, (path_len
1657 int pattern_len, add_path_len = 0, remove_path_len = 0, path_len = 0; local
[all...]
/PHP_5_4/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_4/ext/phar/
H A Ddirstream.c575 uint path_len; local
621 path_len = strlen(resource->path+1);
623 if (!(entry = phar_get_entry_info_dir(phar, resource->path + 1, path_len, 2, &error, 1 TSRMLS_CC))) {
641 if (key_len > path_len &&
642 memcmp(str_key, resource->path+1, path_len) == 0 &&
643 IS_SLASH(str_key[path_len])) {
662 if (key_len > path_len &&
663 memcmp(str_key, resource->path+1, path_len) == 0 &&
664 IS_SLASH(str_key[path_len])) {
679 zend_hash_del(&phar->virtual_dirs, resource->path+1, path_len);
[all...]
H A Dphar_internal.h595 static inline void phar_unixify_path_separators(char *path, int path_len) argument
600 for (s = path; s - path < path_len; ++s) {
653 int phar_mount_entry(phar_archive_data *phar, char *filename, int filename_len, char *path, int path_len TSRMLS_DC);
691 phar_entry_info *phar_get_entry_info(phar_archive_data *phar, char *path, int path_len, char **error, int security TSRMLS_DC);
692 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);
693 phar_entry_data *phar_get_or_create_entry_data(char *fname, int fname_len, char *path, int path_len, char *mode, char allow_dir, char **error, int security TSRMLS_DC);
694 int phar_get_entry_data(phar_entry_data **ret, char *fname, int fname_len, char *path, int path_len, char *mode, char allow_dir, char **error, int security TSRMLS_DC);
H A Dutil.c174 int phar_mount_entry(phar_archive_data *phar, char *filename, int filename_len, char *path, int path_len TSRMLS_DC) /* {{{ */
181 if (phar_path_check(&path, &path_len, &err) > pcr_is_ok) {
185 if (path_len >= sizeof(".phar")-1 && !memcmp(path, ".phar", sizeof(".phar")-1)) {
193 entry.filename = estrndup(path, path_len);
195 phar_unixify_path_separators(entry.filename, path_len);
197 entry.filename_len = path_len;
234 if (SUCCESS != zend_hash_add(&phar->mounted_dirs, entry.filename, path_len, (void *)&(entry.filename), sizeof(char *), NULL)) {
247 if (SUCCESS == zend_hash_add(&phar->manifest, entry.filename, path_len, (void*)&entry, sizeof(phar_entry_info), NULL)) {
575 int phar_get_entry_data(phar_entry_data **ret, char *fname, int fname_len, char *path, int path_len, char *mode, char allow_dir, char **error, int security TSRMLS_DC) /* {{{ */ argument
605 if (!path_len) {
736 phar_get_or_create_entry_data(char *fname, int fname_len, char *path, int path_len, char *mode, char allow_dir, char **error, int security TSRMLS_DC) argument
1459 phar_get_entry_info(phar_archive_data *phar, char *path, int path_len, char **error, int security TSRMLS_DC) argument
1469 phar_get_entry_info_dir(phar_archive_data *phar, char *path, int path_len, char dir, char **error, int security TSRMLS_DC) argument
[all...]
H A Dphar_object.c478 int fname_len, arch_len, entry_len, path_len, actual_len; local
481 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &path, &path_len, &actual, &actual_len) == FAILURE) {
496 if (path_len > 7 && !memcmp(path, "phar://", 7)) {
517 if (SUCCESS != phar_mount_entry(*pphar, actual, actual_len, path, path_len TSRMLS_CC)) {
547 } else if (SUCCESS == phar_split_fname(path, path_len, &arch, &arch_len, &entry, &entry_len, 2, 0 TSRMLS_CC)) {
549 path_len = entry_len;
/PHP_5_4/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_4/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;
146 if (path && path_len > 0) {
178 int name_len, value_len = 0, path_len = 0, domain_len = 0; local
182 &path_len, &domain, &domain_len, &secure, &httponly) == FAILURE) {
186 if (php_setcookie(name, name_len, value, value_len, expires, path, path_len, domain, domain_len, secure, 1, httponly TSRMLS_CC) == SUCCESS) {
201 int name_len, value_len = 0, path_len = 0, domain_len = 0; local
205 &path_len, &domain, &domain_len, &secure, &httponly) == FAILURE) {
209 if (php_setcookie(name, name_len, value, value_len, expires, path, path_len, domain, domain_len, secure, 0, httponly TSRMLS_CC) == SUCCESS) {
H A Dbasic_functions.c5744 int path_len; local
5750 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &path, &path_len) == FAILURE) {
5754 if (zend_hash_exists(SG(rfc1867_uploaded_files), path, path_len + 1)) {
5767 int path_len, new_path_len; local
5778 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &path, &path_len, &new_path, &new_path_len) == FAILURE) {
5782 if (!zend_hash_exists(SG(rfc1867_uploaded_files), path, path_len + 1)) {
5808 zend_hash_del(SG(rfc1867_uploaded_files), path, path_len + 1); local
H A Dstring.c1549 int path_len, have_basename; local
1553 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &path, &path_len, &opt) == FAILURE) {
1563 ret = estrndup(path, path_len);
1564 php_dirname(ret, path_len);
1573 php_basename(path, path_len, NULL, 0, &ret, &ret_len TSRMLS_CC);
1582 php_basename(path, path_len, NULL, 0, &ret, &ret_len TSRMLS_CC);
1599 php_basename(path, path_len, NULL, 0, &ret, &ret_len TSRMLS_CC);
/PHP_5_4/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...]
/PHP_5_4/main/streams/
H A Dglob_wrapper.c45 size_t path_len; member in struct:__anon303
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_4/sapi/cgi/
H A Dcgi_main.c751 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
758 if (zend_hash_find(&CGIG(user_config_cache), path, path_len + 1, (void **) &entry) == FAILURE) {
763 zend_hash_update(&CGIG(user_config_cache), path, path_len + 1, new_entry, sizeof(user_config_cache_entry), (void **) &entry); local
777 if (!IS_ABSOLUTE_PATH(path, path_len)) {
784 path_len = real_path_len;
787 if (path_len > doc_root_len) {
794 s_len = path_len;
831 uint path_len, doc_root_len, server_name_len; local
861 path_len = strlen(SG(request_info).path_translated);
864 if (!IS_SLASH(SG(request_info).path_translated[path_len])) {
[all...]
/PHP_5_4/TSRM/
H A Dtsrm_virtual_cwd.c288 const size_t path_len = strlen(path); local
294 if (path_len >= 1 && path[1] == ':') {
300 } else if (IS_UNC_PATH(path, path_len)) {
557 static inline unsigned long realpath_cache_key(const char *path, int path_len TSRMLS_DC) /* {{{ */
577 static inline unsigned long realpath_cache_key(const char *path, int path_len) /* {{{ */ argument
580 const char *e = path + path_len;
609 CWD_API void realpath_cache_del(const char *path, int path_len TSRMLS_DC) /* {{{ */
612 unsigned long key = realpath_cache_key(path, path_len TSRMLS_CC);
614 unsigned long key = realpath_cache_key(path, path_len);
620 if (key == (*bucket)->key && path_len
641 realpath_cache_add(const char *path, int path_len, const char *realpath, int realpath_len, int is_dir, time_t t TSRMLS_DC) argument
691 realpath_cache_find(const char *path, int path_len, time_t t TSRMLS_DC) argument
725 realpath_cache_lookup(const char *path, int path_len, time_t t TSRMLS_DC) argument
[all...]
H A Dtsrm_virtual_cwd.h214 int path_len; member in struct:_realpath_cache_bucket
245 CWD_API void realpath_cache_del(const char *path, int path_len TSRMLS_DC);
246 CWD_API realpath_cache_bucket* realpath_cache_lookup(const char *path, int path_len, time_t t TSRMLS_DC);
/PHP_5_4/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_4/ext/session/
H A Dsession.c1547 int path_len, domain_len, argc = ZEND_NUM_ARGS(); local
1551 zend_parse_parameters(argc TSRMLS_CC, "Z|ssbb", &lifetime, &path, &path_len, &domain, &domain_len, &secure, &httponly) == FAILURE) {
1560 zend_alter_ini_entry("session.cookie_path", sizeof("session.cookie_path"), path, path_len, PHP_INI_USER, PHP_INI_STAGE_RUNTIME);

Completed in 72 milliseconds