[PHP-BUG] Bug #71206 [NEW]: oci_fetch_all() returns 0 on failure
[email protected] ("Oleg dot Stepanischev at tatar dot ru")
| Newsgroups | php.bugs |
|---|---|
| Message-ID | <[email protected]> |
From: Oleg dot Stepanischev at tatar dot ru Operating system: Linux PHP version: 5.6.16 Package: OCI8 related Bug Type: Bug Bug description:oci_fetch_all() returns 0 on failure Description: ------------ 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); oci_execute($stmt); $rows = oci_fetch_all($stmt, $ret, 0, -1, OCI_FETCHSTATEMENT_BY_ROW); var_dump($rows); Expected result: ---------------- Warning: oci_fetch_all(): in ... on line ... bool(false) Actual result: -------------- Warning: oci_fetch_all(): in ... on line ... int(0) -- Edit bug report at https://bugs.php.net/bug.php?id=71206&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71206&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71206&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71206&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=71206&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=71206&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=71206&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=71206&r=needscript Try newer version: https://bugs.php.net/fix.php?id=71206&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=71206&r=support Expected behavior: https://bugs.php.net/fix.php?id=71206&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=71206&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=71206&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=71206&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71206&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=71206&r=dst IIS Stability: https://bugs.php.net/fix.php?id=71206&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=71206&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=71206&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=71206&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=71206&r=mysqlcfg