WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 3 years ago

#15090 closed defect (bug) (maybelater)

wp_rand() max integer is guessed and might fail

Reported by: 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)

comment:1 hakre4 years ago

Related: #15098

comment:2 hakre4 years ago

Related: #15089 (typo in prev comment)

comment:3 westi3 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.