# new function: php_get_tmpdir() - bug #35380

- Thread: https://externals.io/message/23133
- Original archive: https://news-web.php.net/php.internals/23133
- Started by Hartmut Holzgraefe on 2006-05-03T22:53:38+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #23133 — Hartmut Holzgraefe — 2006-05-03T22:53:38+00:00

URL: https://externals.io/message/23133#23133

I have added a small function requested by bug #35380 that
exposes the C API function php_get_temorary_directory() to
userland as php_get_tmpdir().

The patch is available from the bug page

   http://bugs.php.net/bug.php?id=35380

I can't oversee whether this has any security implications
although i can't think of any ...

Anny comments before i proceed to commit?


-- 
Hartmut Holzgraefe, Senior Support Engineer                            .
MySQL AB, www.mysql.com

---

## #23134 — Pierre — 2006-05-03T22:55:48+00:00

URL: https://externals.io/message/23133#23134 · In reply to: #23133

On Thu, 04 May 2006 00:53:38 +0200
hartmut@mysql.com (Hartmut Holzgraefe) wrote:

> http://bugs.php.net/bug.php?id=35380

That would really nice to have it. Temp directory detection is a pain.

-- 
Pierre

Did I help you? Please donate :)
http://blog.thepimp.net/index.php/1998/04/12/57-please-donate

---

## #23165 — Hartmut Holzgraefe — 2006-05-06T10:01:26+00:00

URL: https://externals.io/message/23133#23165 · In reply to: #23134

Pierre wrote:
> That would really nice to have it. Temp directory detection is a pain.

added the function and documentation now, but i'm not sure about the
name yet,

php_get_tmpdir() seems to be the better choice to me but

php_tmpdir() would be more in line with the ohter info functions
with php_ prefix it seems?

-- 
Hartmut Holzgraefe, Senior Support Engineer                            .
MySQL AB, www.mysql.com

Are you certified? http://www.mysql.com/training/certification
