#50234 [Asn->Csd]: oci_fetch_array does NOT set NULL fields to the PHP NULL value
| From: | kalle@php.net | Date: | Sat, 26 Dec 2009 18:18:56 +0000 |
| Subject: | #50234 [Asn->Csd]: 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-3571@lists.php.net to get a copy of this message | ||
ID: 50234
Updated by: kalle@php.net
Reported By: jkeller at berkeley dot edu
-Status: Assigned
+Status: Closed
Bug Type: Documentation problem
PHP Version: Irrelevant
Assigned To: cjorcl
New Comment:
Fixed by Chris.
Previous Comments:
------------------------------------------------------------------------
[2009-11-23 20:41:13] bjori@php.net
Bug or a feature, Chris?
------------------------------------------------------------------------
[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