PHP  
 PHP_HEAD
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Test Failure Report for ext/oci8/tests/fetch_into1.phpt ('various ocifetchinto() tests')

Script

1: <?php
2:
3:
require dirname(__FILE__)."/connect.inc";
4: require 
dirname(__FILE__).'/create_table.inc';
5:
6:
$insert_sql "INSERT INTO ".$schema."".$table_name." (id, value, string) VALUES (1, 1, NULL)";
7:
8: if (!(
$s oci_parse($c$insert_sql))) {
9:     die(
"oci_parse(insert) failed!\n");
10: }
11:
12: for (
$i 0$i<20$i++) {
13:     if (!
oci_execute($s)) {
14:         die(
"oci_execute(insert) failed!\n");
15:     }
16: }
17:
18: if (!
oci_commit($c)) {
19:     die(
"oci_commit() failed!\n");
20: }
21:
22:
$select_sql "SELECT * FROM ".$schema."".$table_name."";
23:
24: if (!(
$s oci_parse($c$select_sql))) {
25:     die(
"oci_parse(select) failed!\n");
26: }
27:
28: if (!
oci_execute($s)) {
29:     die(
"oci_execute(select) failed!\n");
30: }
31:
var_dump(ocifetchinto($s$allOCI_NUM));
32:
var_dump($all);
33:
var_dump(ocifetchinto($s$allOCI_ASSOC));
34:
var_dump($all);
35:
var_dump(ocifetchinto($s$allOCI_RETURN_NULLS));
36:
var_dump($all);
37:
var_dump(ocifetchinto($s$allOCI_RETURN_LOBS));
38:
var_dump($all);
39:
var_dump(ocifetchinto($s$allOCI_NUM+OCI_ASSOC));
40:
var_dump($all);
41:
var_dump(ocifetchinto($s$allOCI_NUM+OCI_ASSOC+OCI_RETURN_NULLS));
42:
var_dump($all);
43:
var_dump(ocifetchinto($s$allOCI_NUM+OCI_ASSOC+OCI_RETURN_NULLS+OCI_RETURN_LOBS));
44:
var_dump($all);
45:
var_dump(ocifetchinto($s$allOCI_RETURN_NULLS+OCI_RETURN_LOBS));
46:
var_dump($all);
47:
var_dump(ocifetchinto($s$allOCI_ASSOC+OCI_RETURN_NULLS+OCI_RETURN_LOBS));
48:
var_dump($all);
49:
var_dump(ocifetchinto($s$allOCI_NUM+OCI_RETURN_NULLS+OCI_RETURN_LOBS));
50:
var_dump($all);
51:
52: require 
dirname(__FILE__).'/drop_table.inc';
53:     
54: echo 
"Done\n";
55:
?>
56:

Expected

int(5)
array(2) {
  [0]=>
  string(1) "1"
  [1]=>
  string(1) "1"
}
int(5)
array(2) {
  ["ID"]=>
  string(1) "1"
  ["VALUE"]=>
  string(1) "1"
}
int(5)
array(5) {
  [0]=>
  string(1) "1"
  [1]=>
  string(1) "1"
  [2]=>
  NULL
  [3]=>
  NULL
  [4]=>
  NULL
}
int(5)
array(2) {
  [0]=>
  string(1) "1"
  [1]=>
  string(1) "1"
}
int(5)
array(4) {
  [0]=>
  string(1) "1"
  ["ID"]=>
  string(1) "1"
  [1]=>
  string(1) "1"
  ["VALUE"]=>
  string(1) "1"
}
int(5)
array(10) {
  [0]=>
  string(1) "1"
  ["ID"]=>
  string(1) "1"
  [1]=>
  string(1) "1"
  ["VALUE"]=>
  string(1) "1"
  [2]=>
  NULL
  ["BLOB"]=>
  NULL
  [3]=>
  NULL
  ["CLOB"]=>
  NULL
  [4]=>
  NULL
  ["STRING"]=>
  NULL
}
int(5)
array(10) {
  [0]=>
  string(1) "1"
  ["ID"]=>
  string(1) "1"
  [1]=>
  string(1) "1"
  ["VALUE"]=>
  string(1) "1"
  [2]=>
  NULL
  ["BLOB"]=>
  NULL
  [3]=>
  NULL
  ["CLOB"]=>
  NULL
  [4]=>
  NULL
  ["STRING"]=>
  NULL
}
int(5)
array(5) {
  [0]=>
  string(1) "1"
  [1]=>
  string(1) "1"
  [2]=>
  NULL
  [3]=>
  NULL
  [4]=>
  NULL
}
int(5)
array(5) {
  ["ID"]=>
  string(1) "1"
  ["VALUE"]=>
  string(1) "1"
  ["BLOB"]=>
  NULL
  ["CLOB"]=>
  NULL
  ["STRING"]=>
  NULL
}
int(5)
array(5) {
  [0]=>
  string(1) "1"
  [1]=>
  string(1) "1"
  [2]=>
  NULL
  [3]=>
  NULL
  [4]=>
  NULL
}
Done

Output

***********************************************************************
Fatal NI connect error 12541, connecting to:
 (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=XE)(CID=(PROGRAM=php)(HOST=nex2.php.net)(USER=nlopess)))(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521)))

  VERSION INFORMATION:
	TNS for Linux: Version 11.2.0.2.0 - Beta
	TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.2.0 - Beta
  Time: 17-JUN-2018 05:39:43
  Tracing not turned on.
  Tns error struct:
    ns main err code: 12541
    TNS-12541: TNS:no listener
    ns secondary err code: 12560
    nt main err code: 511
    TNS-00511: No listener

Fatal error: connect.inc: Failed to connect as 'system' to 'localhost/XE': ORA-12541: TNS:no listener in /var/php_gcov/PHP_HEAD/ext/oci8/tests/connect.inc on line 14
    nt secondary err code: 111
    nt OS err code: 0

Diff

001+ ***********************************************************************
002+ Fatal NI connect error 12541, connecting to:
003+  (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=XE)(CID=(PROGRAM=php)(HOST=nex2.php.net)(USER=nlopess)))(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521)))
004+ 
005+   VERSION INFORMATION:
006+ 	TNS for Linux: Version 11.2.0.2.0 - Beta
007+ 	TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.2.0 - Beta
008+   Time: 17-JUN-2018 05:39:43
009+   Tracing not turned on.
010+   Tns error struct:
011+     ns main err code: 12541
012+     TNS-12541: TNS:no listener
013+     ns secondary err code: 12560
014+     nt main err code: 511
015+     TNS-00511: No listener
016+ 
017+ Fatal error: connect.inc: Failed to connect as 'system' to 'localhost/XE': ORA-12541: TNS:no listener in /var/php_gcov/PHP_HEAD/ext/oci8/tests/connect.inc on line 14
018+     nt secondary err code: 111
019+     nt OS err code: 0
001- int(5)
002- array(2) {
003-   [0]=>
004-   string(1) "1"
005-   [1]=>
006-   string(1) "1"
007- }
008- int(5)
009- array(2) {
010-   ["ID"]=>
011-   string(1) "1"
012-   ["VALUE"]=>
013-   string(1) "1"
014- }
015- int(5)
016- array(5) {
017-   [0]=>
018-   string(1) "1"
019-   [1]=>
020-   string(1) "1"
021-   [2]=>
022-   NULL
023-   [3]=>
024-   NULL
025-   [4]=>
026-   NULL
027- }
028- int(5)
029- array(2) {
030-   [0]=>
031-   string(1) "1"
032-   [1]=>
033-   string(1) "1"
034- }
035- int(5)
036- array(4) {
037-   [0]=>
038-   string(1) "1"
039-   ["ID"]=>
040-   string(1) "1"
041-   [1]=>
042-   string(1) "1"
043-   ["VALUE"]=>
044-   string(1) "1"
045- }
046- int(5)
047- array(10) {
048-   [0]=>
049-   string(1) "1"
050-   ["ID"]=>
051-   string(1) "1"
052-   [1]=>
053-   string(1) "1"
054-   ["VALUE"]=>
055-   string(1) "1"
056-   [2]=>
057-   NULL
058-   ["BLOB"]=>
059-   NULL
060-   [3]=>
061-   NULL
062-   ["CLOB"]=>
063-   NULL
064-   [4]=>
065-   NULL
066-   ["STRING"]=>
067-   NULL
068- }
069- int(5)
070- array(10) {
071-   [0]=>
072-   string(1) "1"
073-   ["ID"]=>
074-   string(1) "1"
075-   [1]=>
076-   string(1) "1"
077-   ["VALUE"]=>
078-   string(1) "1"
079-   [2]=>
080-   NULL
081-   ["BLOB"]=>
082-   NULL
083-   [3]=>
084-   NULL
085-   ["CLOB"]=>
086-   NULL
087-   [4]=>
088-   NULL
089-   ["STRING"]=>
090-   NULL
091- }
092- int(5)
093- array(5) {
094-   [0]=>
095-   string(1) "1"
096-   [1]=>
097-   string(1) "1"
098-   [2]=>
099-   NULL
100-   [3]=>
101-   NULL
102-   [4]=>
103-   NULL
104- }
105- int(5)
106- array(5) {
107-   ["ID"]=>
108-   string(1) "1"
109-   ["VALUE"]=>
110-   string(1) "1"
111-   ["BLOB"]=>
112-   NULL
113-   ["CLOB"]=>
114-   NULL
115-   ["STRING"]=>
116-   NULL
117- }
118- int(5)
119- array(5) {
120-   [0]=>
121-   string(1) "1"
122-   [1]=>
123-   string(1) "1"
124-   [2]=>
125-   NULL
126-   [3]=>
127-   NULL
128-   [4]=>
129-   NULL
130- }
131- Done

 

Generated at Mon, 18 Jun 2018 17:33:50 +0000 (2 days ago)

Copyright © 2005-2018 The PHP Group
All rights reserved.