Annotation of embedaddon/php/ext/standard/tests/general_functions/bug46587.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #46587 (mt_rand() does not check that max is greater than min).
                      3: --FILE--
                      4: <?php
                      5: 
                      6: var_dump(mt_rand(3,8));
                      7: var_dump(mt_rand(8,3));
                      8: 
                      9: echo "Done.\n";
                     10: ?>
                     11: --EXPECTF--
                     12: int(%d)
                     13: 
                     14: Warning: mt_rand(): max(3) is smaller than min(8) in %s on line %d
                     15: bool(false)
                     16: Done.

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>