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_newconnect.phpt ('DRCP: oci_new_connect()')

Script

1: <?php
2:
3:
require dirname(__FILE__)."/details.inc";
4:
5:
// Open two connections with oci_new_connect
6: // Verify they are different by comparing the resource ids
7:
8:
var_dump($c1 oci_new_connect($user,$password,$dbase));
9:
$rn1 = (int)$c1;
10:
11:
// Another connection now
12:
13:
var_dump($c2 oci_new_connect($user,$password,$dbase));
14:
$rn2 = (int)$c2;
15:
16:
// rn1 and rn2 should be different.
17:
18:
if ($rn1 === $rn2)
19:     echo 
"First and second connections share a resource: Not OK\n";
20: else
21:     echo 
"First and second connections are different  OK\n";
22:
23:
// Close the connections
24:
oci_close($c1);
25:
oci_close($c2);
26:
27: echo 
"Done\n";
28:
29:
?>
30:

Expected

resource(%d) of type (oci8 connection)
resource(%d) of type (oci8 connection)
First and second 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:30:17
  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_new_connect(): ORA-12541: TNS:no listener in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_newconnect.php on line 8
    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:30:17
  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_new_connect(): ORA-12541: TNS:no listener in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_newconnect.php on line 13
    nt secondary err code: 111
    nt OS err code: 0
bool(false)
First and second 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_newconnect.php on line 24

Warning: oci_close() expects parameter 1 to be resource, bool given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_newconnect.php on line 25
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+ 
001- resource(%d) of type (oci8 connection)
002- resource(%d) of type (oci8 connection)
003- First and second connections are different  OK
004- Done
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:30:17
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_new_connect(): ORA-12541: TNS:no listener in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_newconnect.php on line 8
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:30:17
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_new_connect(): ORA-12541: TNS:no listener in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_newconnect.php on line 13
040+     nt secondary err code: 111
041+     nt OS err code: 0
042+ bool(false)
043+ First and second connections share a resource: Not OK
044+ 
045+ Warning: oci_close() expects parameter 1 to be resource, bool given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_newconnect.php on line 24
046+ 
047+ Warning: oci_close() expects parameter 1 to be resource, bool given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_newconnect.php on line 25
048+ Done

 

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

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