php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #25297 mysql_ping result
Submitted: 2003-08-28 11:22 UTC Modified: 2003-08-30 09:31 UTC
Votes:1
Avg. Score:2.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: pulstar at ig dot com dot br Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: 4.3.3 OS: Linux Debian
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: pulstar at ig dot com dot br
New email:
PHP Version: OS:

 

 [2003-08-28 11:22 UTC] 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.  :-)



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-08-30 01:08 UTC] georg@php.net
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. 
 [2003-08-30 09:31 UTC] pulstar at ig dot com dot br
Okay, I understand. But, what about a new ping and traceroute functions? :-)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jun 26 13:01:46 2024 UTC