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_lob.phpt ('Oracle Database 12c Implicit Result Sets: LOBs')

Script

1: <?php
2:
3:
require(dirname(__FILE__).'/connect.inc');
4:
5:
// Initialization
6:
7:
$stmtarray = array(
8:     
"drop table imp_res_lob_tab",
9:     
"create table imp_res_lob_tab (c1 number, c2 clob, c3 varchar2(10))",
10:     
"insert into imp_res_lob_tab values (1, 'aaaaa', 'a')",
11:     
"insert into imp_res_lob_tab values (2, 'bbbbb', 'b')",
12:     
"insert into imp_res_lob_tab values (3, 'ccccc', 'c')",
13:     
"insert into imp_res_lob_tab values (4, 'ddddd', 'd')",
14:
15:     
"create or replace procedure imp_res_lob_proc as
16:       c1 sys_refcursor;
17:     begin
18:       open c1 for select * from imp_res_lob_tab order by 1;
19:       dbms_sql.return_result(c1);
20:       open c1 for select * from dual;
21:       dbms_sql.return_result(c1); 
22:       open c1 for select c2 from imp_res_lob_tab order by c1;
23:       dbms_sql.return_result(c1);
24:    end;"
25:
);
26:
27:
oci8_test_sql_execute($c$stmtarray);
28:
29:
// Run Test
30:
31:
echo "Test 1\n";
32:
$s oci_parse($c"begin imp_res_lob_proc(); end;");
33:
oci_execute($s);
34: while ((
$row oci_fetch_row($s)) != false) {
35:     foreach (
$row as $item) {
36:         if (
is_object($item)) {            
37:             echo 
" " $item->load();
38:         } else {
39:             echo 
" " $item;
40:         }
41:     }
42:     echo 
"\n";
43: }
44:
45: echo 
"\nTest 2 - don't fetch all rows\n";
46:
$s oci_parse($c"begin imp_res_lob_proc(); end;");
47:
oci_execute($s);
48:
$row oci_fetch_row($s);
49: foreach (
$row as $item) {
50:     if (
is_object($item)) {            
51:         echo 
" " $item->load();
52:     } else {
53:         echo 
" " $item;
54:     }
55: }
56: echo 
"\n";
57:
58:
// Clean up
59:
60:
$stmtarray = array(
61:     
"drop procedure imp_res_lob_proc",
62:     
"drop table imp_res_lob_tab",
63: );
64:
65:
oci8_test_sql_execute($c$stmtarray);
66:
67:
?>
68:
===DONE===
69:

Expected

Test 1
 1 aaaaa a
 2 bbbbb b
 3 ccccc c
 4 ddddd d
 X
 aaaaa
 bbbbb
 ccccc
 ddddd

Test 2 - don't fetch all rows
 1 aaaaa a
===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:50:07
  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:50:07
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
001- Test 1
002-  1 aaaaa a
003-  2 bbbbb b
004-  3 ccccc c
005-  4 ddddd d
006-  X
007-  aaaaa
008-  bbbbb
009-  ccccc
010-  ddddd
012- Test 2 - don't fetch all rows
013-  1 aaaaa a
014- ===DONE===
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

 

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

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