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/drcp_characterset.phpt ('DRCP: oci_pconnect() and oci_connect() with different character sets')

Script

1: <?php
2:
3:
require dirname(__FILE__)."/details.inc";
4:
5:
// Create connections with oci_connect and oci_pconnect with UTF8 as Charset
6:
7:
$c1 oci_connect($user,$password,$dbase,"UTF8");
8:
var_dump($c1);
9:
10:
// Now with oci_pconnect()
11:
12:
$p1 oci_pconnect($user,$password,$dbase,"UTF8");
13:
var_dump($p1);
14:
15:
// Create two more connections with character set US7ASCII
16:
17:
$c2 oci_connect($user,$password,$dbase,"US7ASCII");
18:
var_dump($c2);
19:
20:
// Now with oci_pconnect()
21:
22:
$p2 oci_pconnect($user,$password,$dbase,"US7ASCII");
23:
var_dump($p2);
24:
25:
// The two connections c1 and c2 should not share resources as they use different
26: //character sets
27:
28:
if((int)$c1 === (int)$c2)
29:     echo 
"First and third connections share a resource: NOT OK\n";
30: else
31:     echo 
"First and third  connections are different: OK\n";
32:
33:
// The two connections p1 and p2 should not share resources as they use different
34: //character sets
35:
36:
if((int)$p1 === (int)$p2)
37:     echo 
"Second and fourth connections share a resource: NOT OK\n";
38: else
39:     echo 
"Second and fourth connections are different: OK\n";
40:
41:
// Close all the connections
42:
oci_close($c1);
43:
oci_close($c2);
44:
oci_close($p1);
45:
oci_close($p2);
46:
47: echo 
"Done\n";
48:
?>
49:

Expected

resource(%d) of type (oci8 connection)
resource(%d) of type (oci8 persistent connection)
resource(%d) of type (oci8 connection)
resource(%d) of type (oci8 persistent connection)
First and third  connections are different: OK
Second and fourth connections are different: OK
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:29:04
  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

Warning: oci_connect(): ORA-12541: TNS:no listener in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_characterset.php on line 7
    nt secondary err code: 111
    nt OS err code: 0
bool(false)


***********************************************************************
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:29:05
  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

Warning: oci_pconnect(): ORA-12541: TNS:no listener in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_characterset.php on line 12
    nt secondary err code: 111
    nt OS err code: 0
bool(false)


***********************************************************************
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:29:05
  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

Warning: oci_connect(): ORA-12541: TNS:no listener in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_characterset.php on line 17
    nt secondary err code: 111
    nt OS err code: 0
bool(false)


***********************************************************************
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:29:05
  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

Warning: oci_pconnect(): ORA-12541: TNS:no listener in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_characterset.php on line 22
    nt secondary err code: 111
    nt OS err code: 0
bool(false)
First and third connections share a resource: NOT OK
Second and fourth connections share a resource: NOT OK

Warning: oci_close() expects parameter 1 to be resource, bool given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_characterset.php on line 42

Warning: oci_close() expects parameter 1 to be resource, bool given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_characterset.php on line 43

Warning: oci_close() expects parameter 1 to be resource, bool given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_characterset.php on line 44

Warning: oci_close() expects parameter 1 to be resource, bool given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_characterset.php on line 45
Done

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
001- resource(%d) of type (oci8 connection)
002- resource(%d) of type (oci8 persistent connection)
003- resource(%d) of type (oci8 connection)
004- resource(%d) of type (oci8 persistent connection)
005- First and third  connections are different: OK
006- Second and fourth connections are different: OK
007- Done
008+   Time: 17-JUN-2018 05:29:04
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+ Warning: oci_connect(): ORA-12541: TNS:no listener in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_characterset.php on line 7
018+     nt secondary err code: 111
019+     nt OS err code: 0
020+ bool(false)
021+ 
022+ 
023+ ***********************************************************************
024+ Fatal NI connect error 12541, connecting to:
025+  (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)))
026+ 
027+   VERSION INFORMATION:
028+ 	TNS for Linux: Version 11.2.0.2.0 - Beta
029+ 	TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.2.0 - Beta
030+   Time: 17-JUN-2018 05:29:05
031+   Tracing not turned on.
032+   Tns error struct:
033+     ns main err code: 12541
034+     TNS-12541: TNS:no listener
035+     ns secondary err code: 12560
036+     nt main err code: 511
037+     TNS-00511: No listener
038+ 
039+ Warning: oci_pconnect(): ORA-12541: TNS:no listener in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_characterset.php on line 12
040+     nt secondary err code: 111
041+     nt OS err code: 0
042+ bool(false)
043+ 
044+ 
045+ ***********************************************************************
046+ Fatal NI connect error 12541, connecting to:
047+  (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)))
048+ 
049+   VERSION INFORMATION:
050+ 	TNS for Linux: Version 11.2.0.2.0 - Beta
051+ 	TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.2.0 - Beta
052+   Time: 17-JUN-2018 05:29:05
053+   Tracing not turned on.
054+   Tns error struct:
055+     ns main err code: 12541
056+     TNS-12541: TNS:no listener
057+     ns secondary err code: 12560
058+     nt main err code: 511
059+     TNS-00511: No listener
060+ 
061+ Warning: oci_connect(): ORA-12541: TNS:no listener in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_characterset.php on line 17
062+     nt secondary err code: 111
063+     nt OS err code: 0
064+ bool(false)
065+ 
066+ 
067+ ***********************************************************************
068+ Fatal NI connect error 12541, connecting to:
069+  (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)))
070+ 
071+   VERSION INFORMATION:
072+ 	TNS for Linux: Version 11.2.0.2.0 - Beta
073+ 	TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.2.0 - Beta
074+   Time: 17-JUN-2018 05:29:05
075+   Tracing not turned on.
076+   Tns error struct:
077+     ns main err code: 12541
078+     TNS-12541: TNS:no listener
079+     ns secondary err code: 12560
080+     nt main err code: 511
081+     TNS-00511: No listener
082+ 
083+ Warning: oci_pconnect(): ORA-12541: TNS:no listener in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_characterset.php on line 22
084+     nt secondary err code: 111
085+     nt OS err code: 0
086+ bool(false)
087+ First and third connections share a resource: NOT OK
088+ Second and fourth connections share a resource: NOT OK
089+ 
090+ Warning: oci_close() expects parameter 1 to be resource, bool given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_characterset.php on line 42
091+ 
092+ Warning: oci_close() expects parameter 1 to be resource, bool given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_characterset.php on line 43
093+ 
094+ Warning: oci_close() expects parameter 1 to be resource, bool given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_characterset.php on line 44
095+ 
096+ Warning: oci_close() expects parameter 1 to be resource, bool given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_characterset.php on line 45
097+ Done

 

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

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