moriyoshi Sun Feb 1 14:56:17 2004 EDT
Modified files: (Branch: PHP_4_3)
/php-src/ext/pcre php_pcre.c
Log:
MFH(r-1.153): POSIX / ISO compliancy.
# this commit is granted by Ilia.
http://cvs.php.net/diff.php/php-src/ext/pcre/php_pcre.c?r1=1.132.2.15&r2=1.132.2.16&ty=u
Index: php-src/ext/pcre/php_pcre.c
diff -u php-src/ext/pcre/php_pcre.c:1.132.2.15 php-src/ext/pcre/php_pcre.c:1.132.2.16
--- php-src/ext/pcre/php_pcre.c:1.132.2.15 Wed Jan 28 16:49:15 2004
+++ php-src/ext/pcre/php_pcre.c Sun Feb 1 14:56:16 2004
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_pcre.c,v 1.132.2.15 2004/01/28 21:49:15 iliaa Exp $ */
+/* $Id: php_pcre.c,v 1.132.2.16 2004/02/01 19:56:16 moriyoshi Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -173,7 +173,7 @@
/* 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 @@
/* 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;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php