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/conn_attr_3.phpt ('Set and get of connection attributes with oci_close().')

Script

1: <?php
2:
3: $testuser     
'testuser_attr_3';  // Used in conn_attr.inc
4:
$testpassword 'testuser'
5:
6: require(
dirname(__FILE__)."/conn_attr.inc");
7:
8: echo
"**Test Set and get values for  the attributes with oci_close() ************\n";
9:
// With oci_connect ,oci_pconnect ,oci_new_connect
10:
11:
var_dump($conn1 get_conn(1)); //oci_connect()
12:
set_attr($conn1,'ACTION',1);
13:
get_attr($conn1,'ACTION');
14:
oci_close($conn1);
15:
16:
// Open another connect and verify the value.
17:
var_dump($conn1 get_conn(1)); //oci_connect()
18:
get_attr($conn1,'ACTION');
19:
oci_close($conn1);
20:
21:
var_dump($pconn1 get_conn(2)); //oci_pconnect()
22:
set_attr($pconn1,'MODULE',2);
23:
get_attr($pconn1,'MODULE');
24:
oci_close($pconn1);
25:
26:
// Open another connect and verify the value.
27:
var_dump($pconn1 get_conn(2)); //oci_pconnect()
28:
get_attr($pconn1,'MODULE');
29:
oci_close($pconn1);
30:
31:
var_dump($nconn1 get_conn(3)); //oci_new_connect()
32:
set_attr($nconn1,'CLIENT_INFO',3);
33:
set_attr($nconn1,'CLIENT_IDENTIFIER',3);
34:
get_attr($nconn1,'CLIENT_INFO');
35:
get_attr($nconn1,'CLIENT_IDENTIFIER');
36:
oci_close($nconn1);
37:
38:
// Open another connect and verify the value.
39:
var_dump($nconn1 get_conn(3)); //oci_new_connect()
40:
get_attr($nconn1,'CLIENT_INFO');
41:
get_attr($nconn1,'CLIENT_IDENTIFIER');
42:
oci_close($nconn1);
43:
44:
clean_up($c);
45: echo 
"Done\n";
46:
47:
?>
48:

Expected

**Test Set and get values for  the attributes with oci_close() ************
Testing with oci_connect()
resource(%d) of type (oci8 connection)
Value of ACTION has been set successfully
The value of ACTION is TASK1
Testing with oci_connect()
resource(%d) of type (oci8 connection)
The value of ACTION is 
Testing with oci_pconnect()
resource(%d) of type (oci8 persistent connection)
Value of MODULE has been set successfully
The value of MODULE is PHP TEST2
Testing with oci_pconnect()
resource(%d) of type (oci8 persistent connection)
The value of MODULE is PHP TEST2
Testing with oci_new_connect()
resource(%d) of type (oci8 connection)
Value of CLIENT_INFO has been set successfully
Value of CLIENT_IDENTIFIER has been set successfully
The value of CLIENT_INFO is INFO13
The value of CLIENT_IDENTIFIER is ID003
Testing with oci_new_connect()
resource(%d) of type (oci8 connection)
The value of CLIENT_INFO is 
The value of CLIENT_IDENTIFIER is 
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:18:43
  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:18:43
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- **Test Set and get values for  the attributes with oci_close() ************
002- Testing with oci_connect()
003- resource(%d) of type (oci8 connection)
004- Value of ACTION has been set successfully
005- The value of ACTION is TASK1
006- Testing with oci_connect()
007- resource(%d) of type (oci8 connection)
008- The value of ACTION is 
009- Testing with oci_pconnect()
010- resource(%d) of type (oci8 persistent connection)
011- Value of MODULE has been set successfully
012- The value of MODULE is PHP TEST2
013- Testing with oci_pconnect()
014- resource(%d) of type (oci8 persistent connection)
015- The value of MODULE is PHP TEST2
016- Testing with oci_new_connect()
017- resource(%d) of type (oci8 connection)
018- Value of CLIENT_INFO has been set successfully
019- Value of CLIENT_IDENTIFIER has been set successfully
020- The value of CLIENT_INFO is INFO13
021- The value of CLIENT_IDENTIFIER is ID003
022- Testing with oci_new_connect()
023- resource(%d) of type (oci8 connection)
024- The value of CLIENT_INFO is 
025- The value of CLIENT_IDENTIFIER is 
026- Done

 

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

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