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/pecl_bug8816.phpt ('PECL Bug #8816 (issue in php_oci_statement_fetch with more than one piecewise column)')

Script

1: <?php
2:
3:
require dirname(__FILE__)."/connect.inc";
4:
5:
$create_1 "CREATE TABLE t1 (id INTEGER, l1 LONG)";
6:
$create_2 "CREATE TABLE t2 (id INTEGER, l2 LONG)";
7:
$drop_1 "DROP TABLE t1";
8:
$drop_2 "DROP TABLE t2";
9:
10:
$s1 oci_parse($c$drop_1);
11:
$s2 oci_parse($c$drop_2);
12: @
oci_execute($s1);
13: @
oci_execute($s2);
14:
15:
$s1 oci_parse($c$create_1);
16:
$s2 oci_parse($c$create_2);
17:
oci_execute($s1);
18:
oci_execute($s2);
19:
20:
$values = array("1234567890111111111""122222222222222""985456745674567654567654567654""123456789""987654321");
21:
22:
$i 0;
23: foreach (
$values as $val) {
24:     
$i++;
25:     
$insert "INSERT INTO t1 VALUES($i, ".$val.")";
26:     
$s oci_parse($c$insert);
27:     
oci_execute($s);
28: }
29:
30: foreach (
$values as $val) {
31:     
$insert "INSERT INTO t2 VALUES($i, ".$val.")";
32:     
$s oci_parse($c$insert);
33:     
oci_execute($s);
34:     
$i--;
35: }
36:
37:
$query ="
38: SELECT
39:   t1.l1, t2.l2
40: FROM
41: t1, t2
42: WHERE 
43: t1.id = t2.id 
44: ORDER BY t1.id ASC
45: "
;
46:
47:
$sth oci_parse($c$query);
48:
oci_execute($sth);
49:
50: while ( 
$row oci_fetch_assoc($sth) ) {
51:     
var_dump($row);
52: }
53:
54:
$s1 oci_parse($c$drop_1);
55:
$s2 oci_parse($c$drop_2);
56: @
oci_execute($s1);
57: @
oci_execute($s2);
58:
59: echo 
"Done\n";
60:
61:
?>
62:

Expected

array(2) {
  ["L1"]=>
  string(19) "1234567890111111111"
  ["L2"]=>
  string(9) "987654321"
}
array(2) {
  ["L1"]=>
  string(15) "122222222222222"
  ["L2"]=>
  string(9) "123456789"
}
array(2) {
  ["L1"]=>
  string(30) "985456745674567654567654567654"
  ["L2"]=>
  string(30) "985456745674567654567654567654"
}
array(2) {
  ["L1"]=>
  string(9) "123456789"
  ["L2"]=>
  string(15) "122222222222222"
}
array(2) {
  ["L1"]=>
  string(9) "987654321"
  ["L2"]=>
  string(19) "1234567890111111111"
}
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 06:07:24
  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 06:07:24
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- array(2) {
002-   ["L1"]=>
003-   string(19) "1234567890111111111"
004-   ["L2"]=>
005-   string(9) "987654321"
006- }
007- array(2) {
008-   ["L1"]=>
009-   string(15) "122222222222222"
010-   ["L2"]=>
011-   string(9) "123456789"
012- }
013- array(2) {
014-   ["L1"]=>
015-   string(30) "985456745674567654567654567654"
016-   ["L2"]=>
017-   string(30) "985456745674567654567654567654"
018- }
019- array(2) {
020-   ["L1"]=>
021-   string(9) "123456789"
022-   ["L2"]=>
023-   string(15) "122222222222222"
024- }
025- array(2) {
026-   ["L1"]=>
027-   string(9) "987654321"
028-   ["L2"]=>
029-   string(19) "1234567890111111111"
030- }
031- Done

 

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

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