|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #49211 Provide mkdtemp(3) equivalent
Submitted: 2009-08-10 15:27 UTC Modified: 2021-08-09 13:17 UTC
Avg. Score:4.0 ± 0.8
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: crrodriguez at opensuse dot org Assigned: cmb (profile)
Status: Wont fix Package: Filesystem function related
PHP Version: * OS: *
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.
Bug Type:
From: crrodriguez at opensuse dot org
New email:
PHP Version: OS:


 [2009-08-10 15:27 UTC] crrodriguez at opensuse dot org
There is no function in the core to create a temporary directory safely. I think we need to provide an equivalent to mkdtemp(3)

Reproduce code:

Expected result:
string mkdtemp(string $dir  , string $prefix )

with results identical to

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-01 16:08 UTC]
-Package: Feature/Change Request +Package: Filesystem function related
 [2011-01-01 16:08 UTC]
-Operating System: All +Operating System: *
 [2011-01-01 16:10 UTC]
-PHP Version: 5.3SVN-2009-08-10 (SVN) +PHP Version: *
 [2021-08-09 13:17 UTC]
-Status: Open +Status: Wont fix -Assigned To: +Assigned To: cmb
 [2021-08-09 13:17 UTC]
> I think we need to provide an equivalent to mkdtemp(3)

Apparently, not many others agree with this, so I'm closing as
WONTFIX.  Anybody still interested in this feature, please pursue
the RFC process[1].

[1] <>
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 25 09:01:28 2024 UTC