From: alex at della dot com dot ua Operating system: FeeBSD 4.7 PHP version: 4CVS-2003-08-25 (stable) PHP Bug Type: Compile Warning Bug description: --enable-force-cgi-redirect gives Warnings
Description: ------------ When I configure like: srv# ./configure --enable-memory-limit --with-config-file-path=./ --with-mysql --enable-force-cgi-redirect --enable-discard-path --enable-fastcgi Make gives me the Warning messages: /usr/src/MySRC/php4-STABLE-200308250530/ext/standard/var_unserializer.c: In function `php_var_unserialize': /usr/src/MySRC/php4-STABLE-200308250530/ext/standard/var_unserializer.c:308: warning: comparison is always false due to limited range of data type /usr/src/MySRC/php4-STABLE-200308250530/sapi/cgi/cgi_main.c: In function `main': /usr/src/MySRC/php4-STABLE-200308250530/sapi/cgi/cgi_main.c:1048: warning: passing arg 2 of `cfg_get_long' from incompatible pointer type ext/mysql/libmysql/my_tempnam.o: In function `my_tempnam': /usr/src/MySRC/php4-STABLE-200308250530/ext/mysql/libmysql/my_tempnam.c(.text+0x46): warning: tempnam() possibly used unsafely; consider using mkstemp() ext/mysql/libmysql/my_tempnam.o: In function `my_tempnam': /usr/src/MySRC/php4-STABLE-200308250530/ext/mysql/libmysql/my_tempnam.c(.text+0x46): warning: tempnam() possibly used unsafely; consider using mkstemp() But when I do: srv# ./configure --enable-memory-limit --with-config-file-path=./ --with-mysql --enable-discard-path --enable-fastcgi Make gives: /usr/src/MySRC/php4-STABLE-200308250530/ext/standard/var_unserializer.c: In function `php_var_unserialize': /usr/src/MySRC/php4-STABLE-200308250530/ext/standard/var_unserializer.c:308: warning: comparison is always false due to limited range of data type ext/mysql/libmysql/my_tempnam.o: In function `my_tempnam': /usr/src/MySRC/php4-STABLE-200308250530/ext/mysql/libmysql/my_tempnam.c(.text+0x46): warning: tempnam() possibly used unsafely; consider using mkstemp() ext/mysql/libmysql/my_tempnam.o: In function `my_tempnam': /usr/src/MySRC/php4-STABLE-200308250530/ext/mysql/libmysql/my_tempnam.c(.text+0x46): warning: tempnam() possibly used unsafely; consider using mkstemp() How can I build a CGI version with --enable-force-cgi-redirect? Is it safe to ignore warnings about var_unserializer? I will be wery grateful for help. Thanks. P.S. I tried to use the latest CVS version (php4-STABLE-200308250730). Expected result: ---------------- I just need a secure CGI version of PHP. It builds, but wont't work. I think, that the problem in a warning messages. Is I'm right? Or I have a problem with configuration? Is it safe to ignore all the warnings I write above? Actual result: -------------- I can make a mistake, but it seems that CGI version vont't work. Any script gives me "Maximum execution time exceeded" error message. It is strange, but the same CGI version works if it runs from command line. -- Edit bug report at http://bugs.php.net/?id=25232&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25232&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25232&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25232&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25232&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25232&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25232&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25232&r=support Expected behavior: http://bugs.php.net/fix.php?id=25232&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25232&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25232&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25232&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25232&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25232&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25232&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25232&r=gnused