Index: ext/json/ext/parser/unicode.c =================================================================== --- ext/json/ext/parser/unicode.c (revision 22918) +++ ext/json/ext/parser/unicode.c (working copy) @@ -81,7 +81,7 @@ buf[1] = *p++; buf[2] = *p++; buf[3] = *p++; - tmpPtr[i] = strtol(buf, NULL, 16); + tmpPtr[i] = (UTF16)strtol(buf, NULL, 16); p += 2; }