ID:               30086
 Updated by:       [EMAIL PROTECTED]
 Reported By:      petr dot pavel at pohodasoftware dot cz
-Status:           Open
+Status:           Closed
 Bug Type:         Documentation problem
 Operating System: Irrelevant
 PHP Version:      Irrelevant
 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[2004-09-14 18:35:27] 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()***. 


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=30086&edit=1

Reply via email to