php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #66612 Return type mentioned in note is wrong
Submitted: 2014-01-30 12:02 UTC Modified: 2020-11-28 00:01 UTC
Votes:1
Avg. Score:2.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: jon at jonbevan dot me dot uk Assigned: dharman (profile)
Status: Closed Package: MySQLi related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
27 - 6 = ?
Subscribe to this entry?

 
 [2014-01-30 12:02 UTC] jon at jonbevan dot me dot uk
Description:
------------
---
From manual page: http://www.php.net/mysqli-stmt.store-result
---
The first note box states "...checking if mysqli_stmt_result_metadata() returns NULL" which it never does according to it's manual page (http://www.php.net/manual/en/mysqli-stmt.result-metadata.php): "Returns a result object or FALSE if an error occurred."

Expected result:
----------------
...checking if mysqli_stmt_result_metadata() returns FALSE and mysqli_stmt_errno() returns 0.

Actual result:
--------------
...checking if mysqli_stmt_result_metadata() returns NULL.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-28 12:30 UTC] cmb@php.net
-Package: Documentation problem +Package: MySQLi related
 [2020-11-28 00:01 UTC] dharman@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: dharman
 [2020-11-28 00:01 UTC] dharman@php.net
Thanks for the report. The fix has been suggested earlier this year as a PR[1] and the relevant documentation note was updated. 

[1] <https://github.com/php/doc-en/pull/25>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 23:01:29 2024 UTC