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

From: Date: Tue, 28 Jan 2014 23:11:24 +0000
Subject: Bug #66591 [Opn]: 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-184061@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 Updated by: sixd@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 use of a hardcoded "/tmp" in the latest iteration of the patch looks like an undesired portability issue. Previous Comments: ------------------------------------------------------------------------ [2014-01-28 11:37:45] ondrej@php.net The following patch has been added/updated: Patch Name: kill-tmpnam-usage.patch Revision: 1390909065 URL: https://bugs.php.net/patch-display.php?bug=66591&patch=kill-tmpnam-usage.patch&revision=1390909065 ------------------------------------------------------------------------ [2014-01-28 11:19:22] ondrej@php.net 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 ------------------------------------------------------------------------ [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

« previous php.bugs (#184061) next »