|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22716 end of make MySQL tempnam is dangerous, better use mkstemp
Submitted: 2003-03-14 16:09 UTC Modified: 2003-03-14 16:28 UTC
From: neuman_peter at hotmail dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.3.2RC1 OS: Debian Linux/GNU 3.0r1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
3 + 22 = ?
Subscribe to this entry?

 [2003-03-14 16:09 UTC] neuman_peter at hotmail dot com

I build the PHP-4.3.2RC1 on my test box only with "./configure" and I get this Warning on end "make"

pt -lresolv -lm -ldl -lnsl -lcrypt -lcrypt  -o sapi/cli/php
ext/mysql/libmysql/my_tempnam.o: In function `my_tempnam':
/home/peter/dev/php/php-4.3.2RC1/ext/mysql/libmysql/my_tempnam.c:103: the use of `tempnam' is dangerous, better use `mkstemp'

Please use mkstemp, Thanks


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-14 16:28 UTC]
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.

see #22715
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun May 28 11:03:41 2023 UTC