Lines Matching refs:newpath_len
2137 int newpath_len; local
2143 newpath_len = PHAR_G(cwd_len);
2144 newpath = emalloc(strlen(path) + newpath_len + 1);
2145 memcpy(newpath, PHAR_G(cwd), newpath_len);
2149 newpath_len = 1;
2190 #define PREVIOUS newpath[newpath_len - 1]
2192 while (newpath_len > 1 && !IS_BACKSLASH(PREVIOUS)) {
2193 newpath_len--;
2197 newpath[newpath_len] = '\0';
2198 } else if (newpath_len > 1) {
2199 --newpath_len;
2202 if (newpath_len > 1) {
2203 newpath[newpath_len++] = '/';
2204 memcpy(newpath + newpath_len, tok, ptr_length+1);
2206 memcpy(newpath + newpath_len, tok, ptr_length+1);
2209 newpath_len += ptr_length;
2230 *new_len = newpath_len;
2231 newpath[newpath_len] = '\0';
2232 return erealloc(newpath, newpath_len + 1);