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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jon at jonbevan dot me dot uk
New email:
PHP Version: OS:

 

 [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: Fri Apr 26 21:01:29 2024 UTC