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

/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 TSRMLS_CC))) {
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 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 (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 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
1205 phar_get_entry_info(phar_archive_data *phar, char *path, int path_len, char **error, int security TSRMLS_DC) argument
1215 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.c459 size_t path_len, actual_len; local
462 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "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 TSRMLS_CC)) {
528 } else if (SUCCESS == phar_split_fname(path, path_len, &arch, &arch_len, &entry, &entry_len, 2, 0 TSRMLS_CC)) {
530 path_len = entry_len;
H A Dphar_internal.h503 static inline void phar_unixify_path_separators(char *path, int path_len) argument
508 for (s = path; s - path < path_len; ++s) {
561 int phar_mount_entry(phar_archive_data *phar, char *filename, int filename_len, char *path, int path_len TSRMLS_DC);
599 phar_entry_info *phar_get_entry_info(phar_archive_data *phar, char *path, int path_len, char **error, int security TSRMLS_DC);
600 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);
601 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);
602 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);
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_php.c235 size_t path_len; local
242 path_len = strlen(path);
245 if (path_len > ext_len) {
246 char *path_ext = path + path_len - ext_len;
H A Dfpm_main.c685 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
689 user_config_cache_entry *entry = zend_hash_str_find_ptr(&CGIG(user_config_cache), path, path_len);
697 zend_hash_str_update_ptr(&CGIG(user_config_cache), path, path_len, entry); local
710 if (!IS_ABSOLUTE_PATH(path, path_len)) {
717 path_len = real_path_len;
720 if (path_len > doc_root_len) {
727 s_len = path_len;
761 uint path_len, doc_root_len, server_name_len; local
785 path_len = strlen(SG(request_info).path_translated);
788 if (!IS_SLASH(SG(request_info).path_translated[path_len])) {
[all...]
/PHP_TRUNK/ext/pcntl/
H A Dpcntl.c753 size_t path_len; local
756 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "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() TSRMLS_CC, "pl", &path, &path_len, &mode) == FAILURE) {
867 size_t path_len; local
875 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "pl|ll", &path, &path_len,
/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 TSRMLS_DC) /* {{{ */ 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 TSRMLS_CC);
168 if (path[path_len-1] != '/') {
259 int path_len; local
287 path_len = strlen(path);
288 if (path_len >
[all...]
/PHP_TRUNK/main/streams/
H A Dglob_wrapper.c45 size_t path_len; member in struct:__anon299
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/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 TSRMLS_DC);
248 CWD_API realpath_cache_bucket* realpath_cache_lookup(const char *path, int path_len, time_t t TSRMLS_DC);
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 TSRMLS_DC) /* {{{ */
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 TSRMLS_DC) /* {{{ */
641 zend_ulong key = realpath_cache_key(path, path_len TSRMLS_CC);
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 TSRMLS_DC) argument
720 realpath_cache_find(const char *path, int path_len, time_t t TSRMLS_DC) argument
754 realpath_cache_lookup(const char *path, int path_len, time_t t TSRMLS_DC) argument
[all...]
/PHP_TRUNK/sapi/cgi/
H A Dcgi_main.c755 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
762 if ((entry = zend_hash_str_find_ptr(&CGIG(user_config_cache), path, path_len)) == NULL) {
767 entry = zend_hash_str_update_ptr(&CGIG(user_config_cache), path, path_len, new_entry);
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...]
/PHP_TRUNK/ext/standard/
H A Dfilestat.c236 size_t path_len; local
238 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &path, &path_len) == FAILURE) {
371 size_t path_len; local
373 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &path, &path_len) == FAILURE) {
1251 zend_hash_str_update(Z_ARRVAL_P(return_value), bucket->path, bucket->path_len, &entry);
H A Dhead.c76 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 TSRMLS_DC) argument
105 len += path_len;
151 if (path && path_len > 0) {
183 size_t 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 size_t 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 Dstring.c1521 size_t path_len; local
1526 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &path, &path_len, &opt) == FAILURE) {
1535 dirname = estrndup(path, path_len);
1536 php_dirname(dirname, path_len);
1544 ret = php_basename(path, path_len, NULL, 0 TSRMLS_CC);
1553 ret = php_basename(path, path_len, NULL, 0 TSRMLS_CC);
1570 ret = php_basename(path, path_len, NULL, 0 TSRMLS_CC);
H A Dbasic_functions.c5693 size_t path_len; local
5699 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &path, &path_len) == FAILURE) {
5703 if (zend_hash_str_exists(SG(rfc1867_uploaded_files), path, path_len)) {
5716 size_t path_len, new_path_len; local
5727 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &path, &path_len, &new_path, &new_path_len) == FAILURE) {
5731 if (!zend_hash_str_exists(SG(rfc1867_uploaded_files), path, path_len)) {
5757 zend_hash_str_del(SG(rfc1867_uploaded_files), path, path_len); local
/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...]
/PHP_TRUNK/win32/
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...]
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_TRUNK/ext/spl/
H A Dspl_directory.c582 size_t path_len; local
596 path = spl_filesystem_object_get_pathname(intern, &path_len TSRMLS_CC);
597 ZVAL_STRINGL(&tmp, path, path_len);
603 spl_filesystem_object_get_path(intern, &path_len TSRMLS_CC);
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 TSRMLS_C
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/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 53 milliseconds