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/field_funcs_old.phpt ('ocicolumn*() family')

Script

1: <?php
2:
3:
require dirname(__FILE__)."/connect.inc";
4: require 
dirname(__FILE__).'/create_table.inc';
5:
6:
$insert_sql "INSERT INTO ".$schema."".$table_name." (id, value) VALUES (1,1)";
7:
8: if (!(
$s ociparse($c$insert_sql))) {
9:     die(
"ociparse(insert) failed!\n");
10: }
11:
12: for (
$i 0$i<3$i++) {
13:     if (!
ociexecute($s)) {
14:         die(
"ociexecute(insert) failed!\n");
15:     }
16: }
17:
18: if (!
ocicommit($c)) {
19:     die(
"ocicommit() failed!\n");
20: }
21:
22:
$select_sql "SELECT * FROM ".$schema."".$table_name."";
23:
24: if (!(
$s ociparse($c$select_sql))) {
25:     die(
"ociparse(select) failed!\n");
26: }
27:
28: if (!
ociexecute($s)) {
29:     die(
"ociexecute(select) failed!\n");
30: }
31:
32:
ocifetchinto($s$rowOCI_NUM OCI_RETURN_NULLS OCI_RETURN_LOBS);
33:
var_dump($row);
34:
35: foreach (
$row as $num => $field) {
36:     
$num++;
37:     
var_dump(ocicolumnisnull($s$num));
38:     
var_dump(ocicolumnname($s$num));
39:     
var_dump(ocicolumntype($s$num));
40:     
var_dump(ocicolumntyperaw($s$num));
41:     
var_dump(ocicolumnscale($s$num));
42:     
var_dump(ocicolumnprecision($s$num));
43:     
var_dump(ocicolumnsize($s$num));
44: }
45:
46:
47: require 
dirname(__FILE__).'/drop_table.inc';
48:
49: echo 
"Done\n";
50:
51:
?>
52:

Expected

array(5) {
  [0]=>
  string(1) "1"
  [1]=>
  string(1) "1"
  [2]=>
  NULL
  [3]=>
  NULL
  [4]=>
  NULL
}
bool(false)
string(2) "ID"
string(6) "NUMBER"
int(2)
int(-127)
int(0)
int(22)
bool(false)
string(5) "VALUE"
string(6) "NUMBER"
int(2)
int(-127)
int(0)
int(22)
bool(true)
string(4) "BLOB"
string(4) "BLOB"
int(113)
int(0)
int(0)
int(4000)
bool(true)
string(4) "CLOB"
string(4) "CLOB"
int(112)
int(0)
int(0)
int(4000)
bool(true)
string(6) "STRING"
string(8) "VARCHAR2"
int(1)
int(0)
int(0)
int(10)
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:42:26
  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:42:26
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(5) {
002-   [0]=>
003-   string(1) "1"
004-   [1]=>
005-   string(1) "1"
006-   [2]=>
007-   NULL
008-   [3]=>
009-   NULL
010-   [4]=>
011-   NULL
012- }
013- bool(false)
014- string(2) "ID"
015- string(6) "NUMBER"
016- int(2)
017- int(-127)
018- int(0)
019- int(22)
020- bool(false)
021- string(5) "VALUE"
022- string(6) "NUMBER"
023- int(2)
024- int(-127)
025- int(0)
026- int(22)
027- bool(true)
028- string(4) "BLOB"
029- string(4) "BLOB"
030- int(113)
031- int(0)
032- int(0)
033- int(4000)
034- bool(true)
035- string(4) "CLOB"
036- string(4) "CLOB"
037- int(112)
038- int(0)
039- int(0)
040- int(4000)
041- bool(true)
042- string(6) "STRING"
043- string(8) "VARCHAR2"
044- int(1)
045- int(0)
046- int(0)
047- int(10)
048- Done

 

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

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