mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
Merge branch 'PHP-7.2' into PHP-7.3
This commit is contained in:
commit
d7b87cd995
@ -58,7 +58,7 @@ var_dump($array);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECTF--
|
||||
Warning: oci_bind_array_by_name(): OCI-21560: argument 3 is null, invalid, or out of range in %s on line %d
|
||||
|
||||
Warning: oci_execute(): ORA-%r(01008|57000)%r: %s in %s on line %d
|
||||
|
@ -58,7 +58,7 @@ var_dump($array);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECTF--
|
||||
Warning: oci_bind_array_by_name(): Maximum array length must be greater than zero in %s on line %d
|
||||
|
||||
Warning: oci_execute(): ORA-%r(01008|57000)%r: %s in %s on line %d
|
||||
|
@ -61,7 +61,7 @@ var_dump($array);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECTF--
|
||||
Warning: oci_execute(): ORA-01403: %s
|
||||
ORA-06512: at "%s.ARRAY_BIND_003_PKG", line %d
|
||||
ORA-06512: at line %d in %sarray_bind_003.php on line %d
|
||||
|
@ -61,7 +61,7 @@ var_dump($array);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECTF--
|
||||
Warning: oci_execute(): ORA-01403: %s
|
||||
ORA-06512: at "%s.ARRAY_BIND_004_PKG", line %d
|
||||
ORA-06512: at line %d in %sarray_bind_004.php on line %d
|
||||
|
@ -61,7 +61,7 @@ var_dump($array);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECT--
|
||||
array(5) {
|
||||
[0]=>
|
||||
string(0) ""
|
||||
|
@ -61,7 +61,7 @@ var_dump($array);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECT--
|
||||
array(5) {
|
||||
[0]=>
|
||||
string(4) "five"
|
||||
|
@ -58,7 +58,7 @@ var_dump($array);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECTF--
|
||||
Warning: oci_bind_array_by_name(): Unknown or unsupported datatype given: -1 in %s on line %d
|
||||
|
||||
Warning: oci_execute(): ORA-%r(01008|57000)%r: %s in %s on line %d
|
||||
|
@ -61,7 +61,7 @@ var_dump($array);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECTF--
|
||||
Warning: oci_execute(): ORA-06550: line %d, column %d:
|
||||
PLS-00418: %s
|
||||
ORA-06550: %s
|
||||
|
@ -11,7 +11,7 @@ var_dump(oci_bind_array_by_name($c, ":c1", $array, 5, 5, SQLT_CHR));
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECTF--
|
||||
Warning: oci_bind_array_by_name(): supplied resource is not a valid oci8 statement resource in %s on line %d
|
||||
bool(false)
|
||||
Done
|
||||
|
@ -19,7 +19,7 @@ var_dump($array);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECTF--
|
||||
Warning: oci_bind_array_by_name(): ORA-01036: illegal variable name/number in %s on line %d
|
||||
array(5) {
|
||||
[0]=>
|
||||
|
@ -58,7 +58,7 @@ var_dump($array);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECTF--
|
||||
Warning: oci_bind_array_by_name(): You must provide max length value for empty arrays in %s on line %d
|
||||
|
||||
Warning: oci_execute(): ORA-%r(01008|57000)%r: %s in %s on line %d
|
||||
|
@ -19,7 +19,7 @@ var_dump($array);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECTF--
|
||||
Warning: oci_bind_array_by_name(): Invalid max length value (-10) in %s on line %d
|
||||
array(0) {
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ var_dump($array);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECTF--
|
||||
Warning: oci_bind_array_by_name() expects at most 6 parameters, 7 given in %s on line %d
|
||||
NULL
|
||||
|
||||
|
@ -60,7 +60,7 @@ var_dump($array);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECT--
|
||||
array(5) {
|
||||
[0]=>
|
||||
int(5)
|
||||
|
@ -61,7 +61,7 @@ var_dump($array);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECT--
|
||||
array(5) {
|
||||
[0]=>
|
||||
string(9) "05-NOV-05"
|
||||
|
@ -61,7 +61,7 @@ var_dump($array);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECT--
|
||||
array(5) {
|
||||
[0]=>
|
||||
string(9) "05-NOV-05"
|
||||
|
@ -61,7 +61,7 @@ var_dump($array);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECT--
|
||||
array(5) {
|
||||
[0]=>
|
||||
float(5.9999)
|
||||
|
@ -61,7 +61,7 @@ var_dump($array);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECT--
|
||||
array(5) {
|
||||
[0]=>
|
||||
float(5.9999)
|
||||
|
@ -61,7 +61,7 @@ var_dump($array);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECT--
|
||||
array(5) {
|
||||
[0]=>
|
||||
int(5)
|
||||
|
@ -61,7 +61,7 @@ var_dump($array);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECT--
|
||||
array(5) {
|
||||
[0]=>
|
||||
int(5)
|
||||
|
@ -61,7 +61,7 @@ var_dump($array);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECT--
|
||||
array(5) {
|
||||
[0]=>
|
||||
string(4) "five"
|
||||
|
@ -61,7 +61,7 @@ var_dump($array);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECT--
|
||||
array(5) {
|
||||
[0]=>
|
||||
string(4) "five"
|
||||
|
@ -26,7 +26,7 @@ $stmtarray = array(
|
||||
"insert into bind_char_tab values (2, NULL, 'abc')",
|
||||
"insert into bind_char_tab values (3, NULL, 'abc ')"
|
||||
);
|
||||
|
||||
|
||||
oci8_test_sql_execute($c, $stmtarray);
|
||||
|
||||
// Run Test
|
||||
@ -196,7 +196,7 @@ function do_e_q($s)
|
||||
$stmtarray = array(
|
||||
"drop table bind_char_tab"
|
||||
);
|
||||
|
||||
|
||||
oci8_test_sql_execute($c, $stmtarray);
|
||||
|
||||
echo "Done\n";
|
||||
|
@ -28,7 +28,7 @@ $stmtarray = array(
|
||||
"insert into bind_char_tab values (2, NULL, 'abc')",
|
||||
"insert into bind_char_tab values (3, NULL, 'abc ')"
|
||||
);
|
||||
|
||||
|
||||
oci8_test_sql_execute($c, $stmtarray);
|
||||
|
||||
// Run Test
|
||||
@ -198,7 +198,7 @@ function do_e_q($s)
|
||||
$stmtarray = array(
|
||||
"drop table bind_char_tab"
|
||||
);
|
||||
|
||||
|
||||
oci8_test_sql_execute($c, $stmtarray);
|
||||
|
||||
echo "Done\n";
|
||||
|
@ -25,7 +25,7 @@ $stmtarray = array(
|
||||
"create table bind_char_tab (id number, c1 date)",
|
||||
"insert into bind_char_tab values (1, '2008-04-20')",
|
||||
);
|
||||
|
||||
|
||||
oci8_test_sql_execute($c, $stmtarray);
|
||||
|
||||
// Run Test
|
||||
@ -85,7 +85,7 @@ function do_e_q($s)
|
||||
$stmtarray = array(
|
||||
"drop table bind_char_tab"
|
||||
);
|
||||
|
||||
|
||||
oci8_test_sql_execute($c, $stmtarray);
|
||||
|
||||
echo "Done\n";
|
||||
|
@ -25,7 +25,7 @@ $stmtarray = array(
|
||||
"create table bind_char_tab (id number, c1 date)",
|
||||
"insert into bind_char_tab values (1, '2008-04-20')",
|
||||
);
|
||||
|
||||
|
||||
oci8_test_sql_execute($c, $stmtarray);
|
||||
|
||||
// Run Test
|
||||
@ -85,7 +85,7 @@ function do_e_q($s)
|
||||
$stmtarray = array(
|
||||
"drop table bind_char_tab"
|
||||
);
|
||||
|
||||
|
||||
oci8_test_sql_execute($c, $stmtarray);
|
||||
|
||||
echo "Done\n";
|
||||
|
@ -22,7 +22,7 @@ require(dirname(__FILE__).'/connect.inc');
|
||||
$stmtarray = array(
|
||||
"create or replace function bind_char_3_fn(p1 char) return char as begin return p1; end;",
|
||||
);
|
||||
|
||||
|
||||
oci8_test_sql_execute($c, $stmtarray);
|
||||
|
||||
// Run Test
|
||||
|
@ -24,7 +24,7 @@ require(dirname(__FILE__).'/connect.inc');
|
||||
$stmtarray = array(
|
||||
"create or replace function bind_char_3_fn(p1 varchar2) return varchar2 as begin return p1; end;",
|
||||
);
|
||||
|
||||
|
||||
oci8_test_sql_execute($c, $stmtarray);
|
||||
|
||||
// Run Test
|
||||
|
@ -24,7 +24,7 @@ require(dirname(__FILE__).'/connect.inc');
|
||||
$stmtarray = array(
|
||||
"create or replace function bind_char_3_fn(p1 varchar2) return varchar2 as begin return p1; end;",
|
||||
);
|
||||
|
||||
|
||||
oci8_test_sql_execute($c, $stmtarray);
|
||||
|
||||
// Run Test
|
||||
|
@ -16,7 +16,7 @@ NLS_LANG=
|
||||
<?php
|
||||
|
||||
require(dirname(__FILE__).'/connect.inc');
|
||||
|
||||
|
||||
$stmtarray = array(
|
||||
"drop sequence myseq",
|
||||
"drop table mytab",
|
||||
@ -53,7 +53,7 @@ oci8_test_sql_execute($c, $stmtarray);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECT--
|
||||
string(1) "1"
|
||||
string(1) "2"
|
||||
string(1) "3"
|
||||
|
@ -51,7 +51,7 @@ oci8_test_sql_execute($c, $stmtarray);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECT--
|
||||
string(1) "1"
|
||||
string(1) "2"
|
||||
string(1) "3"
|
||||
|
@ -16,7 +16,7 @@ NLS_LANG=
|
||||
<?php
|
||||
|
||||
require dirname(__FILE__).'/connect.inc';
|
||||
|
||||
|
||||
$stmtarray = array(
|
||||
"drop sequence myseq",
|
||||
"drop table mytab",
|
||||
@ -55,7 +55,7 @@ oci8_test_sql_execute($c, $stmtarray);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECT--
|
||||
string(1) "1"
|
||||
string(1) "2"
|
||||
string(1) "3"
|
||||
|
@ -16,7 +16,7 @@ NLS_LANG=
|
||||
<?php
|
||||
|
||||
require dirname(__FILE__).'/connect.inc';
|
||||
|
||||
|
||||
$stmtarray = array(
|
||||
"drop sequence myseq",
|
||||
"drop table mytab",
|
||||
@ -55,7 +55,7 @@ oci8_test_sql_execute($c, $stmtarray);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECT--
|
||||
string(1) "1"
|
||||
string(1) "2"
|
||||
string(1) "3"
|
||||
|
@ -6,7 +6,7 @@ Bug #27303 (OCIBindByName binds numeric PHP values as characters)
|
||||
<?php
|
||||
|
||||
require dirname(__FILE__).'/connect.inc';
|
||||
|
||||
|
||||
$create_st = array();
|
||||
$create_st[] = "drop sequence myseq";
|
||||
$create_st[] = "drop table mytab";
|
||||
@ -49,7 +49,7 @@ foreach ($create_st as $statement) {
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECT--
|
||||
int(1)
|
||||
int(2)
|
||||
int(3)
|
||||
|
@ -16,7 +16,7 @@ NLS_LANG=
|
||||
<?php
|
||||
|
||||
require dirname(__FILE__).'/connect.inc';
|
||||
|
||||
|
||||
$create_st = array();
|
||||
$create_st[] = "drop sequence myseq";
|
||||
$create_st[] = "drop table mytab";
|
||||
@ -51,7 +51,7 @@ oci8_test_sql_execute($c, $drop_st);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECT--
|
||||
string(1) "1"
|
||||
string(1) "2"
|
||||
string(1) "3"
|
||||
|
@ -14,7 +14,7 @@ if (!(isset($matches[0]) && $matches[1] < 12)) {
|
||||
<?php
|
||||
|
||||
require dirname(__FILE__).'/connect.inc';
|
||||
|
||||
|
||||
$create_st = array();
|
||||
$create_st[] = "drop sequence myseq";
|
||||
$create_st[] = "drop table mytab";
|
||||
@ -49,7 +49,7 @@ oci8_test_sql_execute($c, $drop_st);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECT--
|
||||
string(1) "1"
|
||||
string(1) "2"
|
||||
string(1) "3"
|
||||
|
@ -9,7 +9,7 @@ require(dirname(__FILE__).'/skipif.inc');
|
||||
<?php
|
||||
|
||||
require(dirname(__FILE__).'/connect.inc');
|
||||
|
||||
|
||||
// Initialize
|
||||
|
||||
$stmtarray = array(
|
||||
@ -19,7 +19,7 @@ $stmtarray = array(
|
||||
oci8_test_sql_execute($c, $stmtarray);
|
||||
|
||||
// Run test
|
||||
|
||||
|
||||
$collection = oci_new_collection($c, "BUG32325_T");
|
||||
|
||||
$sql = "begin
|
||||
@ -45,7 +45,7 @@ oci8_test_sql_execute($c, $stmtarray);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECT--
|
||||
int(4)
|
||||
float(2)
|
||||
float(3)
|
||||
|
@ -33,7 +33,7 @@ $s1 = oci_parse($c, "drop table test_nclob");
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECTF--
|
||||
array(1) {
|
||||
["NC"]=>
|
||||
object(OCI-Lob)#%d (1) {
|
||||
|
@ -7,7 +7,7 @@ require(dirname(__FILE__).'/skipif.inc');
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
||||
require dirname(__FILE__).'/connect.inc';
|
||||
|
||||
function f($conn)
|
||||
|
@ -31,7 +31,7 @@ $clob = oci_new_descriptor($c, OCI_D_LOB);
|
||||
oci_bind_by_name($stmt, ':data', $clob, -1, OCI_B_CLOB);
|
||||
$clob->writetemporary("<MYTAG/>", OCI_TEMP_CLOB);
|
||||
$success = oci_execute($stmt, OCI_COMMIT_ON_SUCCESS);
|
||||
oci_free_statement($stmt);
|
||||
oci_free_statement($stmt);
|
||||
$clob->close();
|
||||
|
||||
// Query back the change
|
||||
|
@ -44,7 +44,7 @@ var_dump($strings);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECT--
|
||||
array(5) {
|
||||
[0]=>
|
||||
string(1) "A"
|
||||
|
@ -24,7 +24,7 @@ var_dump($bv);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECT--
|
||||
NULL
|
||||
int(0)
|
||||
Done
|
||||
|
@ -42,7 +42,7 @@ var_dump($array);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECT--
|
||||
array(5) {
|
||||
[0]=>
|
||||
string(3) "one"
|
||||
|
@ -51,7 +51,7 @@ $stmtarray = array(
|
||||
"insert into bug41069_tab (c1, c2, c3, c4, c5, c6, c7, c9, c10, c12, c15) values
|
||||
(113, 'aaaaaaa', 'bbbbbbbbbb', 'cccccc', 'e', 'f', 'dddd', '12/04/2006', '12/04/2006', 2224, 'zzzzzzz')"
|
||||
);
|
||||
|
||||
|
||||
oci8_test_sql_execute($c, $stmtarray);
|
||||
|
||||
|
||||
|
@ -102,27 +102,27 @@ function dropxmltab($c) // delete table
|
||||
function fillxmltab($c)
|
||||
{
|
||||
for ($id = 1; $id <= 100; $id++) {
|
||||
|
||||
// create an XML element string with random data
|
||||
|
||||
// create an XML element string with random data
|
||||
$s = "<data>";
|
||||
for ($j = 0; $j < 128; $j++) {
|
||||
$s .= rand();
|
||||
$s .= rand();
|
||||
}
|
||||
$s .= "</data>\n";
|
||||
$s .= "</data>\n";
|
||||
for ($j = 0; $j < 4; $j++) {
|
||||
$s .= $s;
|
||||
}
|
||||
}
|
||||
$data = "<?xml version=\"1.0\"?><records>" . $s . "</records>";
|
||||
|
||||
|
||||
// insert XML data into database
|
||||
|
||||
|
||||
$stmt = oci_parse($c, "insert into bug43497_tab(id, xml) values (:id, sys.xmltype.createxml(:xml))");
|
||||
oci_bind_by_name($stmt, ":id", $id);
|
||||
$clob = oci_new_descriptor($c, OCI_D_LOB);
|
||||
oci_bind_by_name($stmt, ":xml", $clob, -1, OCI_B_CLOB);
|
||||
$clob->writetemporary($data);
|
||||
oci_execute($stmt);
|
||||
|
||||
|
||||
$clob->close();
|
||||
$clob->free();
|
||||
}
|
||||
|
@ -89,7 +89,7 @@ $statement = oci_parse($c, "DROP TABLE BIND_TEST");
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECT--
|
||||
Test 1
|
||||
array(5) {
|
||||
[0]=>
|
||||
|
@ -9,7 +9,7 @@ require(dirname(__FILE__).'/skipif.inc');
|
||||
<?php
|
||||
|
||||
require(dirname(__FILE__).'/connect.inc');
|
||||
|
||||
|
||||
// Initialize
|
||||
|
||||
$stmtarray = array(
|
||||
@ -23,7 +23,7 @@ $stmtarray = array(
|
||||
oci8_test_sql_execute($c, $stmtarray);
|
||||
|
||||
// Run test
|
||||
|
||||
|
||||
$sql = "select col1,col2,col3,col4,col5,col6,col7,col8,col9 from bug71600_tab";
|
||||
|
||||
echo "Test 1\n";
|
||||
@ -80,7 +80,7 @@ oci8_test_sql_execute($c, $stmtarray);
|
||||
?>
|
||||
===DONE===
|
||||
<?php exit(0); ?>
|
||||
--EXPECT--
|
||||
--EXPECT--
|
||||
Test 1
|
||||
Executing SELECT statament...
|
||||
Fetching data by columns...
|
||||
|
@ -10,8 +10,8 @@ require dirname(__FILE__).'/connect.inc';
|
||||
oci_close($c);
|
||||
|
||||
oci_connect($user, $password, $dbase);
|
||||
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECT--
|
||||
Done
|
||||
|
@ -18,7 +18,7 @@ $statement = OCIParse($c,$ora_sql);
|
||||
@OCIExecute($statement);
|
||||
|
||||
$ora_sql = "CREATE TYPE ".$type_name." AS TABLE OF DATE";
|
||||
|
||||
|
||||
$statement = OCIParse($c,$ora_sql);
|
||||
OCIExecute($statement);
|
||||
|
||||
|
@ -18,7 +18,7 @@ $statement = OCIParse($c,$ora_sql);
|
||||
@OCIExecute($statement);
|
||||
|
||||
$ora_sql = "CREATE TYPE ".$type_name." AS TABLE OF DATE";
|
||||
|
||||
|
||||
$statement = OCIParse($c,$ora_sql);
|
||||
OCIExecute($statement);
|
||||
|
||||
|
@ -18,7 +18,7 @@ $statement = OCIParse($c,$ora_sql);
|
||||
@OCIExecute($statement);
|
||||
|
||||
$ora_sql = "CREATE TYPE ".$type_name." AS TABLE OF VARCHAR(10)";
|
||||
|
||||
|
||||
$statement = OCIParse($c,$ora_sql);
|
||||
OCIExecute($statement);
|
||||
|
||||
|
@ -18,7 +18,7 @@ $statement = OCIParse($c,$ora_sql);
|
||||
@OCIExecute($statement);
|
||||
|
||||
$ora_sql = "CREATE TYPE ".$type_name." AS TABLE OF VARCHAR(10)";
|
||||
|
||||
|
||||
$statement = OCIParse($c,$ora_sql);
|
||||
OCIExecute($statement);
|
||||
|
||||
|
@ -18,7 +18,7 @@ $statement = OCIParse($c,$ora_sql);
|
||||
@OCIExecute($statement);
|
||||
|
||||
$ora_sql = "CREATE TYPE ".$type_name." AS TABLE OF VARCHAR(10)";
|
||||
|
||||
|
||||
$statement = OCIParse($c,$ora_sql);
|
||||
OCIExecute($statement);
|
||||
|
||||
|
@ -18,7 +18,7 @@ $statement = OCIParse($c,$ora_sql);
|
||||
@OCIExecute($statement);
|
||||
|
||||
$ora_sql = "CREATE TYPE ".$type_name." AS TABLE OF VARCHAR(10)";
|
||||
|
||||
|
||||
$statement = OCIParse($c,$ora_sql);
|
||||
OCIExecute($statement);
|
||||
|
||||
|
@ -18,7 +18,7 @@ $statement = OCIParse($c,$ora_sql);
|
||||
@OCIExecute($statement);
|
||||
|
||||
$ora_sql = "CREATE TYPE ".$type_name." AS TABLE OF DATE";
|
||||
|
||||
|
||||
$statement = OCIParse($c,$ora_sql);
|
||||
OCIExecute($statement);
|
||||
|
||||
|
@ -18,7 +18,7 @@ $statement = OCIParse($c,$ora_sql);
|
||||
@OCIExecute($statement);
|
||||
|
||||
$ora_sql = "CREATE TYPE ".$type_name." AS TABLE OF DATE";
|
||||
|
||||
|
||||
$statement = OCIParse($c,$ora_sql);
|
||||
OCIExecute($statement);
|
||||
|
||||
|
@ -18,7 +18,7 @@ $statement = OCIParse($c,$ora_sql);
|
||||
@OCIExecute($statement);
|
||||
|
||||
$ora_sql = "CREATE TYPE ".$type_name." AS TABLE OF DATE";
|
||||
|
||||
|
||||
$statement = OCIParse($c,$ora_sql);
|
||||
OCIExecute($statement);
|
||||
|
||||
|
@ -18,7 +18,7 @@ $statement = OCIParse($c,$ora_sql);
|
||||
@OCIExecute($statement);
|
||||
|
||||
$ora_sql = "CREATE TYPE ".$type_name." AS TABLE OF DATE";
|
||||
|
||||
|
||||
$statement = OCIParse($c,$ora_sql);
|
||||
OCIExecute($statement);
|
||||
|
||||
|
@ -18,7 +18,7 @@ $statement = OCIParse($c,$ora_sql);
|
||||
@OCIExecute($statement);
|
||||
|
||||
$ora_sql = "CREATE TYPE ".$type_name." AS TABLE OF VARCHAR(10)";
|
||||
|
||||
|
||||
$statement = OCIParse($c,$ora_sql);
|
||||
OCIExecute($statement);
|
||||
|
||||
|
@ -18,7 +18,7 @@ $statement = OCIParse($c,$ora_sql);
|
||||
@OCIExecute($statement);
|
||||
|
||||
$ora_sql = "CREATE TYPE ".$type_name." AS TABLE OF VARCHAR(10)";
|
||||
|
||||
|
||||
$statement = OCIParse($c,$ora_sql);
|
||||
OCIExecute($statement);
|
||||
|
||||
|
@ -18,7 +18,7 @@ $statement = OCIParse($c,$ora_sql);
|
||||
@OCIExecute($statement);
|
||||
|
||||
$ora_sql = "CREATE TYPE ".$type_name." AS TABLE OF NUMBER";
|
||||
|
||||
|
||||
$statement = OCIParse($c,$ora_sql);
|
||||
OCIExecute($statement);
|
||||
|
||||
|
@ -18,7 +18,7 @@ $statement = OCIParse($c,$ora_sql);
|
||||
@OCIExecute($statement);
|
||||
|
||||
$ora_sql = "CREATE TYPE ".$type_name." AS TABLE OF NUMBER";
|
||||
|
||||
|
||||
$statement = OCIParse($c,$ora_sql);
|
||||
OCIExecute($statement);
|
||||
|
||||
|
@ -18,7 +18,7 @@ $statement = OCIParse($c,$ora_sql);
|
||||
@OCIExecute($statement);
|
||||
|
||||
$ora_sql = "CREATE TYPE ".$type_name." AS TABLE OF NUMBER";
|
||||
|
||||
|
||||
$statement = OCIParse($c,$ora_sql);
|
||||
OCIExecute($statement);
|
||||
|
||||
|
@ -18,7 +18,7 @@ $statement = OCIParse($c,$ora_sql);
|
||||
@OCIExecute($statement);
|
||||
|
||||
$ora_sql = "CREATE TYPE ".$type_name." AS TABLE OF NUMBER";
|
||||
|
||||
|
||||
$statement = OCIParse($c,$ora_sql);
|
||||
OCIExecute($statement);
|
||||
|
||||
|
@ -18,7 +18,7 @@ $statement = OCIParse($c,$ora_sql);
|
||||
@OCIExecute($statement);
|
||||
|
||||
$ora_sql = "CREATE TYPE ".$type_name." AS TABLE OF VARCHAR(10)";
|
||||
|
||||
|
||||
$statement = OCIParse($c,$ora_sql);
|
||||
OCIExecute($statement);
|
||||
|
||||
|
@ -18,7 +18,7 @@ $statement = OCIParse($c,$ora_sql);
|
||||
@OCIExecute($statement);
|
||||
|
||||
$ora_sql = "CREATE TYPE ".$type_name." AS TABLE OF VARCHAR(10)";
|
||||
|
||||
|
||||
$statement = OCIParse($c,$ora_sql);
|
||||
OCIExecute($statement);
|
||||
|
||||
|
@ -74,7 +74,7 @@ var_dump($all);
|
||||
|
||||
|
||||
require(dirname(__FILE__).'/drop_table.inc');
|
||||
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
|
@ -64,7 +64,7 @@ var_dump($all);
|
||||
|
||||
|
||||
require dirname(__FILE__).'/drop_table.inc';
|
||||
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
|
@ -62,7 +62,7 @@ foreach($values_array as $val ) {
|
||||
oci_set_module_name($c1,$val);
|
||||
oci_set_client_identifier($c1,$val);
|
||||
oci_set_client_info($c1,$val);
|
||||
$r = oci_set_action($c1,$val);
|
||||
$r = oci_set_action($c1,$val);
|
||||
if ($r) {
|
||||
echo "Values set successfully to $val\n";
|
||||
foreach($attr_array as $attr) {
|
||||
|
@ -13,7 +13,7 @@ if (!empty($dbase)) {
|
||||
else {
|
||||
var_dump(oci_connect($user, $password));
|
||||
}
|
||||
|
||||
|
||||
echo "Done\n";
|
||||
|
||||
?>
|
||||
|
@ -13,7 +13,7 @@ if (!empty($dbase)) {
|
||||
else {
|
||||
var_dump(ocilogon($user, $password));
|
||||
}
|
||||
|
||||
|
||||
echo "Done\n";
|
||||
|
||||
?>
|
||||
|
@ -18,7 +18,7 @@ if (!empty($dbase))
|
||||
$c1 = oci_new_connect($user,$password,$dbase);
|
||||
else
|
||||
$c1 = oci_new_connect($user,$password);
|
||||
|
||||
|
||||
oci8_test_sql_execute($c1, $stmtarray);
|
||||
|
||||
// Run Test
|
||||
|
@ -18,7 +18,7 @@ if (!empty($dbase))
|
||||
$c1 = oci_new_connect($user,$password,$dbase);
|
||||
else
|
||||
$c1 = oci_new_connect($user,$password);
|
||||
|
||||
|
||||
oci8_test_sql_execute($c1, $stmtarray);
|
||||
|
||||
// Run Test
|
||||
|
@ -20,7 +20,7 @@ if (!empty($dbase))
|
||||
$c1 = oci_new_connect($user,$password,$dbase);
|
||||
else
|
||||
$c1 = oci_new_connect($user,$password);
|
||||
|
||||
|
||||
oci8_test_sql_execute($c1, $stmtarray);
|
||||
|
||||
// Run Test
|
||||
|
@ -20,7 +20,7 @@ if (!empty($dbase))
|
||||
$c1 = oci_new_connect($user,$password,$dbase);
|
||||
else
|
||||
$c1 = oci_new_connect($user,$password);
|
||||
|
||||
|
||||
oci8_test_sql_execute($c1, $stmtarray);
|
||||
|
||||
// Run Test
|
||||
|
@ -20,7 +20,7 @@ if (!empty($dbase))
|
||||
$c1 = oci_new_connect($user,$password,$dbase);
|
||||
else
|
||||
$c1 = oci_new_connect($user,$password);
|
||||
|
||||
|
||||
oci8_test_sql_execute($c1, $stmtarray);
|
||||
|
||||
// Run Test
|
||||
|
@ -20,7 +20,7 @@ if (!empty($dbase))
|
||||
$c1 = oci_new_connect($user,$password,$dbase);
|
||||
else
|
||||
$c1 = oci_new_connect($user,$password);
|
||||
|
||||
|
||||
oci8_test_sql_execute($c1, $stmtarray);
|
||||
|
||||
// Run Test
|
||||
|
@ -20,7 +20,7 @@ if (!empty($dbase))
|
||||
$c1 = oci_new_connect($user,$password,$dbase);
|
||||
else
|
||||
$c1 = oci_new_connect($user,$password);
|
||||
|
||||
|
||||
oci8_test_sql_execute($c1, $stmtarray);
|
||||
|
||||
// Run Test
|
||||
|
@ -20,7 +20,7 @@ if (!empty($dbase))
|
||||
$c1 = oci_new_connect($user,$password,$dbase);
|
||||
else
|
||||
$c1 = oci_new_connect($user,$password);
|
||||
|
||||
|
||||
oci8_test_sql_execute($c1, $stmtarray);
|
||||
|
||||
// Run Test
|
||||
|
@ -21,7 +21,7 @@ var_dump($c5 == $c6);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECTF--
|
||||
resource(%d) of type (oci8 connection)
|
||||
resource(%d) of type (oci8 connection)
|
||||
|
||||
|
@ -28,7 +28,7 @@ if (!empty($dbase)) {
|
||||
else {
|
||||
var_dump(oci_connect($user, $password));
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
===DONE===
|
||||
<?php exit(0); ?>
|
||||
|
@ -31,7 +31,7 @@ if (!empty($dbase)) {
|
||||
else {
|
||||
var_dump(oci_connect($user, $password));
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
===DONE===
|
||||
<?php exit(0); ?>
|
||||
|
@ -24,7 +24,7 @@ if (!empty($dbase)) {
|
||||
else {
|
||||
var_dump(ocilogon($user, $password));
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
===DONE===
|
||||
<?php exit(0); ?>
|
||||
|
@ -31,7 +31,7 @@ if (!empty($dbase)) {
|
||||
else {
|
||||
var_dump(ocilogon($user, $password));
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
===DONE===
|
||||
<?php exit(0); ?>
|
||||
|
@ -15,7 +15,7 @@ if (!empty($dbase)) {
|
||||
else {
|
||||
oci_connect($user, $password);
|
||||
}
|
||||
|
||||
|
||||
oci_internal_debug(false);
|
||||
|
||||
?>
|
||||
|
@ -44,7 +44,7 @@ $stmtarray = array(
|
||||
);
|
||||
|
||||
oci8_test_sql_execute($c, $stmtarray);
|
||||
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
|
@ -44,7 +44,7 @@ $stmtarray = array(
|
||||
);
|
||||
|
||||
oci8_test_sql_execute($c, $stmtarray);
|
||||
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
|
@ -45,7 +45,7 @@ $stmtarray = array(
|
||||
);
|
||||
|
||||
oci8_test_sql_execute($c, $stmtarray);
|
||||
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
|
@ -14,7 +14,7 @@ $stmtarray = array(
|
||||
"drop table phptestrawtable",
|
||||
"create table phptestrawtable( id number(10), fileimage raw(1000))"
|
||||
);
|
||||
|
||||
|
||||
oci8_test_sql_execute($c, $stmtarray);
|
||||
|
||||
$stmt = oci_parse ($c, "insert into phptestrawtable (id, fileimage) values (:id, :fileimage)");
|
||||
|
@ -14,7 +14,7 @@ $stmtarray = array(
|
||||
"drop table phpdefblobtable",
|
||||
"create table phpdefblobtable (id number(10), fileimage blob)"
|
||||
);
|
||||
|
||||
|
||||
oci8_test_sql_execute($c, $stmtarray);
|
||||
|
||||
// Load data
|
||||
@ -78,7 +78,7 @@ while (oci_fetch($stmt)) {
|
||||
$stmtarray = array(
|
||||
"drop table phpdefblobtable"
|
||||
);
|
||||
|
||||
|
||||
oci8_test_sql_execute($c, $stmtarray);
|
||||
|
||||
echo "Done\n";
|
||||
|
@ -41,7 +41,7 @@ require dirname(__FILE__).'/drop_table.inc';
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECTF--
|
||||
array(1) {
|
||||
["BLOB"]=>
|
||||
object(OCI-Lob)#%d (1) {
|
||||
|
@ -92,7 +92,7 @@ foreach ($values_array as $val ) {
|
||||
if ($c1) {
|
||||
get_edit_attr($c1);
|
||||
oci_close($c1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
echo "\n\n**Test 1.5 - Negative case with an invalid string value. *********\n";
|
||||
|
@ -15,7 +15,7 @@ var_dump(oci_fetch_array($stmt));
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECTF--
|
||||
Warning: oci_execute(): ORA-00942: %s in %s on line %d
|
||||
bool(false)
|
||||
|
||||
|
@ -14,6 +14,6 @@ oci_execute($stmt, -1);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECTF--
|
||||
Warning: oci_execute(): Invalid execute mode given: -1 in %s on line %d
|
||||
Done
|
||||
|
@ -43,7 +43,7 @@ $stmtarray = array(
|
||||
);
|
||||
|
||||
oci8_test_sql_execute($c, $stmtarray);
|
||||
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
|
@ -45,7 +45,7 @@ $stmtarray = array(
|
||||
);
|
||||
|
||||
oci8_test_sql_execute($c, $stmtarray);
|
||||
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
|
@ -50,7 +50,7 @@ var_dump(oci_fetch_all($s, $all, 0, 1, OCI_BOTH));
|
||||
var_dump($all);
|
||||
|
||||
require dirname(__FILE__).'/drop_table.inc';
|
||||
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
|
@ -97,7 +97,7 @@ while ($row = oci_fetch_array($s, OCI_NUM+OCI_RETURN_NULLS)) {
|
||||
}
|
||||
|
||||
require dirname(__FILE__).'/drop_table.inc';
|
||||
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
|
@ -58,7 +58,7 @@ var_dump(ocifetchinto($s, $all, OCI_NUM+OCI_RETURN_NULLS+OCI_RETURN_LOBS));
|
||||
var_dump($all);
|
||||
|
||||
require dirname(__FILE__).'/drop_table.inc';
|
||||
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
|
@ -46,7 +46,7 @@ var_dump(ocifetchinto($s, $all, 1000000));
|
||||
var_dump($all);
|
||||
|
||||
require dirname(__FILE__).'/drop_table.inc';
|
||||
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user