|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71206 oci_fetch_all() returns 0 on failure
Submitted: 2015-12-23 16:48 UTC Modified: 2016-01-08 02:31 UTC
From: Oleg dot Stepanischev at tatar dot ru Assigned: sixd (profile)
Status: Assigned Package: OCI8 related
PHP Version: 5.6.16 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
36 - 20 = ?
Subscribe to this entry?

 [2015-12-23 16:48 UTC] Oleg dot Stepanischev at tatar dot ru
The documented behavior of oci_fetch_all() says it will return FALSE on failure.  However, it appears to return 0 instead.

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:
$stmt = oci_parse($conn, $sql);
$rows = oci_fetch_all($stmt, $ret, 0, -1, OCI_FETCHSTATEMENT_BY_ROW);

Expected result:
Warning: oci_fetch_all(): in ... on line ...


Actual result:
Warning: oci_fetch_all(): in ... on line ...



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-12-24 02:46 UTC]
-Assigned To: +Assigned To: sixed
 [2016-01-08 02:31 UTC]
-Assigned To: sixed +Assigned To: sixd
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Dec 10 10:01:24 2019 UTC