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_pconn_close1.phpt ('DRCP: oci_pconnect() 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 persistent 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:
echo "This is with a OCI_PCONNECT\n";
11:
var_dump($conn1 oci_pconnect($user,$password,$dbase));
12:
$rn1 = (int)$conn1;
13:
oci_close($conn1);
14:
15:
//  Open another connection
16:
17:
var_dump($conn2 oci_pconnect($user,$password,$dbase));
18:
$rn2 = (int)$conn2;
19:
oci_close($conn2);
20:
21:
// Compare the resource numbers
22:
23:
if ($rn1 === $rn2)
24:     echo 
"Both connections share a resource : OK \n";
25: else
26:     echo 
"Both connections are different : NOT OK \n";
27:
28: echo 
"Done\n";
29:
30:
?>
31:

Expected

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

Output

This is with a OCI_PCONNECT


***********************************************************************
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:32
  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_pconn_close1.php on line 11
    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:32
  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_pconn_close1.php on line 17
    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 persistent connection)
003- resource(%d) of type (oci8 persistent 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:30:32
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_pconnect(): ORA-12541: TNS:no listener in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_pconn_close1.php on line 11
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:30:32
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_pconnect(): ORA-12541: TNS:no listener in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_pconn_close1.php on line 17
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 (20 hours ago)

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