[wp-trac] [WordPress Trac] #54877: Occasional PHP exception being thrown on WPDB/MySQLi connections
WordPress Trac
noreply at wordpress.org
Mon Oct 17 00:34:30 UTC 2022
#54877: Occasional PHP exception being thrown on WPDB/MySQLi connections
-------------------------------------------------+-------------------------
Reporter: johnjamesjacoby | Owner:
| peterwilsoncc
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.1
Component: Database | Version: 1.5
Severity: normal | Resolution: fixed
Keywords: has-patch needs-testing early | Focuses:
commit |
-------------------------------------------------+-------------------------
Comment (by nickchomey):
I hate to re-open a discussion that was closed by a bunch of considerably
more competent people than I. But, I'm getting various deprecation
warnings - multiple times per page load - related to this issue when using
PHP 8.1 on my site. I know that @jrf pointed to the php source code to say
that the parameters should be nullable, but it doesn't seem to be the case
in practice. It could be because I'm using lsphp rather than normal php.
Anyway, as I described in this issue that I just opened and closed
(https://core.trac.wordpress.org/ticket/56836), if you simply pass an
empty string {{{""}}} rather than null, the problem goes away. Is that not
an acceptable solution here?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54877#comment:42>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list