Lines Matching refs:newpath
2133 char *newpath; in phar_fix_filepath() local
2141 newpath = emalloc(strlen(path) + newpath_len + 1); in phar_fix_filepath()
2142 memcpy(newpath, PHAR_G(cwd), newpath_len); in phar_fix_filepath()
2144 newpath = emalloc(strlen(path) + 2); in phar_fix_filepath()
2145 newpath[0] = '/'; in phar_fix_filepath()
2167 efree(newpath); in phar_fix_filepath()
2175 efree(newpath); in phar_fix_filepath()
2179 efree(newpath); in phar_fix_filepath()
2187 #define PREVIOUS newpath[newpath_len - 1] in phar_fix_filepath()
2193 if (newpath[0] != '/') { in phar_fix_filepath()
2194 newpath[newpath_len] = '\0'; in phar_fix_filepath()
2200 newpath[newpath_len++] = '/'; in phar_fix_filepath()
2201 memcpy(newpath + newpath_len, tok, ptr_length+1); in phar_fix_filepath()
2203 memcpy(newpath + newpath_len, tok, ptr_length+1); in phar_fix_filepath()
2228 newpath[newpath_len] = '\0'; in phar_fix_filepath()
2229 return erealloc(newpath, newpath_len + 1); in phar_fix_filepath()