#25232 [Opn->Bgs]: --enable-force-cgi-redirect gives Warnings

From: Date: Mon, 25 Aug 2003 22:52:25 +0000
Subject: #25232 [Opn->Bgs]: --enable-force-cgi-redirect gives Warnings
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-46605@lists.php.net to get a copy of this message
 ID:               25232
 Updated by:       derick@php.net
 Reported By:      alex at della dot com dot ua
-Status:           Open
+Status:           Bogus
 Bug Type:         Compile Warning
 Operating System: FeeBSD 4.7
 PHP Version:      4CVS-2003-08-25 (stable)
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php

You can ignore these warnings just fine


Previous Comments:
------------------------------------------------------------------------

[2003-08-25 04:10:39] alex at della dot com dot ua

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 this bug report at http://bugs.php.net/?id=25232&edit=1


Thread (2 messages)

« previous php.bugs (#46605) next »