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_1.phpt ('Set and get of connection attributes with all types of connections.')

Script

1: <?php
2:
3: $testuser     
'testuser_attr_1';  // Used in conn_attr.inc
4:
$testpassword 'testuser'
5:
6: require(
dirname(__FILE__)."/conn_attr.inc");
7:
8:
$attr_array = array('MODULE','ACTION','CLIENT_INFO','CLIENT_IDENTIFIER');
9:
10: echo
"**Test 1.1 - Default values for the attributes **************\n";
11:
$c get_conn(1);
12: foreach(
$attr_array as $attr) {
13:         
get_attr($c,$attr);
14: }
15:
16: echo
"**Test 1.2 - Set and get values for the attributes **************\n";
17:
18:
// With oci_connect, oci_pconnect, oci_new_connect
19:
20:
$conn1 get_conn(1); //oci_connect()
21:
foreach($attr_array as $attr) {
22:     
set_attr($conn1,$attr,1);
23:     
get_attr($conn1,$attr);
24: }
25:
26:
$conn2 get_conn(2); //oci_pconnect()
27:
foreach($attr_array as $attr) {
28:     
set_attr($conn2,$attr,2);
29:     
get_attr($conn2,$attr);
30: }
31:
32:
$conn3 get_conn(3); //oci_new_connect()
33:
foreach($attr_array as $attr) {
34:     
set_attr($conn3,$attr,3);
35:     
get_attr($conn3,$attr);
36: }
37:
38:
// clean up
39:
oci_close($conn1);
40:
oci_close($conn2);
41:
oci_close($conn3);
42:
clean_up($c);
43:
44: echo 
"Done\n";
45:
46:
?>
47:

Expected

**Test 1.1 - Default values for the attributes **************
Testing with oci_connect()
The value of MODULE is %s
The value of ACTION is 
The value of CLIENT_INFO is 
The value of CLIENT_IDENTIFIER is 
**Test 1.2 - Set and get values for the attributes **************
Testing with oci_connect()
Value of MODULE has been set successfully
The value of MODULE is PHP TEST1
Value of ACTION has been set successfully
The value of ACTION is TASK1
Value of CLIENT_INFO has been set successfully
The value of CLIENT_INFO is INFO11
Value of CLIENT_IDENTIFIER has been set successfully
The value of CLIENT_IDENTIFIER is ID001
Testing with oci_pconnect()
Value of MODULE has been set successfully
The value of MODULE is PHP TEST2
Value of ACTION has been set successfully
The value of ACTION is TASK2
Value of CLIENT_INFO has been set successfully
The value of CLIENT_INFO is INFO12
Value of CLIENT_IDENTIFIER has been set successfully
The value of CLIENT_IDENTIFIER is ID002
Testing with oci_new_connect()
Value of MODULE has been set successfully
The value of MODULE is PHP TEST3
Value of ACTION has been set successfully
The value of ACTION is TASK3
Value of CLIENT_INFO has been set successfully
The value of CLIENT_INFO is INFO13
Value of CLIENT_IDENTIFIER has been set successfully
The value of CLIENT_IDENTIFIER is ID003
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:13
  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:13
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 1.1 - Default values for the attributes **************
002- Testing with oci_connect()
003- The value of MODULE is %s
004- The value of ACTION is 
005- The value of CLIENT_INFO is 
006- The value of CLIENT_IDENTIFIER is 
007- **Test 1.2 - Set and get values for the attributes **************
008- Testing with oci_connect()
009- Value of MODULE has been set successfully
010- The value of MODULE is PHP TEST1
011- Value of ACTION has been set successfully
012- The value of ACTION is TASK1
013- Value of CLIENT_INFO has been set successfully
014- The value of CLIENT_INFO is INFO11
015- Value of CLIENT_IDENTIFIER has been set successfully
016- The value of CLIENT_IDENTIFIER is ID001
017- Testing with oci_pconnect()
018- Value of MODULE has been set successfully
019- The value of MODULE is PHP TEST2
020- Value of ACTION has been set successfully
021- The value of ACTION is TASK2
022- Value of CLIENT_INFO has been set successfully
023- The value of CLIENT_INFO is INFO12
024- Value of CLIENT_IDENTIFIER has been set successfully
025- The value of CLIENT_IDENTIFIER is ID002
026- Testing with oci_new_connect()
027- Value of MODULE has been set successfully
028- The value of MODULE is PHP TEST3
029- Value of ACTION has been set successfully
030- The value of ACTION is TASK3
031- Value of CLIENT_INFO has been set successfully
032- The value of CLIENT_INFO is INFO13
033- Value of CLIENT_IDENTIFIER has been set successfully
034- The value of CLIENT_IDENTIFIER is ID003
035- Done

 

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

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