#25297 [Opn->WFx]: mysql_ping result
| From: | georg@php.net | Date: | Sat, 30 Aug 2003 06:08:34 +0000 |
| Subject: | #25297 [Opn->WFx]: mysql_ping result | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-46932@lists.php.net to get a copy of this message | ||
ID: 25297
Updated by: georg@php.net
Reported By: pulstar at ig dot com dot br
-Status: Open
+Status: Wont fix
Bug Type: Feature/Change Request
Operating System: Linux Debian
PHP Version: 4.3.3
New Comment:
PHP's function mysql_ping uses the mysqli api function mysql_ping
which doesn't support this functionality.
mysqling doesn't work like the ping command, it checks if the
connections is alive and if not it tries to reconnect.
Previous Comments:
------------------------------------------------------------------------
[2003-08-28 11:22:32] pulstar at ig dot com dot br
Description:
------------
The mysql_ping() function could not return the response time of the
database server (or the ping time of its host) instead of just return
TRUE? This could be useful for test if a connection is slow or the
server is remote and user of not compression (I don't know if this
could work anyway). Well, PHP could aslo have functions for ping and
traceroute, to check if servers are up before attempt to connect on
them with mysql_connect(), fsockopen(), file(), etc. :-)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25297&edit=1