php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21407 the use of `tempnam' is dangerous, better use `mkstemp'
Submitted: 2003-01-03 22:33 UTC Modified: 2003-01-03 23:29 UTC
From: wi777 at yahoo dot com dot tw Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.0 OS: redhat 8
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: wi777 at yahoo dot com dot tw
New email:
PHP Version: OS:

 

 [2003-01-03 22:33 UTC] wi777 at yahoo dot com dot tw
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'


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-03 23:29 UTC] pollita@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.

Thank you for your interest in PHP.

Please use the advanced search feature of the bugs.php.net website.

Several people have reported this warning (yes: warning, not failure) and have been given an explanation for why it occours.

I'll be nice and save you the trouble of clicking "search" just this once:

Your compile was successful.  While compiling sapi/cli/php a WARNING was issued.  You probably saw the same error a few lines up during the compile of sapi/cgi/php.  Note: warnings do not stop compilations, only errors do that.

Ignore this error for now.  It has been resolved in CVS already so that the next release of PHP will not show this.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 09:01:26 2024 UTC