From: petr dot pavel at pohodasoftware dot cz Operating system: Irrelevant PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: incorrect Czech translation of tempnam() function
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 bug report at http://bugs.php.net/?id=30086&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30086&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30086&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30086&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30086&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30086&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30086&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30086&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30086&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30086&r=support Expected behavior: http://bugs.php.net/fix.php?id=30086&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30086&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30086&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30086&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30086&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30086&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30086&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30086&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30086&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30086&r=mysqlcfg
