takagi Fri Jun 23 21:22:07 2006 UTC
Modified files:
/phpdoc/en/reference/misc/functions uniqid.xml
Log:
made it more clear that the non-prefix version works only in PHP 5 and later
(thanks tetuo-san).
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/misc/functions/uniqid.xml?r1=1.8&r2=1.9&diff_format=u
Index: phpdoc/en/reference/misc/functions/uniqid.xml
diff -u phpdoc/en/reference/misc/functions/uniqid.xml:1.8
phpdoc/en/reference/misc/functions/uniqid.xml:1.9
--- phpdoc/en/reference/misc/functions/uniqid.xml:1.8 Sat Nov 6 12:23:06 2004
+++ phpdoc/en/reference/misc/functions/uniqid.xml Fri Jun 23 21:22:07 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
<!-- splitted from ./en/functions/misc.xml, last change in rev 1.2 -->
<refentry id="function.uniqid">
<refnamediv>
@@ -16,7 +16,7 @@
<simpara>
<function>uniqid</function> returns a prefixed unique identifier
based on the current time in microseconds. <parameter>prefix</parameter>
- is optional but can be useful, for instance, if you generate identifiers
+ became optional in PHP 5 but can be useful, for instance, if you generate
identifiers
simultaneously on several hosts that might happen to generate the
identifier at the same microsecond. Up until PHP 4.3.1,
<parameter>prefix</parameter> could only be a maximum of 114
@@ -35,7 +35,7 @@
</simpara>
<note>
<simpara>
- The <parameter>prefix</parameter> parameter became optional in PHP 5.
+ The <parameter>prefix</parameter> parameter is required before PHP 5.
</simpara>
</note>
<para>
@@ -49,6 +49,7 @@
<![CDATA[
<?php
// no prefix
+// works only in PHP 5 and later versions
$token = md5(uniqid());
// better, difficult to guess