[3.x] mysqli::ping is deprecated since php8.4#324
[3.x] mysqli::ping is deprecated since php8.4#324richard67 merged 1 commit intojoomla-framework:3.x-devfrom
Conversation
|
Need to be checked if this is an performance issue, because this function is called for each sql query. So the overhead needs to be checked. |
|
Tested on localhost with php 8.4.4 and mysql 8.1. |
|
Can you please test on the network with a second Computer please. |
|
Ok. I Tested again with a remote database on AWS and local php server. P.S. It's about 190ms ping to the remote computer |
|
ok thanks, seems that ping did the same as stat(); |
|
but much more interesting would be to get rid of this completely, Just thinking about using mysqli_report in exception mode and catch missing connections an retry after connect.... maybe another pr |
|
just came across this when running the joomla integration tests |
|
Thanks @AkameOuO and reviewers. |
Pull Request for Issue #
Summary of Changes
replace
ping()withstat() !== false.Testing Instructions
MysqliDriver::connected() should work.
Documentation Changes Required