#50234 [Opn->Asn]: oci_fetch_array does NOT set NULL fields to the PHP NULL value
| From: | bjori@php.net | Date: | Mon, 23 Nov 2009 20:41:14 +0000 |
| Subject: | #50234 [Opn->Asn]: oci_fetch_array does NOT set NULL fields to the PHP NULL value | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-3320@lists.php.net to get a copy of this message | ||
ID: 50234
Updated by: bjori@php.net
Reported By: jkeller at berkeley dot edu
-Status: Open
+Status: Assigned
Bug Type: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cjorcl
New Comment:
Bug or a feature, Chris?
Previous Comments:
------------------------------------------------------------------------
[2009-11-19 16:32:31] jkeller at berkeley dot edu
Description:
------------
Under 'Return Values' for function oci_fetch_array, the docs say "sets
NULL fields to the PHP NULL value." However, unlike oci_fetch_assoc,
this function does NOT set NULL fields to the PHP NULL value"; instead,
it does not include them in the returned array. To include NULL values
in the array, you must pass in the OCI_RETURN_NULLS flag.
Expected result:
----------------
I suggest that this note be changed to read "this function does not
include NULL fields in the returned array, unless OCI_RETURN_NULLS is
included in the 'mode' parameter."
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50234&edit=1