[wp-trac] [WordPress Trac] #39774: php 7.1 media uploader bug
WordPress Trac
noreply at wordpress.org
Fri Feb 3 20:57:40 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 | Focuses:
--------------------------+-----------------------------
Changes (by SergeyBiryukov):
* owner: => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"40039"]:
{{{
#!CommitTicketReference repository="" revision="40039"
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.
Fixes #39774.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39774#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list