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_cclass1.phpt ('DRCP: Test setting connection class inline')

Script

1: <?php
2:
3:
require(dirname(__FILE__)."/details.inc");
4:
5:
// Initialization
6:
7:
$t time();
8:
$cc1 'cc1_'.$t;
9:
$cc2 'cc2_'.$t;
10:
11:
// Run Test
12:
13:
echo "Test 1\n";
14:
15:
ini_set('oci8.connection_class'$cc1);
16:
$c oci_pconnect($user$password$dbase);
17:
$s oci_parse($c"select * from dual");
18:
oci_execute($s);
19:
oci_fetch_all($s$r);
20:
var_dump($r);
21:
22: echo 
"Test 2\n";
23:
24:
ini_set('oci8.connection_class'$cc2);
25:
$c oci_pconnect($user$password$dbase);
26:
$s oci_parse($c"select * from dual");
27:
oci_execute($s);
28:
oci_fetch_all($s$r);
29:
var_dump($r);
30:
31: echo 
"Test 3\n";
32:
33:
$s oci_parse($c"select cclass_name from v\$cpool_cc_stats where cclass_name like '%.cc__$t' order by cclass_name");
34:
oci_execute($s);
35:
oci_fetch_all($s$r);
36:
var_dump($r);
37:
38:
// Cleanup
39:
40:
echo "Done\n";
41:
42:
?>
43:

Expected

Test 1
array(1) {
  ["DUMMY"]=>
  array(1) {
    [0]=>
    string(1) "X"
  }
}
Test 2
array(1) {
  ["DUMMY"]=>
  array(1) {
    [0]=>
    string(1) "X"
  }
}
Test 3
array(1) {
  ["CCLASS_NAME"]=>
  array(2) {
    [0]=>
    string(21) "%s.cc1_%d"
    [1]=>
    string(21) "%s.cc2_%d"
  }
}
Done

Output

Test 1


***********************************************************************
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:28:50
  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_cclass1.php on line 16
    nt secondary err code: 111
    nt OS err code: 0

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

Warning: oci_execute() expects parameter 1 to be resource, null given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_cclass1.php on line 18

Warning: oci_fetch_all() expects parameter 1 to be resource, null given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_cclass1.php on line 19
NULL
Test 2


***********************************************************************
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:28:50
  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_cclass1.php on line 25
    nt secondary err code: 111
    nt OS err code: 0

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

Warning: oci_execute() expects parameter 1 to be resource, null given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_cclass1.php on line 27

Warning: oci_fetch_all() expects parameter 1 to be resource, null given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_cclass1.php on line 28
NULL
Test 3

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

Warning: oci_execute() expects parameter 1 to be resource, null given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_cclass1.php on line 34

Warning: oci_fetch_all() expects parameter 1 to be resource, null given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_cclass1.php on line 35
NULL
Done

Diff

002+ 
003+ 
004+ ***********************************************************************
005+ Fatal NI connect error 12541, connecting to:
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:28:50
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_cclass1.php on line 16
021+     nt secondary err code: 111
022+     nt OS err code: 0
023+ 
024+ Warning: oci_parse() expects parameter 1 to be resource, bool given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_cclass1.php on line 17
025+ 
026+ Warning: oci_execute() expects parameter 1 to be resource, null given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_cclass1.php on line 18
027+ 
002- array(1) {
003-   ["DUMMY"]=>
004-   array(1) {
005-     [0]=>
006-     string(1) "X"
007-   }
008- }
009- Test 2
010- array(1) {
011-   ["DUMMY"]=>
012-   array(1) {
013-     [0]=>
014-     string(1) "X"
015-   }
016- }
017- Test 3
018- array(1) {
019-   ["CCLASS_NAME"]=>
020-   array(2) {
021-     [0]=>
022-     string(21) "%s.cc1_%d"
023-     [1]=>
024-     string(21) "%s.cc2_%d"
025-   }
026- }
027- Done
028+ Warning: oci_fetch_all() expects parameter 1 to be resource, null given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_cclass1.php on line 19
029+ NULL
030+ Test 2
031+ 
032+ 
033+ ***********************************************************************
034+ Fatal NI connect error 12541, connecting to:
035+  (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)))
036+ 
037+   VERSION INFORMATION:
038+ 	TNS for Linux: Version 11.2.0.2.0 - Beta
039+ 	TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.2.0 - Beta
040+   Time: 17-JUN-2018 05:28:50
041+   Tracing not turned on.
042+   Tns error struct:
043+     ns main err code: 12541
044+     TNS-12541: TNS:no listener
045+     ns secondary err code: 12560
046+     nt main err code: 511
047+     TNS-00511: No listener
048+ 
049+ Warning: oci_pconnect(): ORA-12541: TNS:no listener in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_cclass1.php on line 25
050+     nt secondary err code: 111
051+     nt OS err code: 0
052+ 
053+ Warning: oci_parse() expects parameter 1 to be resource, bool given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_cclass1.php on line 26
054+ 
055+ Warning: oci_execute() expects parameter 1 to be resource, null given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_cclass1.php on line 27
056+ 
057+ Warning: oci_fetch_all() expects parameter 1 to be resource, null given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_cclass1.php on line 28
058+ NULL
059+ Test 3
060+ 
061+ Warning: oci_parse() expects parameter 1 to be resource, bool given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_cclass1.php on line 33
062+ 
063+ Warning: oci_execute() expects parameter 1 to be resource, null given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_cclass1.php on line 34
064+ 
065+ Warning: oci_fetch_all() expects parameter 1 to be resource, null given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/drcp_cclass1.php on line 35
066+ NULL
067+ Done

 

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

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