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

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() the connection is released to the pool and hence the
9: // the second conneciton will be different
10:
11:
12: // OCI_CONNECT
13:
echo "This is with a OCI_CONNECT\n";
14:
var_dump($conn1 oci_connect($user,$password,$dbase));
15:
$rn1 = (int)$conn1;
16:
oci_close($conn1);
17:
18:
// Open another connection
19:
var_dump($conn2 oci_connect($user,$password,$dbase));
20:
$rn2 = (int)$conn2;
21:
oci_close($conn2);
22:
23:
// Compare the resource numbers
24:
25:
if ($rn1 === $rn2)
26:     echo 
"Both connections share a resource : NOT OK \n";
27: else
28:     echo 
"Both connections are different : OK \n";
29:
30: echo 
"Done\n";
31:
32:
?>
33:

Expected

This is with a OCI_CONNECT
resource(%d) of type (oci8 connection)
resource(%d) of type (oci8 connection)
Both connections are different : 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:34
  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_close2.php on line 14
    nt secondary err code: 111
    nt OS err code: 0
bool(false)

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


***********************************************************************
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:34
  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_close2.php on line 19
    nt secondary err code: 111
    nt OS err code: 0
bool(false)

Warning: oci_close() expects parameter 1 to be resource, bool given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_conn_close2.php on line 21
Both connections share a resource : NOT 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 are different : 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:34
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_close2.php on line 14
021+     nt secondary err code: 111
022+     nt OS err code: 0
023+ bool(false)
024+ 
025+ Warning: oci_close() expects parameter 1 to be resource, bool given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_conn_close2.php on line 16
026+ 
027+ 
028+ ***********************************************************************
029+ Fatal NI connect error 12541, connecting to:
030+  (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)))
031+ 
032+   VERSION INFORMATION:
033+ 	TNS for Linux: Version 11.2.0.2.0 - Beta
034+ 	TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.2.0 - Beta
035+   Time: 17-JUN-2018 05:29:34
036+   Tracing not turned on.
037+   Tns error struct:
038+     ns main err code: 12541
039+     TNS-12541: TNS:no listener
040+     ns secondary err code: 12560
041+     nt main err code: 511
042+     TNS-00511: No listener
043+ 
044+ Warning: oci_connect(): ORA-12541: TNS:no listener in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_conn_close2.php on line 19
045+     nt secondary err code: 111
046+     nt OS err code: 0
047+ bool(false)
048+ 
049+ Warning: oci_close() expects parameter 1 to be resource, bool given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_conn_close2.php on line 21
050+ Both connections share a resource : NOT OK 
051+ Done

 

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

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