PHP :: Bug #26937 :: Warning in xml.c
| Bug #26937 | Warning in xml.c | ||||
|---|---|---|---|---|---|
| Submitted: | 2004-01-16 12:22 UTC | Modified: | 2004-01-16 14:07 UTC | ||
| From: | spam at pasher dot org | Assigned: | |||
| Status: | Closed | Package: | Compile Warning | ||
| PHP Version: | 4.3.5RC1 | OS: | Debian Linux 2.4.20 | ||
| Private report: | No | CVE-ID: | None | ||
[2004-01-16 12:22 UTC] spam at pasher dot org
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.
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2004-01-16 14:07 UTC] sniper@php.net