php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #62923 client_version and client_info mix up
Submitted: 2012-08-24 14:01 UTC Modified: 2012-08-29 04:00 UTC
From: tom at i8o8 dot com Assigned: googleguy (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Windows 7 Professional 64-bit
Private report: No CVE-ID: None
 [2012-08-24 14:01 UTC] tom at i8o8 dot com
Description:
------------
---
From manual page: http://www.php.net/book.mysqli
---
On the web page listed above, I noticed the following explanations reversed.
mysqli::$client_info — Returns the MySQL client version as a string
mysqli::$client_version — Get MySQL client info


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-08-24 14:46 UTC] tom at i8o8 dot com
Also, on the same page there is mysqli_get_client_stats which I believe should be 
mysqli::get_client_stats.
 [2012-08-29 03:53 UTC] googleguy@php.net
Automatic comment from SVN on behalf of googleguy
Revision: http://svn.php.net/viewvc/?view=revision&revision=327350
Log: Fixed mysqli::$client_info and mysqli::$client_version description mixup. Fixes Bug #62923
 [2012-08-29 04:00 UTC] googleguy@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

The mysqli_get_client_stats() function is not actually exposed to the MySQLi 
class. So calling mysqli::get_client_stats() will cause a fatal error of "Call to 
undefined method". It is only available as the function mysqli_get_client_stats() 
and properly documented as such.

However, I did fix the mix up between the descriptions of the other two 
methods/strings mysqli::get_client_info(), mysqli::get_client_version(), 
mysqli::$client_info, and mysqli::$client_version respectively.
 [2012-08-29 04:00 UTC] googleguy@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: googleguy
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jun 11 00:01:31 2024 UTC