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_conn_close1.phpt ('DRCP: oci_connect() with oci_close() and oci8.old_oci_close_semantics ON')

Script

1: <?php
2:
3:
require dirname(__FILE__)."/details.inc";
4:
5:
// Test will open a connection
6: // Close the connection
7: // Open another connection
8: // With oci_close() being a no-op, the same conneciton will be returned
9:
10:
11:
echo "This is with a OCI_CONNECT\n";
12:
var_dump($conn1 oci_connect($user,$password,$dbase));
13:
$rn1 = (int)$conn1;
14:
oci_close($conn1);
15:
16:
// Open another connection
17:
18:
var_dump($conn2 oci_connect($user,$password,$dbase));
19:
$rn2 = (int)$conn2;
20:
oci_close($conn2);
21:
22:
// Compare the resource numbers
23:
24:
if ($rn1 === $rn2)
25:     echo 
"Both connections share a resource : OK \n";
26: else
27:     echo 
"Both connections are different : NOT OK \n";
28:
29: echo 
"Done\n";
30:
31:
?>
32:

Expected

This is with a OCI_CONNECT
resource(%d) of type (oci8 connection)
resource(%d) of type (oci8 connection)
Both connections share a resource : OK 
Done

Output

This is with a OCI_CONNECT


***********************************************************************
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:19
  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_conn_close1.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:20
  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_conn_close1.php on line 18
    nt secondary err code: 111
    nt OS err code: 0
bool(false)
Both connections share a resource : OK 
Done

Diff

002+ 
003+ 
004+ ***********************************************************************
005+ Fatal NI connect error 12541, connecting to:
002- resource(%d) of type (oci8 connection)
003- resource(%d) of type (oci8 connection)
004- Both connections share a resource : OK 
005- Done
006+  (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)))
007+ 
008+   VERSION INFORMATION:
009+ 	TNS for Linux: Version 11.2.0.2.0 - Beta
010+ 	TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.2.0 - Beta
011+   Time: 17-JUN-2018 05:29:19
012+   Tracing not turned on.
013+   Tns error struct:
014+     ns main err code: 12541
015+     TNS-12541: TNS:no listener
016+     ns secondary err code: 12560
017+     nt main err code: 511
018+     TNS-00511: No listener
019+ 
020+ Warning: oci_connect(): ORA-12541: TNS:no listener in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_conn_close1.php on line 12
021+     nt secondary err code: 111
022+     nt OS err code: 0
023+ bool(false)
024+ 
025+ 
026+ ***********************************************************************
027+ Fatal NI connect error 12541, connecting to:
028+  (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)))
029+ 
030+   VERSION INFORMATION:
031+ 	TNS for Linux: Version 11.2.0.2.0 - Beta
032+ 	TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.2.0 - Beta
033+   Time: 17-JUN-2018 05:29:20
034+   Tracing not turned on.
035+   Tns error struct:
036+     ns main err code: 12541
037+     TNS-12541: TNS:no listener
038+     ns secondary err code: 12560
039+     nt main err code: 511
040+     TNS-00511: No listener
041+ 
042+ Warning: oci_connect(): ORA-12541: TNS:no listener in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_conn_close1.php on line 18
043+     nt secondary err code: 111
044+     nt OS err code: 0
045+ bool(false)
046+ Both connections share a resource : OK 
047+ Done

 

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

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