Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…e realpath. *sigh*
  • Loading branch information...
commit 290dc9ec6bd350582c4a2c6c394023ef5c6b1d22 1 parent 8cd968c
Derick Rethans authored

Showing 1 changed file with 2 additions and 4 deletions. Show diff stats Hide diff stats

  1. 6  xdebug_handler_dbgp.c
6  xdebug_handler_dbgp.c
@@ -1217,16 +1217,14 @@ DBGP_FUNC(breakpoint_set)
1217 1217
 				brk_info->file_len = strlen(brk_info->file);
1218 1218
 			}
1219 1219
 		} else {
1220  
-			char *realpath_file;
  1220
+			char realpath_file[MAXPATHLEN];
1221 1221
 
1222 1222
 			brk_info->file = xdebug_path_from_url(CMD_OPTION('f') TSRMLS_CC);
1223 1223
 
1224 1224
 			/* Now we do some real path checks to resolve symlinks. */
1225  
-			realpath_file = VCWD_REALPATH(brk_info->file, NULL);
1226  
-			if (realpath_file) {
  1225
+			if (VCWD_REALPATH(brk_info->file, realpath_file)) {
1227 1226
 				xdfree(brk_info->file);
1228 1227
 				brk_info->file = xdstrdup(realpath_file);
1229  
-				free(realpath_file);
1230 1228
 			}
1231 1229
 
1232 1230
 			brk_info->file_len = strlen(brk_info->file);

0 notes on commit 290dc9e

Please sign in to comment.
Something went wrong with that request. Please try again.