php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #70373 Wrong function in mysql_num_fields() documentation alternative list
Submitted: 2015-08-27 19:52 UTC Modified: 2015-08-28 13:35 UTC
From: asphp at dsgml dot com Assigned: cmb (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
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: asphp at dsgml dot com
New email:
PHP Version: OS:

 

 [2015-08-27 19:52 UTC] asphp at dsgml dot com
Description:
------------
---
From manual page: http://www.php.net/function.mysql-num-fields
---

This page lists mysqli_field_count() as an alternative, but the correct alternative is actually mysqli_num_fields(). (The two functions do different things.)

Note that if you search for mysqli_num_fields you won't find it (See Bug #49956).

It can be found here: http://php.net/manual/en/mysqli-result.field-count.php


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-08-28 00:41 UTC] cmb@php.net
-Status: Open +Status: Verified -Assigned To: +Assigned To: cmb
 [2015-08-28 00:43 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=337656
Log: try to fix wrong alternative to mysql_num_fields (would fix #70373)
 [2015-08-28 13:35 UTC] cmb@php.net
-Status: Verified +Status: Closed
 [2015-08-28 13:35 UTC] cmb@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.
 [2020-02-07 06:08 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=b17322aa6b0b18b1268b137a0152598335836ab8
Log: try to fix wrong alternative to mysql_num_fields (would fix #70373)
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 10:00:02 2026 UTC