Doc #51256 [Opn->Csd]: oci_fetch_assoc description wrong

From: Date: Thu, 11 Mar 2010 19:30:19 +0000
Subject: Doc #51256 [Opn->Csd]: oci_fetch_assoc description wrong
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-4032@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=51256&edit=1 ID: 51256 Updated by: joey@php.net Reported by: david dot gausmann at measx dot com Summary: oci_fetch_assoc description wrong -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant -Assigned To: +Assigned To: joey Previous Comments: ------------------------------------------------------------------------ [2010-03-10 08:30:15] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=51256&edit=1

« previous php.doc.bugs (#4032) next »