Lines Matching refs:newpath
2130 char *newpath; in phar_fix_filepath() local
2138 newpath = emalloc(strlen(path) + newpath_len + 1); in phar_fix_filepath()
2139 memcpy(newpath, PHAR_G(cwd), newpath_len); in phar_fix_filepath()
2141 newpath = emalloc(strlen(path) + 2); in phar_fix_filepath()
2142 newpath[0] = '/'; in phar_fix_filepath()
2164 efree(newpath); in phar_fix_filepath()
2172 efree(newpath); in phar_fix_filepath()
2176 efree(newpath); in phar_fix_filepath()
2184 while (newpath_len > 1 && !IS_BACKSLASH(newpath[newpath_len - 1])) { in phar_fix_filepath()
2188 if (newpath[0] != '/') { in phar_fix_filepath()
2189 newpath[newpath_len] = '\0'; in phar_fix_filepath()
2195 newpath[newpath_len++] = '/'; in phar_fix_filepath()
2196 memcpy(newpath + newpath_len, tok, ptr_length+1); in phar_fix_filepath()
2198 memcpy(newpath + newpath_len, tok, ptr_length+1); in phar_fix_filepath()
2223 newpath[newpath_len] = '\0'; in phar_fix_filepath()
2224 return erealloc(newpath, newpath_len + 1); in phar_fix_filepath()