summaryrefslogtreecommitdiffstats
path: root/lib/mysql.php
diff options
context:
space:
mode:
authorEdward Savage <sonnysavage@users.noreply.github.com>2017-03-27 14:23:43 -0400
committerDavey Shafik <davey@php.net>2017-03-27 11:23:43 -0700
commit8e5eda9ae59d8586a0d4c605aca76ec61b4f9cee (patch)
tree4d032b87be430c75b31e76ad892c50bea92d3dbd /lib/mysql.php
parentf5b1bc97181418daf854385154a2800eda04c7f1 (diff)
downloadphp7-mysql-shim-8e5eda9ae59d8586a0d4c605aca76ec61b4f9cee.zip
php7-mysql-shim-8e5eda9ae59d8586a0d4c605aca76ec61b4f9cee.tar.gz
php7-mysql-shim-8e5eda9ae59d8586a0d4c605aca76ec61b4f9cee.tar.bz2
Fix call to `mysqli_ping` (#28)
All of the other `mysqli_` functions with the `$link` as an argument used `\Dshafik\MySQL::getConnection($link)`. The call to `mysqli_ping` did not.
Diffstat (limited to 'lib/mysql.php')
-rw-r--r--lib/mysql.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mysql.php b/lib/mysql.php
index d2d9772..5461e98 100644
--- a/lib/mysql.php
+++ b/lib/mysql.php
@@ -512,7 +512,7 @@ namespace {
function mysql_ping(\mysqli $link = null)
{
- return mysqli_ping($link);
+ return mysqli_ping(\Dshafik\MySQL::getConnection($link));
}
function mysql_get_client_info(\mysqli $link = null)