|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49956 Issues with some procedural style mysqli functions
Submitted: 2009-10-22 13:15 UTC Modified: 2022-07-29 12:12 UTC
Avg. Score:3.8 ± 1.2
Reproduced:7 of 7 (100.0%)
Same Version:4 (57.1%)
Same OS:4 (57.1%)
From: Assigned: levim (profile)
Status: Duplicate Package: Website problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2009-10-22 13:15 UTC]
While e.g. shows the documentation for mysql_num_fields(), this doesn't work for (=> "Sorry, but the function mysqli_num_fields  is not in the online manual."). The reason seems to be that the OO-style name is mysqli_result->field_count. The redirection works for e.g. mysqli_num_rows() which OO-style is has the same scheme: mysqli_result->num_rows.

This is not only an issue with the redirection, but also with the search field in the right upper corner of the website. Searching for "mysqli_num_fields" in the "function list" leads to the same error as described above. Searching in the "online documentation" works, though.

(There might be other examples than mysqli_*, of course.)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-03-05 21:12 UTC]
-Status: Open +Status: Verified -Assigned To: +Assigned To: levim
 [2015-05-24 23:03 UTC]
Automatic comment on behalf of levim
Log: Partially fix bug #49956
 [2015-05-24 23:03 UTC]
-Status: Verified +Status: Closed
 [2015-05-24 23:07 UTC]
-Status: Closed +Status: Re-Opened
 [2015-05-24 23:07 UTC]
I have fixed mysqli_real_escape_string, mysqli_get_connection_stats and friends. However, the specific case mentioned here of mysqli_num_fields will not work yet. I am unsure how to tackle that particular one at this time. Perhaps we need a mysqli specific solution to handle the ones that go from mysqli to mysqli_result.
 [2015-08-08 17:40 UTC]
Automatic comment on behalf of levim
Log: Partially fix bug #49956
 [2015-08-08 17:40 UTC]
-Status: Re-Opened +Status: Closed
 [2015-08-09 00:06 UTC]
Automatic comment on behalf of levim
Log: Partially fix bug #49956
 [2015-08-27 19:55 UTC] asphp at dsgml dot com
This should not be closed, the bug is not fixed.
 [2015-08-27 20:39 UTC]
-Status: Closed +Status: Re-Opened
 [2016-05-25 17:09 UTC] hellsing at index dot hu
This bug is already 6.5 years old and it still makes it harder to a procedural programmer to find documentation of mysqli functions.
 [2016-12-16 21:24 UTC]
A temporary mysqli specific fix was made for this, so it's moderately fixed. However, the root cause is not yet fixed.
 [2017-10-24 05:19 UTC]
-Status: Re-Opened +Status: Assigned
 [2019-05-04 17:36 UTC] php4fan at gmail dot com
It's not "moderately fixed", it's just "very partially fixed".

You have only fixed that the url works, but if you type "mysqli_num_fields" it will show no autocomplete suggestions, and even if you submit, the search will find no results.

For some other mysqli_xxx functions, autocomplete won't show them but the search does find the result and serve the corresponding page.

Others yet work completely.
 [2021-06-22 14:35 UTC] php4fan at gmail dot com
Search still fails to find mysqli_free_result:
 [2022-07-29 12:12 UTC]
-Status: Assigned +Status: Duplicate
 [2022-07-29 12:12 UTC]
I'm closing this in favor of <>.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 15 12:01:29 2024 UTC