exec_fetch.phpt 415 B

123456789101112131415161718192021222324
  1. --TEST--
  2. fetch after failed oci_execute()
  3. --EXTENSIONS--
  4. oci8
  5. --FILE--
  6. <?php
  7. require __DIR__.'/connect.inc';
  8. $sql = "select 2 from nonex_dual";
  9. $stmt = oci_parse($c, $sql);
  10. var_dump(oci_execute($stmt));
  11. var_dump(oci_fetch_array($stmt));
  12. echo "Done\n";
  13. ?>
  14. --EXPECTF--
  15. Warning: oci_execute(): ORA-00942: %s in %s on line %d
  16. bool(false)
  17. Warning: oci_fetch_array(): ORA-24374: %s in %s on line %d
  18. bool(false)
  19. Done