Lines Matching refs:path_len
60 static int LoadDirectory(HashTable *directories, HKEY key, char *path, int path_len, HashTable *par… in LoadDirectory() argument
116 zend_hash_update(directories, path, path_len+1, &ht, sizeof(HashTable*), NULL); in LoadDirectory()
131 char *new_path = (char*)emalloc(path_len+max_key+2); in LoadDirectory()
140 if (path_len) { in LoadDirectory()
141 memcpy(new_path, path, path_len); in LoadDirectory()
142 new_path[path_len] = '/'; in LoadDirectory()
143 memcpy(new_path+path_len+1, name, name_len+1); in LoadDirectory()
144 zend_str_tolower(new_path, path_len+name_len+1); in LoadDirectory()
145 name_len += path_len+1; in LoadDirectory()
175 int path_len; in UpdateIniFromRegistry() local
243 path_len = 0; in UpdateIniFromRegistry()
244 while (path[path_len] != 0) { in UpdateIniFromRegistry()
245 if (path[path_len] == '\\') { in UpdateIniFromRegistry()
246 path[path_len] = '/'; in UpdateIniFromRegistry()
248 path_len++; in UpdateIniFromRegistry()
250 zend_str_tolower(path, path_len); in UpdateIniFromRegistry()
251 while (path_len >= 0) { in UpdateIniFromRegistry()
252 if (zend_hash_find(PW32G(registry_directories), path, path_len+1, (void**)&pht) == SUCCESS) { in UpdateIniFromRegistry()
268 if (--path_len > 0) { in UpdateIniFromRegistry()
269 while (path_len > 0 && path[path_len] != '/') { in UpdateIniFromRegistry()
270 path_len--; in UpdateIniFromRegistry()
273 path[path_len] = 0; in UpdateIniFromRegistry()