Bug #66591 [PATCH]: Compilation warning: the use of `tmpnam' is dangerous, better use `mkstemp'

From: Date: Tue, 28 Jan 2014 11:19:22 +0000
Subject: Bug #66591 [PATCH]: Compilation warning: the use of `tmpnam' is dangerous, better use `mkstemp'
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184050@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66591&edit=1

 ID:                 66591
 Patch added by:     ondrej@php.net
 Reported by:        sixd@php.net
 Summary:            Compilation warning:  the use of `tmpnam' is
                     dangerous, better use `mkstemp'
 Status:             Open
 Type:               Bug
 Package:            phpdbg
 Operating System:   Linux
 PHP Version:        5.6Git-2014-01-27 (Git)
 Block user comment: N
 Private report:     N

 New Comment:

The following patch has been added/updated:

Patch Name: kill-tmpnam-usage.patch
Revision:   1390907962
URL:        https://bugs.php.net/patch-display.php?bug=66591&patch=kill-tmpnam-usage.patch&revision=1390907962


Previous Comments:
------------------------------------------------------------------------
[2014-01-27 22:08:51] sixd@php.net

Description:
------------
Compiling PHP 5.6 on Oracle Linux 5.10 (equivalent to RHEL 5.10) gives the following warning:

sapi/phpdbg/phpdbg.o: In function `main':
sapi/phpdbg/phpdbg.c:875: warning: the use of tmpnam' is dangerous, better use
mkstemp'

The compiler is: gcc version 4.1.2 20080704 (Red Hat 4.1.2-54)



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=66591&edit=1


Thread (5 messages)

« previous php.bugs (#184050) next »