svn: /phpdoc/en/trunk/reference/math/functions/ mt-rand.xml

From: Date: Thu, 15 Nov 2012 17:44:11 +0000
Subject: svn: /phpdoc/en/trunk/reference/math/functions/ mt-rand.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-10725@lists.php.net to get a copy of this message
googleguy Thu, 15 Nov 2012 17:44:11 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=328367 Log: Added change log entry for mt_rand checking that max > min parameter, also fixes bug #66559 -- patch by Lonny Bug: https://bugs.php.net/66559 (error getting bug information) Changed paths: U phpdoc/en/trunk/reference/math/functions/mt-rand.xml Modified: phpdoc/en/trunk/reference/math/functions/mt-rand.xml =================================================================== --- phpdoc/en/trunk/reference/math/functions/mt-rand.xml 2012-11-15 16:52:26 UTC (rev 328366) +++ phpdoc/en/trunk/reference/math/functions/mt-rand.xml 2012-11-15 17:44:11 UTC (rev 328367) @@ -62,7 +62,8 @@ &reftitle.returnvalues; <para> A random integer value between <parameter>min</parameter> (or 0) - and <parameter>max</parameter> (or <function>mt_getrandmax</function>, inclusive) + and <parameter>max</parameter> (or <function>mt_getrandmax</function>, inclusive), + or &false; if <parameter>max</parameter> is less than <parameter>min</parameter>. </para> </refsect1> <refsect1 role="changelog"> @@ -77,6 +78,13 @@ </row> </thead> <tbody> + <row> + <entry>5.3.4</entry> + <entry> + Issues an <constant>E_WARNING</constant> and returns &false; if + <parameter>max</parameter> &lt; <parameter>min</parameter>. + </entry> + </row> &changelog.randomseed; </tbody> </tgroup>

« previous php.doc.cvs (#10725) next »