[wp-trac] [WordPress Trac] #53282: "A non-numeric value encountered" warning when checking mbstring.func_overload

WordPress Trac noreply at wordpress.org
Wed May 26 16:05:05 UTC 2021


#53282: "A non-numeric value encountered" warning when checking
mbstring.func_overload
----------------------------+-----------------------------
 Reporter:  SergeyBiryukov  |       Owner:  SergeyBiryukov
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:  5.8
Component:  General         |     Version:
 Severity:  normal          |  Resolution:  fixed
 Keywords:  has-patch       |     Focuses:
----------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"51032" 51032]:
 {{{
 #!CommitTicketReference repository="" revision="51032"
 General: Avoid a PHP warning when checking the `mbstring.func_overload`
 PHP value.

 This avoids "A non-numeric value encountered" warning when
 `mbstring.func_overload` is set to something other than a numeric string,
 e.g. an empty string instead of the default `'0'` value.

 Props djbu.
 Fixes #53282.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53282#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list