Make WordPress Core

Opened 14 years ago

Closed 13 years ago

#15090 closed defect (bug) (maybelater)

wp_rand() max integer is guessed and might fail

Reported by: hakre's profile hakre Owned by:
Milestone: Priority: low
Severity: minor Version: 3.0
Component: General Keywords:
Focuses: Cc:

Description

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 PHP_INT_MAX for 3.0.x and 3.1.x.

Change History (3)

#1 @hakre
14 years ago

Related: #15098

#2 @hakre
14 years ago

Related: #15089 (typo in prev comment)

#3 @westi
13 years ago

  • Milestone Awaiting Review deleted
  • Priority changed from normal to low
  • Resolution set to maybe later
  • Severity changed from normal to minor
  • Status changed from new to closed

No patch and no traction closing for now.

Note: See TracTickets for help on using tickets.