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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ximi at cs dot au dot dk
New email:
PHP Version: OS:

 

 [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: Thu Jun 25 20:00:01 2026 UTC