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/privileged_connect1.phpt ('privileged connect tests')

Script

1: <?php
2:
3:
require __DIR__."/connect.inc";
4:
5:
oci_connect(""""""falseOCI_SYSOPER);
6:
oci_connect(""""""falseOCI_SYSDBA);
7:
oci_connect(""""""false, -1);
8:
oci_connect(""""""false"qwe");
9:
10: echo 
"Done\n";
11:
?>
12:

Expected

Warning: oci_connect(): ORA-%d: %s in %s on line %d

Warning: oci_connect(): ORA-%d: %s in %s on line %d

Warning: oci_connect(): Invalid session mode specified (-1) in %s on line %d

Warning: oci_connect() expects parameter 5 to be int%s string given in %s on line %d
Done

Output

Warning: oci_connect(): ORA-12546: TNS:permission denied in /var/php_gcov/PHP_HEAD/ext/oci8/tests/privileged_connect1.php on line 5

Warning: oci_connect(): ORA-12546: TNS:permission denied in /var/php_gcov/PHP_HEAD/ext/oci8/tests/privileged_connect1.php on line 6

Warning: oci_connect(): Invalid session mode specified (-1) in /var/php_gcov/PHP_HEAD/ext/oci8/tests/privileged_connect1.php on line 7

Fatal error: Uncaught TypeError: oci_connect() expects parameter 5 to be int, string given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/privileged_connect1.php:8
Stack trace:
#0 /var/php_gcov/PHP_HEAD/ext/oci8/tests/privileged_connect1.php(8): oci_connect('', '', '', '', 'qwe')
#1 {main}
  thrown in /var/php_gcov/PHP_HEAD/ext/oci8/tests/privileged_connect1.php on line 8

Diff

007+ Fatal error: Uncaught TypeError: oci_connect() expects parameter 5 to be int, string given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/privileged_connect1.php:8
008+ Stack trace:
007- Warning: oci_connect() expects parameter 5 to be int%s string given in %s on line %d
008- Done
009+ #0 /var/php_gcov/PHP_HEAD/ext/oci8/tests/privileged_connect1.php(8): oci_connect('', '', '', '', 'qwe')
010+ #1 {main}
011+   thrown in /var/php_gcov/PHP_HEAD/ext/oci8/tests/privileged_connect1.php on line 8

 

Generated at Mon, 06 May 2019 17:58:35 +0000 (41 days ago)

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