Make WordPress Core

Opened 4 months ago

Last modified 4 weeks ago

#60429 new defect (bug)

Deprecated: Implicit conversion from float to int loses precision

Reported by: retrovertigo's profile retrovertigo Owned by:
Milestone: Awaiting Review Priority: normal
Severity: minor Version:
Component: I18N Keywords: close
Focuses: Cc:


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 for a screenshot.

Change History (2)

#1 @sabernhardt
2 months ago

  • Component changed from General to I18N

Line 208 is in MO::get_byteorder():

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

#2 @swissspidy
4 weeks 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.

Note: See TracTickets for help on using tickets.