[wp-trac] [WordPress Trac] #51988: Call to undefined function mysql_connect()

WordPress Trac noreply at wordpress.org
Tue Dec 20 00:34:32 UTC 2022


#51988: Call to undefined function mysql_connect()
------------------------------+-----------------------------
 Reporter:  bgin              |       Owner:  (none)
     Type:  defect (bug)      |      Status:  reopened
 Priority:  normal            |   Milestone:  Future Release
Component:  Database          |     Version:  5.6
 Severity:  normal            |  Resolution:
 Keywords:  php8 needs-patch  |     Focuses:
------------------------------+-----------------------------
Changes (by azaozz):

 * keywords:  php8 => php8 needs-patch


Comment:

 Replying to [comment:17 sc0ttkclark]:
 > Seems like we'd want to check if the function `mysql_connect` exists

 +1, sounds better than just allowing a fatal error :)

 > For testing this, I'm not sure...

 Yea, seems pretty hard to test. On the other hand this change is a super
 simple `if... elseif... that would do `function_exists()`. Not sure it
 needs that much testing.

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


More information about the wp-trac mailing list