From: Moriyoshi Koizumi Date: Sun, 1 Feb 2004 19:56:16 +0000 (+0000) Subject: MFH(r-1.153): POSIX / ISO compliancy. X-Git-Tag: php-4.3.5RC2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=96338f74c58211c5a3a01ee6d6836dbac41c4675;p=php MFH(r-1.153): POSIX / ISO compliancy. # this commit is granted by Ilia. --- diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 402eef476b..68ea54b8e9 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -173,7 +173,7 @@ PHPAPI pcre* pcre_get_compiled_regex(char *regex, pcre_extra **extra, int *preg_ /* Parse through the leading whitespace, and display a warning if we get to the end without encountering a delimiter. */ - while (isspace((int)*p)) p++; + while (isspace((int)*(unsigned char *)p)) p++; if (*p == 0) { zend_error(E_WARNING, "Empty regular expression"); return NULL; @@ -182,7 +182,7 @@ PHPAPI pcre* pcre_get_compiled_regex(char *regex, pcre_extra **extra, int *preg_ /* Get the delimiter and display a warning if it is alphanumeric or a backslash. */ delimiter = *p++; - if (isalnum((int)delimiter) || delimiter == '\\') { + if (isalnum((int)*(unsigned char *)&delimiter) || delimiter == '\\') { zend_error(E_WARNING, "Delimiter must not be alphanumeric or backslash"); return NULL; }