From 3a3fa3064c9d446b1b1997ea03988ec70b0f5867 Mon Sep 17 00:00:00 2001 From: Mark Challoner Date: Tue, 26 May 2015 10:13:57 +0100 Subject: [PATCH] [Filesystem] Added documentation for tempnam --- components/filesystem/introduction.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/components/filesystem/introduction.rst b/components/filesystem/introduction.rst index 74aa259c809..2699e028980 100644 --- a/components/filesystem/introduction.rst +++ b/components/filesystem/introduction.rst @@ -234,6 +234,21 @@ isAbsolutePath // return false $fs->isAbsolutePath('../dir'); +tempnam +~~~~~~~ + +.. versionadded:: 2.7 + The ``tempnam()`` function was introduced in Symfony 2.7. + +:method:`Symfony\\Component\\Filesystem\\Filesystem::tempnam` is a drop-in +replacement for PHP's builtin :phpfunction:`tempnam` function which allows +you to create a temporary file on a stream if the stream is writable. It +returns false on failure. + + $tmpFile = $fs->tempnam('ftp://example.com/tmp', 'FOO'); + +``$tmpFile`` will be the name of the temporary file or false. + dumpFile ~~~~~~~~ pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy