[wp-trac] [WordPress Trac] #50913: PHP 8.0: various compatibility fixes
WordPress Trac
noreply at wordpress.org
Wed Sep 16 01:46:40 UTC 2020
#50913: PHP 8.0: various compatibility fixes
-------------------------------------------+-------------------------------
Reporter: jrf | Owner: SergeyBiryukov
Type: task (blessed) | Status: reviewing
Priority: normal | Milestone: 5.6
Component: General | Version:
Severity: normal | Resolution:
Keywords: php8 has-patch needs-dev-note | Focuses: coding-standards
-------------------------------------------+-------------------------------
Comment (by SergeyBiryukov):
In [changeset:"48980" 48980]:
{{{
#!CommitTicketReference repository="" revision="48980"
Code Modernization: Return an empty string from `wpdb::_real_escape()` if
a non-scalar value is passed.
This avoids a fatal error on PHP 8 caused by passing a non-string value to
` mysqli_real_escape_string()`, and maintains the current behaviour.
See #50913, #50639.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50913#comment:31>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list