[wp-trac] [WordPress Trac] #50913: PHP 8.0: various compatibility fixes

WordPress Trac noreply at wordpress.org
Thu Oct 1 23:59:44 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 jrf):

 I've just gone through some of the more recent change to PHP 8.0 and
 noticed this commit which we may need to account for:
 https://github.com/php/php-
 src/commit/5cb8b04646ed99c794c45f8c24fc5c3c7c59e320

 TL;DR: Looks like support for MySQL < 5.5 is being dropped in PHP 8.0 when
 not using `mysqlnd`.

 This doesn't necessarily mean that WP needs to drop support for those
 older MySQl versions, but it may warrant a safeguard in the installation
 routine.
 I.e. a check that:
 {{{
 => If on PHP 8
   => and the available MySQL version < 5.5.
     => make sure the `mysqlnd` driver is available.
       => Otherwise refuse to install
 }}}


 There may be more places where a check would be warranted. Input welcome.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50913#comment:62>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list