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/lob_028.phpt ('Test descriptor types for oci_new_descriptor()')

Script

1: <?php
2:
3:
require dirname(__FILE__).'/connect.inc';
4:
5:
// Successful statements
6:
7:
$d oci_new_descriptor($cOCI_D_FILE);
8:
var_dump($d);
9:
10:
$d oci_new_descriptor($cOCI_DTYPE_FILE);
11:
var_dump($d);
12:
13:
$d oci_new_descriptor($cOCI_D_LOB);
14:
var_dump($d);
15:
16:
$d oci_new_descriptor($cOCI_DTYPE_LOB);
17:
var_dump($d);
18:
19:
$d oci_new_descriptor($cOCI_D_ROWID);
20:
var_dump($d);
21:
22:
$d oci_new_descriptor($cOCI_DTYPE_ROWID);
23:
var_dump($d);
24:
25:
// Unsuccessful statements
26:
27:
$d oci_new_descriptor($cOCI_B_CLOB);
28:
var_dump($d);
29:
30:
$d oci_new_descriptor($cOCI_B_CLOB);
31:
var_dump($d);
32:
33:
$d oci_new_descriptor($cOCI_DEFAULT);
34:
var_dump($d);
35:
36:
$d oci_new_descriptor($c1);
37:
var_dump($d);
38:
39: echo 
"Done\n";
40:
41:
?>
42:

Expected

object(OCI-Lob)#%d (1) {
  ["descriptor"]=>
  resource(%d) of type (oci8 descriptor)
}
object(OCI-Lob)#%d (1) {
  ["descriptor"]=>
  resource(%d) of type (oci8 descriptor)
}
object(OCI-Lob)#%d (1) {
  ["descriptor"]=>
  resource(%d) of type (oci8 descriptor)
}
object(OCI-Lob)#%d (1) {
  ["descriptor"]=>
  resource(%d) of type (oci8 descriptor)
}
object(OCI-Lob)#%d (1) {
  ["descriptor"]=>
  resource(%d) of type (oci8 descriptor)
}
object(OCI-Lob)#%d (1) {
  ["descriptor"]=>
  resource(%d) of type (oci8 descriptor)
}

Warning: oci_new_descriptor(): Unknown descriptor type %d in %s on line %d
NULL

Warning: oci_new_descriptor(): Unknown descriptor type %d in %s on line %d
NULL

Warning: oci_new_descriptor(): Unknown descriptor type %d in %s on line %d
NULL

Warning: oci_new_descriptor(): Unknown descriptor type %d in %s on line %d
NULL
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:57:32
  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:57:32
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- object(OCI-Lob)#%d (1) {
002-   ["descriptor"]=>
003-   resource(%d) of type (oci8 descriptor)
004- }
005- object(OCI-Lob)#%d (1) {
006-   ["descriptor"]=>
007-   resource(%d) of type (oci8 descriptor)
008- }
009- object(OCI-Lob)#%d (1) {
010-   ["descriptor"]=>
011-   resource(%d) of type (oci8 descriptor)
012- }
013- object(OCI-Lob)#%d (1) {
014-   ["descriptor"]=>
015-   resource(%d) of type (oci8 descriptor)
016- }
017- object(OCI-Lob)#%d (1) {
018-   ["descriptor"]=>
019-   resource(%d) of type (oci8 descriptor)
020- }
021- object(OCI-Lob)#%d (1) {
022-   ["descriptor"]=>
023-   resource(%d) of type (oci8 descriptor)
024- }
025- 
026- Warning: oci_new_descriptor(): Unknown descriptor type %d in %s on line %d
027- NULL
028- 
029- Warning: oci_new_descriptor(): Unknown descriptor type %d in %s on line %d
030- NULL
031- 
032- Warning: oci_new_descriptor(): Unknown descriptor type %d in %s on line %d
033- NULL
034- 
035- Warning: oci_new_descriptor(): Unknown descriptor type %d in %s on line %d
036- NULL
037- Done

 

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

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