From: hb at cgx dot nl Operating system: linux debiann PHP version: 4CVS-2005-01-24 (stable) PHP Bug Type: Compile Warning Bug description: var_unserialize.c line 418 warning
Description: ------------ I got this compile warning during the make process. /home/bonh/php-4.3.10/ext/standard/var_unserializer.c: In function `php_var_unserialize': /home/bonh/php-4.3.10/ext/standard/var_unserializer.c:381: warning: comparison is always false due to limited range of data type When I change line 418 of /ext/standard/var_unserializer.c into if(yych <= (YYCTYPE)'\277') goto yy16; The warning is gone and all runs fine. I compiled on the latest debian unstable I used php4-STABLE-200501241530.tar.gz. my config file is this. "./configure" \ "--with-zlib=/usr/local" \ "--enable-track-vars" \ "--with-mysql=/usr/local/mysql" \ "--with-apache=../apache_1.3.33" \ "--enable-force-cgi-redirect" \ "--enable-discard-path" \ "--enable-calendar" \ "--enable-ftp" \ "--enable-gd-native-ttf " \ "--with-xml" \ "--with-ttf" \ "--with-domxml" \ "--with-sablot=/usr/local" \ "--with-mcrypt=/usr/local" \ "--with-curl=/usr/local" \ "--with-png-dir=/usr/local" \ "--with-jpeg-dir=/usr/local" \ "--with-freetype-dir=/usr/local" \ "--with-tiff-dir=/usr/local" \ "--with-gdbm=/usr/local" \ "--with-t1lib=/usr/local" \ "$@" -- Edit bug report at http://bugs.php.net/?id=31680&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31680&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31680&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31680&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=31680&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=31680&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31680&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31680&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31680&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31680&r=support Expected behavior: http://bugs.php.net/fix.php?id=31680&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31680&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31680&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=31680&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31680&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=31680&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31680&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31680&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31680&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=31680&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=31680&r=mysqlcfg
