[wp-trac] [WordPress Trac] #39774: php 7.1 media uploader bug
WordPress Trac
noreply at wordpress.org
Fri Feb 17 21:23:53 UTC 2017
#39774: php 7.1 media uploader bug
-----------------------------------+-----------------------------
Reporter: drrobotnik | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.7.3
Component: Upload | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch fixed-major | Focuses:
-----------------------------------+-----------------------------
Changes (by SergeyBiryukov):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"40075"]:
{{{
#!CommitTicketReference repository="" revision="40075"
Media: In `wp_unique_filename()`, use explicit type casting when
incrementing `$number`.
This prevents the "non-numeric value encountered" warning in PHP 7.1,
caused by trying to increment an empty string on the first loop iteration.
Props drrobotnik for initial patch.
Merges [40039] to the 4.7 branch.
Fixes #39774.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39774#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list