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

12

/PHP_5_3/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
109 if (path_len < 1 || path == NULL) {
113 i = path_len;
634 int php_zip_pcre(char *regexp, int regexp_len, char *path, int path_len, zval *return_value TSRMLS_DC) /* {{{ */ argument
646 if (!IS_ABSOLUTE_PATH(path, path_len)) {
697 if ((path_len + namelist_len + 1) >= MAXPATHLEN) {
699 MAXPATHLEN - 1, (path_len
1661 int pattern_len, add_path_len, remove_path_len, path_len = 0; local
[all...]
/PHP_5_3/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.c696 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
703 if (zend_hash_find(&CGIG(user_config_cache), path, path_len + 1, (void **) &entry) == FAILURE) {
708 zend_hash_update(&CGIG(user_config_cache), path, path_len + 1, new_entry, sizeof(user_config_cache_entry), (void **) &entry); local
722 if (!IS_ABSOLUTE_PATH(path, path_len)) {
729 path_len = real_path_len;
732 if (path_len > doc_root_len) {
739 s_len = path_len;
773 uint path_len, doc_root_len, server_name_len; local
797 path_len = strlen(SG(request_info).path_translated);
800 if (!IS_SLASH(SG(request_info).path_translated[path_len])) {
[all...]
/PHP_5_3/TSRM/
H A Dtsrm_virtual_cwd.c300 const size_t path_len = strlen(path); local
306 if (path_len >= 1 && path[1] == ':') {
312 } else if (IS_UNC_PATH(path, path_len)) {
569 static inline unsigned long realpath_cache_key(const char *path, int path_len TSRMLS_DC) /* {{{ */
589 static inline unsigned long realpath_cache_key(const char *path, int path_len) /* {{{ */ argument
592 const char *e = path + path_len;
621 CWD_API void realpath_cache_del(const char *path, int path_len TSRMLS_DC) /* {{{ */
624 unsigned long key = realpath_cache_key(path, path_len TSRMLS_CC);
626 unsigned long key = realpath_cache_key(path, path_len);
632 if (key == (*bucket)->key && path_len
653 realpath_cache_add(const char *path, int path_len, const char *realpath, int realpath_len, int is_dir, time_t t TSRMLS_DC) argument
703 realpath_cache_find(const char *path, int path_len, time_t t TSRMLS_DC) argument
738 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_3/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_3/ext/posix/
H A Dposix.c837 int path_len; local
841 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sl", &path, &path_len, &mode) == FAILURE) {
845 if (strlen(path) != path_len) {
871 int path_len; local
879 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sl|ll", &path, &path_len,
884 if (strlen(path) != path_len) {
/PHP_5_3/ext/standard/
H A Dfilestat.c237 int path_len; local
239 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &path, &path_len) == FAILURE) {
372 int path_len; local
374 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &path, &path_len) == FAILURE) {
382 if (strlen(path) != path_len) {
1178 zend_hash_update(Z_ARRVAL_P(return_value), bucket->path, bucket->path_len+1, &entry, sizeof(zval *), NULL);
H A Dhead.c77 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
106 len += path_len;
147 if (path && path_len > 0) {
179 int name_len, value_len = 0, path_len = 0, domain_len = 0; local
183 &path_len, &domain, &domain_len, &secure, &httponly) == FAILURE) {
187 if (php_setcookie(name, name_len, value, value_len, expires, path, path_len, domain, domain_len, secure, 1, httponly TSRMLS_CC) == SUCCESS) {
202 int name_len, value_len = 0, path_len = 0, domain_len = 0; local
206 &path_len, &domain, &domain_len, &secure, &httponly) == FAILURE) {
210 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.h33 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);
H A Dstring.c1463 int path_len, have_basename; local
1467 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &path, &path_len, &opt) == FAILURE) {
1477 ret = estrndup(path, path_len);
1478 php_dirname(ret, path_len);
1487 php_basename(path, path_len, NULL, 0, &ret, &ret_len TSRMLS_CC);
1496 php_basename(path, path_len, NULL, 0, &ret, &ret_len TSRMLS_CC);
1513 php_basename(path, path_len, NULL, 0, &ret, &ret_len TSRMLS_CC);
/PHP_5_3/main/
H A Dfopen_wrappers.c152 int path_len; local
161 path_len = strlen(path);
162 if (path_len > (MAXPATHLEN - 1)) {
172 path_len = strlen(resolved_name);
173 memcpy(path_tmp, resolved_name, path_len + 1); /* safe */
210 path_len = path_file - path_tmp + 1;
212 if (path_len > 1 && path_tmp[path_len - 2] == ':') {
213 if (path_len != 3) {
217 path_tmp[path_len]
466 int path_len = strlen(path_info); local
[all...]
H A Dphp_ini.c820 PHPAPI void php_ini_activate_per_dir_config(char *path, uint path_len TSRMLS_DC)
829 if (path_len > MAXPATHLEN) {
834 memcpy(path_bak, path, path_len);
835 path_bak[path_len] = 0;
841 if (has_per_dir_config && path && path_len) {
H A Dphp_ini.h39 PHPAPI void php_ini_activate_per_dir_config(char *path, uint path_len TSRMLS_DC);
/PHP_5_3/main/streams/
H A Dglob_wrapper.c45 size_t path_len; member in struct:__anon258
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_3/sapi/cgi/
H A Dcgi_main.c715 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
722 if (zend_hash_find(&CGIG(user_config_cache), path, path_len + 1, (void **) &entry) == FAILURE) {
727 zend_hash_update(&CGIG(user_config_cache), path, path_len + 1, new_entry, sizeof(user_config_cache_entry), (void **) &entry); local
741 if (!IS_ABSOLUTE_PATH(path, path_len)) {
749 path_len = real_path_len;
752 if (path_len > doc_root_len) {
759 s_len = path_len;
796 uint path_len, doc_root_len, server_name_len; local
820 path_len = strlen(SG(request_info).path_translated);
823 if (!IS_SLASH(SG(request_info).path_translated[path_len])) {
[all...]
H A Dfastcgi.c429 int path_len = strlen(path);
431 if (path_len >= sizeof(sa.sa_unix.sun_path)) {
438 memcpy(sa.sa_unix.sun_path, path, path_len + 1);
439 sock_len = (size_t)(((struct sockaddr_un *)0)->sun_path) + path_len;
/PHP_5_3/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 Dwinutil.h22 int php_win32_check_trailing_space(const char * path, const int path_len);
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...]
/PHP_5_3/ext/phar/
H A Ddirstream.c579 uint path_len; local
625 path_len = strlen(resource->path+1);
627 if (!(entry = phar_get_entry_info_dir(phar, resource->path + 1, path_len, 2, &error, 1 TSRMLS_CC))) {
645 if (key_len > path_len &&
646 memcmp(str_key, resource->path+1, path_len) == 0 &&
647 IS_SLASH(str_key[path_len])) {
666 if (key_len > path_len &&
667 memcmp(str_key, resource->path+1, path_len) == 0 &&
668 IS_SLASH(str_key[path_len])) {
683 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.c175 int phar_mount_entry(phar_archive_data *phar, char *filename, int filename_len, char *path, int path_len TSRMLS_DC) /* {{{ */
182 if (phar_path_check(&path, &path_len, &err) > pcr_is_ok) {
186 if (path_len >= sizeof(".phar")-1 && !memcmp(path, ".phar", sizeof(".phar")-1)) {
194 entry.filename = estrndup(path, path_len);
196 phar_unixify_path_separators(entry.filename, path_len);
198 entry.filename_len = path_len;
235 if (SUCCESS != zend_hash_add(&phar->mounted_dirs, entry.filename, path_len, (void *)&(entry.filename), sizeof(char *), NULL)) {
248 if (SUCCESS == zend_hash_add(&phar->manifest, entry.filename, path_len, (void*)&entry, sizeof(phar_entry_info), NULL)) {
576 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
606 if (!path_len) {
737 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
1458 phar_get_entry_info(phar_archive_data *phar, char *path, int path_len, char **error, int security TSRMLS_DC) argument
1468 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_3/ext/spl/
H A Dspl_directory.c593 int pnlen, path_len; local
607 path = spl_filesystem_object_get_pathname(intern, &path_len TSRMLS_CC);
608 add_assoc_stringl_ex(&zrv, pnstr, pnlen+1, path, path_len, 1);
613 spl_filesystem_object_get_path(intern, &path_len TSRMLS_CC);
615 if (path_len && path_len < intern->file_name_len) {
616 add_assoc_stringl_ex(&zrv, pnstr, pnlen+1, intern->file_name + path_len + 1, intern->file_name_len - (path_len + 1), 1);
862 int path_len; local
868 path = spl_filesystem_object_get_path(intern, &path_len TSRMLS_C
878 int path_len; local
916 int path_len, idx; local
987 int slen = 0, path_len; local
1034 int path_len; local
1398 int path_len; local
[all...]

Completed in 95 milliseconds

12