php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #50234 oci_fetch_array does NOT set NULL fields to the PHP NULL value
Submitted: 2009-11-19 16:32 UTC Modified: 2009-12-26 18:18 UTC
From: jkeller at berkeley dot edu Assigned: cjorcl (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2009-11-19 16:32 UTC] 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."


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-23 20:41 UTC] bjori@php.net
Bug or a feature, Chris?
 [2009-12-26 18:18 UTC] kalle@php.net
Fixed by Chris.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Jun 18 06:00:02 2026 UTC