[wp-trac] [WordPress Trac] #15090: wp_rand() max integer is guessed and might fail
WordPress Trac
wp-trac at lists.automattic.com
Mon Oct 11 02:31:06 UTC 2010
#15090: wp_rand() max integer is guessed and might fail
--------------------------+-------------------------------------------------
Reporter: hakre | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.0
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
the wp_rand() function returns a (forced) integer value. for this it
assumes a maximum of a 32 bit unsigned integer.
wordpress uses signed integer values. the made assumption will fail on 32
bit systems then.
wordpress minimum php requirements prevent the use of constants like
[http://php.net/manual/en/reserved.constants.php PHP_INT_MAX] for 3.0.x
and 3.1.x.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15090>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list