php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #51256 oci_fetch_assoc description wrong
Submitted: 2010-03-10 08:30 UTC Modified: 2010-03-11 20:30 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: david dot gausmann at measx dot com Assigned: joey (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2010-03-10 08:30 UTC] david dot gausmann at measx dot com
Description:
------------
On the documentation page for oci_fetch_assoc is written:
"Calling oci_fetch_assoc() is identical to calling oci_fetch_array() with OCI_ASSOC."

But on the lower of the page is written:
"Note: This function sets NULL fields to the PHP NULL value."

So if there are NULL fields in your result set then:
oci_fetch_array($result, OCI_ASSOC) != oci_fetch_assoc($result)

Hence the documentation should be updated to:
"Calling oci_fetch_assoc() is identical to calling oci_fetch_array() with (OCI_ASSOC | OCI_RETURN_NULLS)."

This bug is not identical to:
http://bugs.php.net/bug.php?id=36851


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-03-11 20:30 UTC] joey@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: joey
 [2010-03-11 20:30 UTC] joey@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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Nov 01 01:01:28 2024 UTC