#21407 [NEW]: the use of `tempnam' is dangerous, better use `mkstemp'
| From: | wi777 at yahoo dot com dot tw | Date: | Sat, 04 Jan 2003 04:33:20 +0000 |
| Subject: | #21407 [NEW]: the use of `tempnam' is dangerous, better use `mkstemp' | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-29034@lists.php.net to get a copy of this message | ||
From: wi777@yahoo.com.tw
Operating system: redhat 8
PHP version: 4.3.0
PHP Bug Type: Compile Failure
Bug description: the use of
tempnam' is dangerous, better use mkstemp'
I upgrade to php-4.3.0 from 4.2.3 thru mysql 3.23.54a rpm packages in
redhat 8.
mysql started already
then install php in static module style
cd apache_1.3.27
./configure
cd php-4.3.0
./configure \
--with-apache=../apache_1.3.27 \
--with-config-file-path=/var/www/conf \
--with-mysql \
--enable-bcmath \
--disable-debug \
--enable-track-vars \
--enable-i18n \
--enable-mbregex \
make
then error is
...................
-lcrypt -lresolv -lm -ldl -lnsl -lcrypt -o sapi/cli/php
ext/mysql/libmysql/my_tempnam.o: In function `my_tempnam':
/root/php-4.3.0/ext/mysql/libmysql/my_tempnam.c:103: the use of `tempnam'
is dangerous, better use `mkstemp'
--
Edit bug report at http://bugs.php.net/?id=21407&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21407&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=21407&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=21407&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21407&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=21407&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=21407&r=support
Expected behavior: http://bugs.php.net/fix.php?id=21407&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=21407&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=21407&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=21407&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21407&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=21407&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=21407&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=21407&r=gnused