|  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: 2011-01-01 16:10 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:
Status: Open Package: Filesystem function related
PHP Version: * OS: *
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 — but make sure to vote on the bug!
Your email address:
Solve the problem:
48 + 33 = ?
Subscribe to this entry?

 [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: *
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Aug 10 20:01:24 2020 UTC