summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <moriyoshi@php.net>2004-02-01 19:56:16 +0000
committerMoriyoshi Koizumi <moriyoshi@php.net>2004-02-01 19:56:16 +0000
commit96338f74c58211c5a3a01ee6d6836dbac41c4675 (patch)
tree09f5316203096056afdb82fc54ad8ff83c2faa08
parent0bf4ee95b68195714de8f2fb0f6e9272db7f7301 (diff)
downloadphp-git-96338f74c58211c5a3a01ee6d6836dbac41c4675.tar.gz
MFH(r-1.153): POSIX / ISO compliancy.
# this commit is granted by Ilia.
-rw-r--r--ext/pcre/php_pcre.c4
1 files 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;
}