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

WordPress Trac noreply at wordpress.org
Thu Jan 27 06:06:59 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 azouamauriac):

 hello @johnjamesjacoby your patch looks good, though i've a suggestion,
 absint always returns positive interger, but mysqli_real_connect function
 just need interger(no matter the sign) as port paramerter. I think we
 should just convert $port into int(no matter the sign). What do you think
 about that?

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


More information about the wp-trac mailing list