Lines Matching refs:newpath_len
2089 size_t newpath_len; in phar_fix_filepath() local
2095 newpath_len = PHAR_G(cwd_len); in phar_fix_filepath()
2096 newpath = emalloc(strlen(path) + newpath_len + 1); in phar_fix_filepath()
2097 memcpy(newpath, PHAR_G(cwd), newpath_len); in phar_fix_filepath()
2101 newpath_len = 1; in phar_fix_filepath()
2142 #define PREVIOUS newpath[newpath_len - 1] in phar_fix_filepath()
2144 while (newpath_len > 1 && !IS_BACKSLASH(PREVIOUS)) { in phar_fix_filepath()
2145 newpath_len--; in phar_fix_filepath()
2149 newpath[newpath_len] = '\0'; in phar_fix_filepath()
2150 } else if (newpath_len > 1) { in phar_fix_filepath()
2151 --newpath_len; in phar_fix_filepath()
2154 if (newpath_len > 1) { in phar_fix_filepath()
2155 newpath[newpath_len++] = '/'; in phar_fix_filepath()
2156 memcpy(newpath + newpath_len, tok, ptr_length+1); in phar_fix_filepath()
2158 memcpy(newpath + newpath_len, tok, ptr_length+1); in phar_fix_filepath()
2161 newpath_len += ptr_length; in phar_fix_filepath()
2182 *new_len = newpath_len; in phar_fix_filepath()
2183 newpath[newpath_len] = '\0'; in phar_fix_filepath()
2184 return erealloc(newpath, newpath_len + 1); in phar_fix_filepath()