Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed issue with realpath in ZTS, as VCWD_REALPATH doesn't behave lik…

…e realpath. *sigh*
  • Loading branch information...
commit 290dc9ec6bd350582c4a2c6c394023ef5c6b1d22 1 parent 8cd968c
@derickr authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 xdebug_handler_dbgp.c
View
6 xdebug_handler_dbgp.c
@@ -1217,16 +1217,14 @@ DBGP_FUNC(breakpoint_set)
brk_info->file_len = strlen(brk_info->file);
}
} else {
- char *realpath_file;
+ char realpath_file[MAXPATHLEN];
brk_info->file = xdebug_path_from_url(CMD_OPTION('f') TSRMLS_CC);
/* Now we do some real path checks to resolve symlinks. */
- realpath_file = VCWD_REALPATH(brk_info->file, NULL);
- if (realpath_file) {
+ if (VCWD_REALPATH(brk_info->file, realpath_file)) {
xdfree(brk_info->file);
brk_info->file = xdstrdup(realpath_file);
- free(realpath_file);
}
brk_info->file_len = strlen(brk_info->file);
Please sign in to comment.
Something went wrong with that request. Please try again.