php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21290 compile failes due to use of 'tempnam' instead of 'mkstemp'
Submitted: 2002-12-30 07:56 UTC Modified: 2002-12-30 07:57 UTC
From: jullrich at euclidian dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.0 OS: Linux 2.4.18 (Redhat 7.3)
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jullrich at euclidian dot com
New email:
PHP Version: OS:

 

 [2002-12-30 07:56 UTC] jullrich at euclidian dot com
The compile is aborted with the following error message:

-----

/usr/local/src/php-4.3.0/ext/mysql/libmysql/my_tempnam.c:103: the use of `tempnam' is dangerous, better use `mkstemp'

-----

to reproduce:
make clean

'./configure' \
'--sysconfdir=/etc/php' \
'--with-openssl' \
'--with-curl=../curl-7.10.2' \
'--with-mysql' \
'--with-gd--with-ttf=../freetype-1.3.1--enable-trans-sid' \
'--enable-sockets' \
'--enable-wddx' \
'--enable-memory-limit' \
'--with-jpeg-dir' \
'--with-xmlrpc' \
'--with-apxs=/usr/local/apache/bin/apxs' \


make

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-30 07:57 UTC] derick@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.

This is NOT and error and just a warning, it's simply the last line in the "make" stage so it _seems_ it aborts.

Derick
 [2002-12-30 08:28 UTC] jullrich at euclidian dot com
thanks! (didn't find the earlier submission .. I did check :-( ).
 [2003-05-05 06:47 UTC] zsombor dot zsuffa at aliat dot ro
Same error occurs on RedHat 9, with the glibc updates from Redhat.

I have glibc 2.3.2-27.9
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 22 13:00:02 2025 UTC