php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #30086 incorrect Czech translation of tempnam() function
Submitted: 2004-09-14 18:35 UTC Modified: 2004-09-15 10:20 UTC
From: petr dot pavel at pohodasoftware dot cz Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: petr dot pavel at pohodasoftware dot cz
New email:
PHP Version: OS:

 

 [2004-09-14 18:35 UTC] petr dot pavel at pohodasoftware dot cz
Description:
------------
Czech translation
http://www.php.net/manual/cs/function.tempnam.php
of man page
http://www.php.net/manual/en/function.tempnam.php
is incorrect or incomplete.

In Expected result you'll find my suggestion for correct translation. In Actual result you'll find present version with *** marking missing or incorrect passages.

Thank you for your hard work.

Expected result:
----------------
Ve specifikovan?m adres??i vytvo?? do?asn? soubor s unik?tn?m n?zvem. Pokud adres?? neexistuje, tempnam()  m??e vytvo?it soubor v syst?mov?m adres??i pro do?asn? soubory.

A? do verze PHP 4.0.6 z?viselo chov?n? funkce tempnam() opera?n?m syst?mu. Na Windows m?la syst?mov? prom?nn? TMP p?ednost p?ed parametrem dir, na Linuxu m? p?edost prom?nn? TMPDIR a SVR4 v?dy pou?ije parametr dir, pokud tento adres?? existuje. Pod?vejte se do dokumentace k va?emu syst?mu na funkci tempnam(3).

Pozn?mka: Pokud PHP nem??e vytvo?it soubor v adres??i zadan?m parametrem dir, pou?ije v?choz? nastaven? syst?mu.

Vrac? n?zev nov?ho do?asn?ho souboru, p?i chyb? pak ?et?zec FALSE.

P??klad 1. p??klad pou?it? funkce tempnam()

<?php
$tmpfname = tempnam("/tmp", "FOO");

$handle = fopen($tmpfname, "w");
fwrite($handle, "zapisuji do docasneho souboru");
fclose($handle);

// tady delej, co chces

unlink($tmpfname);
?> 

    Pozn?mka: Chov?n? t?to funkce bylo zm?n?no ve verzi 4.0.3. Do?asn? soubor je nyn? funkc? rovn?? vytvo?en, proto?e p?edt?m se mohlo omylem nep?edpokl?dat, ?e soubor v souborov?m syst?mu existuje hned po vytvo?en? ?et?zce s jeho n?zvem - tedy d??ve, ne? se skript dostal k tomu jej skute?n? vytvo?it.
Pov?imn?te si, pros?m, ?e soubor mus?te odstranit, pokud ho ji? nepot?ebujete. Automaticky se tak nestane.

Viz tak? tmpfile() a unlink().

Actual result:
--------------
Ve specifikovan?m adres??i vytvo?? do?asn? soubor s unik?tn?m n?zvem. Pokud adres?? neexistuje, tempnam()  m??e vytvo?it soubor v syst?mov?m adres??i pro do?asn? soubory.

*** Chov?n? funkce tempnam() je z?visl? na platform?. Na Windows m? parametr ***dir  p?ednost p?ed syst?movou prom?nnou TMP***, na Linuxu m? p?edost prom?nn? TMPDIR a SVR4 v?dy pou?ije parametr dir, pokud tento adres?? existuje. Pod?vejte se do dokumentace k va?emu syst?mu na funkci tempnam(3).

***

Vrac? n?zev nov?ho do?asn?ho souboru, p?i chyb? pak ?et?zec ***NULL***.

P??klad 1. tempnam() p??klad
$tmpfname = tempnam ("/tmp", "FOO");
***

    Pozn?mka: Chov?n? t?to funkce bylo zm?n?no ve verzi 4.0.3. ***The temporary file is also created to avoid a race condition where the file might appear in the filesystem between the time the string was generated and before the the script gets around to creating the file. ***

Viz tak? tmpfile()***. 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-15 10:20 UTC] vrana@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

Wouldn't you like to join the Czech translation group? Please write me if interested.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Aug 05 17:00:03 2025 UTC