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

Script

1: <?php
2:
3:
require(dirname(__FILE__).'/connect.inc');
4:
5:
// Initialization
6:
7:
$stmtarray = array(
8:     
"create or replace procedure imp_res_2_proc_a as
9:       c1 sys_refcursor;
10:     begin
11:       open c1 for select * from dual where 1 = 0;
12:       dbms_sql.return_result(c1);
13:     end;"
,
14:
15:     
"create or replace procedure imp_res_2_proc_b as
16:       c1 sys_refcursor;
17:     begin
18:       open c1 for select * from dual;
19:       dbms_sql.return_result(c1);
20:       open c1 for select * from dual where 1 = 0;
21:       dbms_sql.return_result(c1);
22:     end;"
,
23:
24:     
"create or replace procedure imp_res_2_proc_c as
25:       c1 sys_refcursor;
26:     begin
27:       open c1 for select * from dual where 1 = 0;
28:       dbms_sql.return_result(c1);
29:       open c1 for select * from dual;
30:       dbms_sql.return_result(c1);
31:     end;"
32:
33:
);
34:
35:
oci8_test_sql_execute($c$stmtarray);
36:
37:
// Run Test
38:
39:
echo "Test 1\n";
40:
$s oci_parse($c"begin imp_res_2_proc_a(); end;");
41:
oci_execute($s);
42: while ((
$row oci_fetch_row($s)) != false)
43:     
var_dump($row);
44:
45: echo 
"Test 2\n";
46:
$s oci_parse($c"begin imp_res_2_proc_b(); end;");
47:
oci_execute($s);
48: while ((
$row oci_fetch_row($s)) != false)
49:     
var_dump($row);
50:
51: echo 
"Test 2\n";
52:
$s oci_parse($c"begin imp_res_2_proc_c(); end;");
53:
oci_execute($s);
54: while ((
$row oci_fetch_row($s)) != false)
55:     
var_dump($row);
56:
57:
// Clean up
58:
59:
$stmtarray = array(
60:     
"drop procedure imp_res_2_proc_a",
61:     
"drop procedure imp_res_2_proc_b",
62:     
"drop procedure imp_res_2_proc_c"
63:
);
64:
65:
oci8_test_sql_execute($c$stmtarray);
66:
67:
?>
68:
===DONE===
69:

Expected

Test 1
Test 2
array(1) {
  [0]=>
  string(1) "X"
}
Test 2
array(1) {
  [0]=>
  string(1) "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:43:09
  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:43:09
009+   Tracing not turned on.
010+   Tns error struct:
011+     ns main err code: 12541
012+     TNS-12541: TNS:no listener
001- Test 1
002- Test 2
003- array(1) {
004-   [0]=>
005-   string(1) "X"
006- }
007- Test 2
008- array(1) {
009-   [0]=>
010-   string(1) "X"
011- }
012- ===DONE===
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

 

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

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