execute_mode.phpt 345 B

12345678910111213141516171819
  1. --TEST--
  2. oci_execute() and invalid execute mode
  3. --EXTENSIONS--
  4. oci8
  5. --FILE--
  6. <?php
  7. require __DIR__."/connect.inc";
  8. $pc = oci_pconnect($user, $password, $dbase);
  9. $stmt = oci_parse($pc, "select NULL from dual");
  10. oci_execute($stmt, -1);
  11. echo "Done\n";
  12. ?>
  13. --EXPECTF--
  14. Warning: oci_execute(): Invalid execute mode given: -1 in %s on line %d
  15. Done