#31680 [Opn->Asn]: var_unserialize.c line 418 warning

From: Date: Mon, 24 Jan 2005 21:44:10 +0000
Subject: #31680 [Opn->Asn]: var_unserialize.c line 418 warning
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-72759@lists.php.net to get a copy of this message
ID: 31680 Updated by: sniper@php.net Reported By: hb at cgx dot nl -Status: Open +Status: Assigned Bug Type: Compile Warning Operating System: * -PHP Version: 4.*, 5.* +PHP Version: 4CVS, 5CVS (2005-01-24) -Assigned To: sesser +Assigned To: sniper Previous Comments: ------------------------------------------------------------------------ [2005-01-24 19:37:07] helly@php.net Obviously we need to use re2c 0.9.3! ------------------------------------------------------------------------ [2005-01-24 16:55:37] hb at cgx dot nl 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 this bug report at http://bugs.php.net/?id=31680&edit=1

« previous php.bugs (#72759) next »