[wp-trac] [WordPress Trac] #39774: php 7.1 media uploader bug
WordPress Trac
noreply at wordpress.org
Fri Feb 3 01:31:16 UTC 2017
#39774: php 7.1 media uploader bug
--------------------------+-----------------------------
Reporter: drrobotnik | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upload | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
In PHP7.1, when you upload a file with the same name multiple times there
is a `PHP Warning: A non-numeric value encountered in /wp-
includes/functions.php on line 2077`.
The warning is a type casting related. All you need to do to fix is change
the default string value to null.
I've included a very tiny patch and have tested that it fixes the issue
and has no backwards compatibility implications.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39774>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list