Make WordPress Core

Opened 8 months ago

Last modified 6 months 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:

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 (2)

#1 @sabernhardt
7 months ago

  • Component changed from General to I18N

Line 208 is in MO::get_byteorder():

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

#2 @swissspidy
6 months 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.