[wp-trac] [WordPress Trac] #51988: Call to undefined function mysql_connect()
WordPress Trac
noreply at wordpress.org
Sun Feb 19 20:02:56 UTC 2023
#51988: Call to undefined function mysql_connect()
-------------------------------------------------+-------------------------
Reporter: bgin | Owner:
| SergeyBiryukov
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 6.3
Component: Database | Version: 5.6
Severity: normal | Resolution:
Keywords: php8 has-patch needs-testing has- | Focuses:
testing-info |
-------------------------------------------------+-------------------------
Comment (by azaozz):
Replying to [comment:19 SergeyBiryukov]:
> [attachment:"51988.alt.diff"] is an alternative patch which checks if
either `mysqli_connect()` or `mysql_connect()` function exists, and
returns early
Imho this is the better solution. Was trying to figure out if
`extension_loaded( 'mysqli' )` is 100% identical to `function_exists(
'mysqli_connect' )` (`mysqli_connect()` is an alias of
`mysqli::__construct()`) but couldn't find any discrepancies. Perhaps
commit this patch and see if any possibly related errors are reported
during beta/RC testing.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51988#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list