diff options
Diffstat (limited to 'ext/standard/exec.c')
| -rw-r--r-- | ext/standard/exec.c | 7 | 
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/standard/exec.c b/ext/standard/exec.c index 0f00df2665..79157b8186 100644 --- a/ext/standard/exec.c +++ b/ext/standard/exec.c @@ -299,6 +299,11 @@ PHPAPI char *php_escape_shell_cmd(char *str)  				}  				cmd[y++] = str[x];  				break; +#else +			/* This is Windows specific for enviromental variables */ +			case '%': +				cmd[y++] = ''; +				break;  #endif  			case '#': /* This is character-set independent */  			case '&': @@ -322,8 +327,6 @@ PHPAPI char *php_escape_shell_cmd(char *str)  			case '\x0A': /* excluding these two */  			case '\xFF':  #ifdef PHP_WIN32 -			/* This is Windows specific for enviromental variables */ -			case '%':  				cmd[y++] = '^';  #else  				cmd[y++] = '\\';  | 
