php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20992 the use of `tempnam' is dangerous, better use `mkstemp'
Submitted: 2002-12-13 11:53 UTC Modified: 2002-12-13 11:56 UTC
From: darnold at eeinternet dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.0RC3 OS: Gentoo Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: darnold at eeinternet dot com
New email:
PHP Version: OS:

 

 [2002-12-13 11:53 UTC] darnold at eeinternet dot com
[Processor: Intel PII 450Mhz]

Php4.3.0RC3 configured just fine with the following config string:

./configure --with-apxs=/usr/local/apache/bin/apxs --enable-gd --with-png-dir=/usr/local --with-zlib-dir=/usr/local --with-mysql

When I did 'make', however, It exited out with the following text:

 -lcrypt -lresolv -lm -ldl -lnsl -lcrypt  -o sapi/cli/php
ext/mysql/libmysql/my_tempnam.lo: In function `my_tempnam':
/usr/local/src/php-4.3.0RC3/ext/mysql/libmysql/my_tempnam.c:103: the use of `tempnam' is dangerous, better use `mkstemp'

The version of mysql I am using is mysql-3.23.49.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-13 11:56 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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 23:01:35 2024 UTC