diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index f12567c5ed0..f93a3447204 100644 --- a/phpdbg_prompt.c +++ b/phpdbg_prompt.c @@ -607,7 +607,11 @@ static const phpdbg_command_t phpdbg_prompt_commands[] = { int phpdbg_do_cmd(const phpdbg_command_t *command, char *cmd_line, size_t cmd_len TSRMLS_DC) /* {{{ */ { char *params = NULL; +#ifndef _WIN32 const char *cmd = strtok_r(cmd_line, " ", ¶ms); +#else + const char *cmd = strtok_s(cmd_line, " ", ¶ms); +#endif size_t expr_len = cmd != NULL ? strlen(cmd) : 0; while (command && command->name) {