diff --git a/ext/standard/string.c b/ext/standard/string.c index cb3a1e0ef7e..f199c03b557 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -2099,7 +2099,7 @@ PHP_FUNCTION(setlocale) /* Remember if locale was changed */ if (loc) { STR_FREE(BG(locale_string)); - BG(strtok_string) = estrdup(retval); + BG(locale_string) = estrdup(retval); } RETVAL_STRING(retval,1);