[wp-trac] [WordPress Trac] #50639: [PHP 8] Add @requires annotations for PHPUnit tests that assert engine-enforced constraints
WordPress Trac
noreply at wordpress.org
Wed Sep 16 01:46:41 UTC 2020
#50639: [PHP 8] Add @requires annotations for PHPUnit tests that assert engine-
enforced constraints
------------------------------------------+-----------------------------
Reporter: ayeshrajans | Owner: SergeyBiryukov
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 5.6
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: php8 has-patch needs-refresh | Focuses:
------------------------------------------+-----------------------------
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/50639#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list