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_all1.phpt ('oci_fetch_all()')

Script

1: <?php
2:
3:
require(dirname(__FILE__)."/connect.inc");
4:
5:
// Initialize
6:
7:
$stmtarray = array(
8:     
"drop table fetch_all_tab",
9:     
"create table fetch_all_tab (id number, value number)",
10:     
"insert into fetch_all_tab (id, value) values (1,1)",
11:     
"insert into fetch_all_tab (id, value) values (1,1)",
12:     
"insert into fetch_all_tab (id, value) values (1,1)"
13:
);
14:
15:
oci8_test_sql_execute($c$stmtarray);
16:
17: if (!(
$s oci_parse($c"select * from fetch_all_tab"))) {
18:     die(
"oci_parse(select) failed!\n");
19: }
20:
21:
/* oci_fetch_all */
22:
if (!oci_execute($s)) {
23:     die(
"oci_execute(select) failed!\n");
24: }
25:
var_dump(oci_fetch_all($s$all));
26:
var_dump($all);
27:
28:
/* ocifetchstatement */
29:
if (!oci_execute($s)) {
30:     die(
"oci_execute(select) failed!\n");
31: }
32:
33:
var_dump(ocifetchstatement($s$all));
34:
var_dump($all);
35:
36:
// Cleanup
37:
38:
$stmtarray = array(
39:     
"drop table fetch_all_tab"
40:
);
41:
42:
oci8_test_sql_execute($c$stmtarray);
43:     
44: echo 
"Done\n";
45:
?>
46:

Expected

int(3)
array(2) {
  ["ID"]=>
  array(3) {
    [0]=>
    string(1) "1"
    [1]=>
    string(1) "1"
    [2]=>
    string(1) "1"
  }
  ["VALUE"]=>
  array(3) {
    [0]=>
    string(1) "1"
    [1]=>
    string(1) "1"
    [2]=>
    string(1) "1"
  }
}
int(3)
array(2) {
  ["ID"]=>
  array(3) {
    [0]=>
    string(1) "1"
    [1]=>
    string(1) "1"
    [2]=>
    string(1) "1"
  }
  ["VALUE"]=>
  array(3) {
    [0]=>
    string(1) "1"
    [1]=>
    string(1) "1"
    [2]=>
    string(1) "1"
  }
}
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:37:44
  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:37:44
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(3)
002- array(2) {
003-   ["ID"]=>
004-   array(3) {
005-     [0]=>
006-     string(1) "1"
007-     [1]=>
008-     string(1) "1"
009-     [2]=>
010-     string(1) "1"
011-   }
012-   ["VALUE"]=>
013-   array(3) {
014-     [0]=>
015-     string(1) "1"
016-     [1]=>
017-     string(1) "1"
018-     [2]=>
019-     string(1) "1"
020-   }
021- }
022- int(3)
023- array(2) {
024-   ["ID"]=>
025-   array(3) {
026-     [0]=>
027-     string(1) "1"
028-     [1]=>
029-     string(1) "1"
030-     [2]=>
031-     string(1) "1"
032-   }
033-   ["VALUE"]=>
034-   array(3) {
035-     [0]=>
036-     string(1) "1"
037-     [1]=>
038-     string(1) "1"
039-     [2]=>
040-     string(1) "1"
041-   }
042- }
043- Done

 

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

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