#31680 [Opn]: var_unserialize.c line 418 warning
ID: 31680
Updated by: helly@php.net
Reported By: hb at cgx dot nl
Status: Open
Bug Type: Compile Warning
-Operating System: linux debiann
+Operating System: *
-PHP Version: 4CVS-2005-01-24 (stable)
+PHP Version: 4.*, 5.*
-Assigned To:
+Assigned To: sesser
New Comment:
Obviously we need to use re2c 0.9.3!
Previous Comments:
------------------------------------------------------------------------
[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
Thread (5 messages)