From 04988bdb61eb4dfb89c8d15f4f03289d10071901 Mon Sep 17 00:00:00 2001 From: Sherif Ramadan Date: Thu, 15 Nov 2012 17:44:11 +0000 Subject: [PATCH] Added change log entry for mt_rand checking that max > min parameter, also fixes bug #66559 -- patch by Lonny git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328367 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/math/functions/mt-rand.xml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/reference/math/functions/mt-rand.xml b/reference/math/functions/mt-rand.xml index bb8091fe0b..47a2843155 100644 --- a/reference/math/functions/mt-rand.xml +++ b/reference/math/functions/mt-rand.xml @@ -62,7 +62,8 @@ &reftitle.returnvalues; A random integer value between min (or 0) - and max (or mt_getrandmax, inclusive) + and max (or mt_getrandmax, inclusive), + or &false; if max is less than min. @@ -77,6 +78,13 @@ + + 5.3.4 + + Issues an E_WARNING and returns &false; if + max < min. + + &changelog.randomseed;