#50234 [NEW]: oci_fetch_array does NOT set NULL fields to the PHP NULL value

From: Date: Thu, 19 Nov 2009 16:32:31 +0000
Subject: #50234 [NEW]: oci_fetch_array does NOT set NULL fields to the PHP NULL value
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-3248@lists.php.net to get a copy of this message
From: jkeller at berkeley dot edu Operating system: PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: oci_fetch_array does NOT set NULL fields to the PHP NULL value 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 bug report at http://bugs.php.net/?id=50234&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50234&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50234&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50234&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50234&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50234&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50234&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50234&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50234&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50234&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50234&r=support Expected behavior: http://bugs.php.net/fix.php?id=50234&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50234&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50234&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50234&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50234&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50234&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50234&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50234&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50234&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50234&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50234&r=mysqlcfg

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