Make WordPress Core

Opened 3 years ago

Closed 23 months ago

#60429 closed defect (bug) (wontfix)

Deprecated: Implicit conversion from float to int loses precision

Reported by: retrovertigo Owned by:
Priority: normal Milestone:
Component: I18N Version:
Severity: minor Keywords: close
Cc: Focuses:

Description

Describe the bug
Running WordPress 6.4.3 this PHP warning comes up:

Deprecated: Implicit conversion from float 4294967295 to int loses precision in /var/www/html/wp-includes/pomo/mo.php on line 208

To Reproduce

  1. Run WordPress 6.4.3
  2. Switch on WP_DEBUG and WP_DEBUG_DISPLAY
  3. Load the site
  4. See warning printed out

See https://github.com/LeoColomb/pomo/issues/16 for a screenshot.

Change History (3)

#1 @sabernhardt
3 years ago

  • Component GeneralI18N

Line 208 is in MO::get_byteorder():

$magic_big = ( (int) - 569244523 ) & 0xFFFFFFFF;

#2 @swissspidy
2 years ago

  • Keywords close added

In 6.5 we added a new i18n library which should not have the same issue, so I am inclined to close this as a wontfix.

#3 @swissspidy
23 months ago

  • Milestone Awaiting Review
  • Resolutionwontfix
  • Status newclosed
Note: See TracTickets for help on using tickets.