[wp-trac] [WordPress Trac] #54877: Occasional PHP exception being thrown on WPDB/MySQLi connections

WordPress Trac noreply at wordpress.org
Thu Apr 7 22:49:56 UTC 2022


#54877: Occasional PHP exception being thrown on WPDB/MySQLi connections
-----------------------------------+---------------------
 Reporter:  johnjamesjacoby        |       Owner:  (none)
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  6.0
Component:  Database               |     Version:  1.5
 Severity:  normal                 |  Resolution:
 Keywords:  2nd-opinion has-patch  |     Focuses:
-----------------------------------+---------------------

Comment (by jrf):

 @costdev did some testing regarding the non-nullablility and got confusing
 results, so I've now actually [https://github.com/php/php-
 src/blob/c68591fa1681dd63b34a429a3378c37f4a657d8d/ext/mysqli/mysqli.stub.php#L294-L306
 checked the PHP source] and turns out the parameters **ARE** nullable and
 that the PHP manual is either wrong or just plain confusing.

 Sorry for causing confusion with my previous comment, though my remark
 about it being a good idea to add a test to cover the current patch still
 stands.

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


More information about the wp-trac mailing list