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/imp_res_get_3.phpt ('Oracle Database 12c Implicit Result Sets: oci_get_implicit_resultset: basic test 3')

Script

1: <?php
2:
3:
require(dirname(__FILE__).'/connect.inc');
4:
5:
// Initialization
6:
7:
$stmtarray = array(
8:     
"drop table imp_res_get_3_tab_1",
9:     
"create table imp_res_get_3_tab_1 (c1 number, c2 varchar2(10))",
10:     
"insert into imp_res_get_3_tab_1 values (1, 'abcde')",
11:     
"insert into imp_res_get_3_tab_1 values (2, 'fghij')",
12:     
"insert into imp_res_get_3_tab_1 values (3, 'klmno')",
13:
14:     
"drop table imp_res_get_3_tab_2",
15:     
"create table imp_res_get_3_tab_2 (c3 varchar2(1))",
16:     
"insert into imp_res_get_3_tab_2 values ('t')",
17:     
"insert into imp_res_get_3_tab_2 values ('u')",
18:     
"insert into imp_res_get_3_tab_2 values ('v')",
19:
20:     
"create or replace procedure imp_res_get_3_proc as
21:       c1 sys_refcursor;
22:       i pls_integer;
23:     begin
24:       for i in 1..30 loop  -- if this value is too big for Oracle's open_cursors, calling imp_res_get_3_proc() can fail with ORA-1000
25:         open c1 for select * from imp_res_get_3_tab_1 order by 1;
26:         dbms_sql.return_result(c1);
27:         open c1 for select * from imp_res_get_3_tab_2 where rownum < 3 order by 1;
28:         dbms_sql.return_result(c1);
29:         open c1 for select * from dual;
30:         dbms_sql.return_result (c1);
31:       end loop;
32:     end;"
33:
);
34:
35:
oci8_test_sql_execute($c$stmtarray);
36:
37:
// Run Test
38:
39:
echo "Test 1\n";
40:
41:
$s oci_parse($c"begin imp_res_get_3_proc(); end;");
42:
oci_execute($s);
43:
44: while ((
$s1 oci_get_implicit_resultset($s))) {
45:     while ((
$row oci_fetch_array($s1OCI_ASSOC+OCI_RETURN_NULLS)) != false) {
46:         foreach (
$row as $item) {
47:             echo 
"  ".$item;
48:         }
49:         echo 
"\n";
50:     }
51: }
52:
53:
// Clean up
54:
55:
$stmtarray = array(
56:     
"drop procedure imp_res_get_3_proc",
57:     
"drop table imp_res_get_3_tab_1",
58:     
"drop table imp_res_get_3_tab_2"
59:
);
60:
61:
oci8_test_sql_execute($c$stmtarray);
62:
63:
?>
64:
===DONE===
65:

Expected

Test 1
  1  abcde
  2  fghij
  3  klmno
  t
  u
  X
  1  abcde
  2  fghij
  3  klmno
  t
  u
  X
  1  abcde
  2  fghij
  3  klmno
  t
  u
  X
  1  abcde
  2  fghij
  3  klmno
  t
  u
  X
  1  abcde
  2  fghij
  3  klmno
  t
  u
  X
  1  abcde
  2  fghij
  3  klmno
  t
  u
  X
  1  abcde
  2  fghij
  3  klmno
  t
  u
  X
  1  abcde
  2  fghij
  3  klmno
  t
  u
  X
  1  abcde
  2  fghij
  3  klmno
  t
  u
  X
  1  abcde
  2  fghij
  3  klmno
  t
  u
  X
  1  abcde
  2  fghij
  3  klmno
  t
  u
  X
  1  abcde
  2  fghij
  3  klmno
  t
  u
  X
  1  abcde
  2  fghij
  3  klmno
  t
  u
  X
  1  abcde
  2  fghij
  3  klmno
  t
  u
  X
  1  abcde
  2  fghij
  3  klmno
  t
  u
  X
  1  abcde
  2  fghij
  3  klmno
  t
  u
  X
  1  abcde
  2  fghij
  3  klmno
  t
  u
  X
  1  abcde
  2  fghij
  3  klmno
  t
  u
  X
  1  abcde
  2  fghij
  3  klmno
  t
  u
  X
  1  abcde
  2  fghij
  3  klmno
  t
  u
  X
  1  abcde
  2  fghij
  3  klmno
  t
  u
  X
  1  abcde
  2  fghij
  3  klmno
  t
  u
  X
  1  abcde
  2  fghij
  3  klmno
  t
  u
  X
  1  abcde
  2  fghij
  3  klmno
  t
  u
  X
  1  abcde
  2  fghij
  3  klmno
  t
  u
  X
  1  abcde
  2  fghij
  3  klmno
  t
  u
  X
  1  abcde
  2  fghij
  3  klmno
  t
  u
  X
  1  abcde
  2  fghij
  3  klmno
  t
  u
  X
  1  abcde
  2  fghij
  3  klmno
  t
  u
  X
  1  abcde
  2  fghij
  3  klmno
  t
  u
  X
===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:46:53
  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:46:53
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- Test 1
002-   1  abcde
003-   2  fghij
004-   3  klmno
005-   t
006-   u
007-   X
008-   1  abcde
009-   2  fghij
010-   3  klmno
011-   t
012-   u
013-   X
014-   1  abcde
015-   2  fghij
016-   3  klmno
017-   t
018-   u
019-   X
020-   1  abcde
021-   2  fghij
022-   3  klmno
023-   t
024-   u
025-   X
026-   1  abcde
027-   2  fghij
028-   3  klmno
029-   t
030-   u
031-   X
032-   1  abcde
033-   2  fghij
034-   3  klmno
035-   t
036-   u
037-   X
038-   1  abcde
039-   2  fghij
040-   3  klmno
041-   t
042-   u
043-   X
044-   1  abcde
045-   2  fghij
046-   3  klmno
047-   t
048-   u
049-   X
050-   1  abcde
051-   2  fghij
052-   3  klmno
053-   t
054-   u
055-   X
056-   1  abcde
057-   2  fghij
058-   3  klmno
059-   t
060-   u
061-   X
062-   1  abcde
063-   2  fghij
064-   3  klmno
065-   t
066-   u
067-   X
068-   1  abcde
069-   2  fghij
070-   3  klmno
071-   t
072-   u
073-   X
074-   1  abcde
075-   2  fghij
076-   3  klmno
077-   t
078-   u
079-   X
080-   1  abcde
081-   2  fghij
082-   3  klmno
083-   t
084-   u
085-   X
086-   1  abcde
087-   2  fghij
088-   3  klmno
089-   t
090-   u
091-   X
092-   1  abcde
093-   2  fghij
094-   3  klmno
095-   t
096-   u
097-   X
098-   1  abcde
099-   2  fghij
100-   3  klmno
101-   t
102-   u
103-   X
104-   1  abcde
105-   2  fghij
106-   3  klmno
107-   t
108-   u
109-   X
110-   1  abcde
111-   2  fghij
112-   3  klmno
113-   t
114-   u
115-   X
116-   1  abcde
117-   2  fghij
118-   3  klmno
119-   t
120-   u
121-   X
122-   1  abcde
123-   2  fghij
124-   3  klmno
125-   t
126-   u
127-   X
128-   1  abcde
129-   2  fghij
130-   3  klmno
131-   t
132-   u
133-   X
134-   1  abcde
135-   2  fghij
136-   3  klmno
137-   t
138-   u
139-   X
140-   1  abcde
141-   2  fghij
142-   3  klmno
143-   t
144-   u
145-   X
146-   1  abcde
147-   2  fghij
148-   3  klmno
149-   t
150-   u
151-   X
152-   1  abcde
153-   2  fghij
154-   3  klmno
155-   t
156-   u
157-   X
158-   1  abcde
159-   2  fghij
160-   3  klmno
161-   t
162-   u
163-   X
164-   1  abcde
165-   2  fghij
166-   3  klmno
167-   t
168-   u
169-   X
170-   1  abcde
171-   2  fghij
172-   3  klmno
173-   t
174-   u
175-   X
176-   1  abcde
177-   2  fghij
178-   3  klmno
179-   t
180-   u
181-   X
182- ===DONE===

 

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

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