Bug #66591 [Opn->Csd]: Compilation warning: the use of `tmpnam' is dangerous, better use `mkstemp'
Edit report at https://bugs.php.net/bug.php?id=66591&edit=1
ID: 66591
Updated by: krakjoe@php.net
Reported by: sixd@php.net
Summary: Compilation warning: the use of `tmpnam' is
dangerous, better use `mkstemp'
-Status: Open
+Status: Closed
Type: Bug
Package: phpdbg
Operating System: Linux
PHP Version: 5.6Git-2014-01-27 (Git)
-Assigned To:
+Assigned To: krakjoe
Block user comment: N
Private report: N
New Comment:
The fix for this bug has been committed.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
This is fixed in phpdbg master, which will be merged into php-src tree before the next alpha.
Windows is still using tmpnam, I'll patch that when I've tested in windows, can't do
that today ...
Previous Comments:
------------------------------------------------------------------------
[2014-01-28 23:11:23] sixd@php.net
The use of a hardcoded "/tmp" in the latest iteration of the patch looks like an undesired
portability issue.
------------------------------------------------------------------------
[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
Thread (5 messages)