Lines Matching refs:newpath_len
2130 size_t newpath_len; in phar_fix_filepath() local
2136 newpath_len = PHAR_G(cwd_len); in phar_fix_filepath()
2137 newpath = emalloc(strlen(path) + newpath_len + 1); in phar_fix_filepath()
2138 memcpy(newpath, PHAR_G(cwd), newpath_len); in phar_fix_filepath()
2142 newpath_len = 1; in phar_fix_filepath()
2183 while (newpath_len > 1 && !IS_BACKSLASH(newpath[newpath_len - 1])) { in phar_fix_filepath()
2184 newpath_len--; in phar_fix_filepath()
2188 newpath[newpath_len] = '\0'; in phar_fix_filepath()
2189 } else if (newpath_len > 1) { in phar_fix_filepath()
2190 --newpath_len; in phar_fix_filepath()
2193 if (newpath_len > 1) { in phar_fix_filepath()
2194 newpath[newpath_len++] = '/'; in phar_fix_filepath()
2195 memcpy(newpath + newpath_len, tok, ptr_length+1); in phar_fix_filepath()
2197 memcpy(newpath + newpath_len, tok, ptr_length+1); in phar_fix_filepath()
2200 newpath_len += ptr_length; in phar_fix_filepath()
2221 *new_len = newpath_len; in phar_fix_filepath()
2222 newpath[newpath_len] = '\0'; in phar_fix_filepath()
2223 return erealloc(newpath, newpath_len + 1); in phar_fix_filepath()