1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 17:22:15 +01:00
Files
archived-php-src/ext/oci8/tests/execute_mode.phpt
2019-03-15 22:55:30 +01:00

20 lines
407 B
PHP

--TEST--
oci_execute() and invalid execute mode
--SKIPIF--
<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
--FILE--
<?php
require __DIR__."/connect.inc";
$pc = oci_pconnect($user, $password, $dbase);
$stmt = oci_parse($pc, "select NULL from dual");
oci_execute($stmt, -1);
echo "Done\n";
?>
--EXPECTF--
Warning: oci_execute(): Invalid execute mode given: -1 in %s on line %d
Done