[wp-trac] [WordPress Trac] #37570: Parameter 1 to wp_handle_upload_error() expected to be a reference, value given
WordPress Trac
noreply at wordpress.org
Tue Aug 9 11:34:41 UTC 2016
#37570: Parameter 1 to wp_handle_upload_error() expected to be a reference, value
given
-------------------------------------+------------------------------
Reporter: jbrinley | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+------------------------------
Comment (by ocean90):
This is interesting. It looks like the warning was missing in PHP 7.0.0 -
7.0.8 and also in PHP 7.1 Alpha 1 + 2, see https://3v4l.org/fESuN.
The same function uses also a variable function
(https://core.trac.wordpress.org/browser/trunk/src/wp-
admin/includes/file.php?rev=38151&marks=273#L245) which doesn't produce
the warning.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37570#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list