|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-12-31 18:58 UTC] frozenfire@php.net
-Status: Open
+Status: Feedback
[2013-12-31 18:58 UTC] frozenfire@php.net
[2014-01-02 14:47 UTC] ashnazg@php.net
-Status: Feedback
+Status: Not a bug
[2014-01-02 14:47 UTC] ashnazg@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 11:00:01 2025 UTC |
Description: ------------ The documented behavior of oci_fetch_all() says it will return FALSE on failure. However, it appears to return NULL instead. This NULL behavior actually matches the failure behavior of other oci_fetch_*() methods, although those methods do not have a failure return value documented at all. Presumably you want to either correct the documented behavior of oci_fetch_all(), or perhaps remove "failure behavior" from the its doc completely. Test script: --------------- $ret = 'before call'; $ret = oci_fetch_all(null); var_dump($ret); Expected result: ---------------- Warning: oci_fetch_all() expects at least 2 parameters, 1 given in /home/cburgess/test.php on line 4 Call Stack: 0.0002 221104 1. {main}() /home/cburgess/test.php:0 0.0002 221896 2. oci_fetch_all() /home/cburgess/test.php:4 FALSE Actual result: -------------- Warning: oci_fetch_all() expects at least 2 parameters, 1 given in /home/cburgess/test.php on line 4 Call Stack: 0.0002 221104 1. {main}() /home/cburgess/test.php:0 0.0002 221896 2. oci_fetch_all() /home/cburgess/test.php:4 NULL