rfc:tempnam-suffix
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
rfc:tempnam-suffix [2014/01/25 09:12] – created neufeind | rfc:tempnam-suffix [2017/09/22 13:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== PHP RFC: Add suffix-parameter to tempnam ====== | ====== PHP RFC: Add suffix-parameter to tempnam ====== | ||
- | * Version: | + | * Version: |
* Date: 2013-02-25 | * Date: 2013-02-25 | ||
* Author: Stefan Neufeind, neufeind@php.net | * Author: Stefan Neufeind, neufeind@php.net | ||
Line 9: | Line 9: | ||
Current it is possible to optionally specify a prefix to generated filenames. In some cases however it is needed to create files with a certain suffix (like a file-extension) because other tools rely on for example a graphic-name ending with .png. | Current it is possible to optionally specify a prefix to generated filenames. In some cases however it is needed to create files with a certain suffix (like a file-extension) because other tools rely on for example a graphic-name ending with .png. | ||
+ | |||
+ | There is already a " | ||
===== Proposal ===== | ===== Proposal ===== | ||
Line 16: | Line 18: | ||
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== | ||
- | Internal API-changes since the additional parameter is added. | + | The suffix-parameter is optional. Thus it is transparent to any existing PHP-code in use. |
+ | |||
+ | Only internal API if affected because of the additional parameter | ||
===== Proposed PHP Version(s) ===== | ===== Proposed PHP Version(s) ===== | ||
Line 33: | Line 37: | ||
https:// | https:// | ||
+ | |||
+ | ===== Documentation-snippets ===== | ||
+ | |||
+ | string tempnam ( string $dir , string $prefix [, string $suffix] ) | ||
+ | |||
+ | suffix | ||
+ | |||
+ | Changelog: | ||
+ | 5.6.0 The suffix parameter was added | ||
+ | |||
+ | |||
+ | Example #2 tempnam() example | ||
+ | |||
+ | < | ||
+ | $tmpfname = tempnam("/ | ||
+ | echo $tmpfname; // will be "/ | ||
+ | </ |
rfc/tempnam-suffix.1390641139.txt.gz · Last modified: 2017/09/22 13:28 (external edit)