cvs: Zend(PHP_4_3) / zend_operators.c

From: Date: Sat, 13 Dec 2003 19:29:40 +0000
Subject: cvs: Zend(PHP_4_3) / zend_operators.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2110@lists.php.net to get a copy of this message
moriyoshi Sat Dec 13 14:29:40 2003 EDT Modified files: (Branch: PHP_4_3) /Zend zend_operators.c Log: MFZE2(r-1.172): Fixes for POSIX compliancy. Index: Zend/zend_operators.c diff -u Zend/zend_operators.c:1.129.2.3 Zend/zend_operators.c:1.129.2.4 --- Zend/zend_operators.c:1.129.2.3 Thu Nov 6 15:33:50 2003 +++ Zend/zend_operators.c Sat Dec 13 14:29:40 2003 @@ -1608,8 +1608,8 @@ len = MIN(len1, len2); while (len--) { - c1 = tolower(*s1++); - c2 = tolower(*s2++); + c1 = tolower((int)*(unsigned char *)s1++); + c2 = tolower((int)*(unsigned char *)s2++); if (c1 != c2) { return c1 - c2; } @@ -1627,8 +1627,8 @@ len = MIN(length, MIN(len1, len2)); while (len--) { - c1 = tolower(*s1++); - c2 = tolower(*s2++); + c1 = tolower((int)*(unsigned char *)s1++); + c2 = tolower((int)*(unsigned char *)s2++); if (c1 != c2) { return c1 - c2; }

« previous php.zend-engine.cvs (#2110) next »