From: spam at pasher dot org Operating system: Debian Linux 2.4.20 PHP version: 4.3.5RC1 PHP Bug Type: Compile Warning Bug description: Warning in xml.c
Description: ------------ When compiling PHP (even as of 4.3.5RC1), it outputs the following warning: /php-4.3.5RC1/ext/xml/xml.c: In function `xml_utf8_encode': /php-4.3.5RC1/ext/xml/xml.c:489: warning: comparison is always true due to limited range of data type /php-4.3.5RC1/ext/xml/xml.c:493: warning: comparison is always true due to limited range of data type It looks like the variable in question (c) is declared as unsigned short. It is later being compared to 0x10000 and 0x200000, which is two large for a short. I would assume an unsigned int would be enough. -- Edit bug report at http://bugs.php.net/?id=26937&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26937&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26937&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26937&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26937&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26937&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=26937&r=needscript Try newer version: http://bugs.php.net/fix.php?id=26937&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26937&r=support Expected behavior: http://bugs.php.net/fix.php?id=26937&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26937&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26937&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26937&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26937&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26937&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26937&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26937&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26937&r=float