PHP: support non-ASCII characters in identifiers

http://www.php.net/manual/en/language.variables.basics.php
This commit is contained in:
Colomban Wendling 2013-04-11 19:40:22 +02:00
parent 38c5616200
commit 77c45aa82b

View File

@ -492,7 +492,7 @@ static void addToScope (tokenInfo *const token, const vString *const extra)
static boolean isIdentChar (const int c)
{
return (isalnum (c) || c == '_');
return (isalnum (c) || c == '_' || c & 0x80);
}
static int skipToCharacter (const int c)