PMA\libraries\dbi\DBIExtension::getProtoInfo PHP Méthode

getProtoInfo() public méthode

Returns the version of the MySQL protocol used
public getProtoInfo ( resource $link ) : integer
$link resource mysql link
Résultat integer version of the MySQL protocol used
    public function getProtoInfo($link);

Usage Example

 /**
  * Returns the version of the MySQL protocol used
  *
  * @param object $link mysql link
  *
  * @return integer version of the MySQL protocol used
  */
 public function getProtoInfo($link = null)
 {
     $link = $this->getLink($link);
     if ($link === false) {
         return false;
     }
     return $this->_extension->getProtoInfo($link);
 }