From 96338f74c58211c5a3a01ee6d6836dbac41c4675 Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Sun, 1 Feb 2004 19:56:16 +0000 Subject: [PATCH] MFH(r-1.153): POSIX / ISO compliancy. # this commit is granted by Ilia. --- ext/pcre/php_pcre.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.40.0