From: krakjoe Date: Tue, 12 Nov 2013 13:21:55 +0000 (+0000) Subject: ... X-Git-Tag: php-5.6.0alpha1~110^2~423^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=277b10a5c059437754452b6de7e42aa6bde64e13;p=php ... --- diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index 3040b80d26..6bfc16a70c 100644 --- a/phpdbg_prompt.c +++ b/phpdbg_prompt.c @@ -615,7 +615,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) {