php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #50216 Example use wrong sql query.
Submitted: 2009-11-18 10:48 UTC Modified: 2009-12-17 12:13 UTC
From: ximi at cs dot au dot dk Assigned: seld (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
 [2009-11-18 10:48 UTC] ximi at cs dot au dot dk
Description:
------------
At http://www.php.net/manual/en/function.mysql-stat.php two examples are given on how to obtain information about the database status. The first example use the mysql_stat() function, the second is meant to show how to use the mysql_query("SHOW STATUS") I think - as this query is mentioned in the Return Values section of the page. But the query actually used in the example is "SHOW VARIABLES".



Reproduce code:
---------------
---
From manual page: function.mysql-stat#Examples
---



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-17 12:13 UTC] seld@php.net
Confirmed and fixed in http://svn.php.net/viewvc/?view=revision&revision=292247
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Jun 16 23:00:01 2026 UTC