File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 194194 {{ t(' Server version:' ) }}
195195 {{ database_server .version }}
196196 </li >
197- <li class =" list-group-item" >
198- {{ t(' Protocol version:' ) }}
199- {{ database_server .protocol }}
200- </li >
201197 <li class =" list-group-item" >
202198 {{ t(' User:' ) }}
203199 {{ database_server .user }}
Original file line number Diff line number Diff line change @@ -167,7 +167,6 @@ public function __invoke(ServerRequest $request): Response
167167 'type ' => Util::getServerType (),
168168 'connection ' => Generator::getServerSSL (),
169169 'version ' => $ this ->dbi ->getVersionString () . ' - ' . $ this ->dbi ->getVersionComment (),
170- 'protocol ' => $ this ->dbi ->getProtoInfo (),
171170 'user ' => $ this ->dbi ->fetchValue ('SELECT USER(); ' ),
172171 'charset ' => $ serverCharset ->getDescription () . ' ( ' . $ serverCharset ->getName () . ') ' ,
173172 ];
Original file line number Diff line number Diff line change @@ -1733,20 +1733,6 @@ public function getHostInfo(ConnectionType $connectionType = ConnectionType::Use
17331733 return $ this ->extension ->getHostInfo ($ this ->connections [$ connectionType ->value ]);
17341734 }
17351735
1736- /**
1737- * Returns the version of the MySQL protocol used
1738- *
1739- * @return int|bool version of the MySQL protocol used
1740- */
1741- public function getProtoInfo (ConnectionType $ connectionType = ConnectionType::User): int |bool
1742- {
1743- if (! isset ($ this ->connections [$ connectionType ->value ])) {
1744- return false ;
1745- }
1746-
1747- return $ this ->extension ->getProtoInfo ($ this ->connections [$ connectionType ->value ]);
1748- }
1749-
17501736 /**
17511737 * returns a string that represents the client library version
17521738 *
Original file line number Diff line number Diff line change @@ -452,13 +452,6 @@ public function nextResult(ConnectionType $connectionType = ConnectionType::User
452452 */
453453 public function getHostInfo (ConnectionType $ connectionType = ConnectionType::User): string |bool ;
454454
455- /**
456- * Returns the version of the MySQL protocol used
457- *
458- * @return int|bool version of the MySQL protocol used
459- */
460- public function getProtoInfo (ConnectionType $ connectionType = ConnectionType::User): int |bool ;
461-
462455 /**
463456 * returns a string that represents the client library version
464457 *
Original file line number Diff line number Diff line change @@ -65,13 +65,6 @@ public function storeResult(Connection $connection): ResultInterface|false;
6565 */
6666 public function getHostInfo (Connection $ connection ): string ;
6767
68- /**
69- * Returns the version of the MySQL protocol used
70- *
71- * @return int version of the MySQL protocol used
72- */
73- public function getProtoInfo (Connection $ connection ): int ;
74-
7568 /**
7669 * returns a string that represents the client library version
7770 *
Original file line number Diff line number Diff line change @@ -229,20 +229,6 @@ public function getHostInfo(Connection $connection): string
229229 return $ mysqli ->host_info ;
230230 }
231231
232- /**
233- * Returns the version of the MySQL protocol used
234- *
235- * @return int version of the MySQL protocol used
236- */
237- public function getProtoInfo (Connection $ connection ): int
238- {
239- /** @var mysqli $mysqli */
240- $ mysqli = $ connection ->connection ;
241-
242- // phpcs:ignore Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps
243- return $ mysqli ->protocol_version ;
244- }
245-
246232 /**
247233 * returns a string that represents the client library version
248234 *
Original file line number Diff line number Diff line change @@ -236,16 +236,6 @@ public function getHostInfo(Connection $connection): string
236236 return '' ;
237237 }
238238
239- /**
240- * Returns the version of the MySQL protocol used
241- *
242- * @return int version of the MySQL protocol used
243- */
244- public function getProtoInfo (Connection $ connection ): int
245- {
246- return -1 ;
247- }
248-
249239 /**
250240 * returns a string that represents the client library version
251241 *
You can’t perform that action at this time.
0 commit comments