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/odbc/tests/odbc_data_source_001.phpt ('odbc_data_source(): Basic test')

Script

1: <?php
2:
3:
include 'config.inc';
4:
5:
$conn odbc_connect($dsn$user$pass);
6:
7:
var_dump(odbc_data_source($connNULL));
8:
var_dump(odbc_data_source($conn''));
9:
var_dump(odbc_data_source($connSQL_FETCH_FIRST));
10:
11:
?>
12:

Expected

Warning: odbc_data_source(): Invalid fetch type (0) in %s on line %d
bool(false)

Warning: odbc_data_source() expects parameter 2 to be int, string given in %s on line %d
NULL
array(%d) {
%a
}

Output

Warning: odbc_data_source(): Invalid fetch type (0) in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_data_source_001.php on line 7
bool(false)

Fatal error: Uncaught TypeError: odbc_data_source() expects parameter 2 to be int, string given in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_data_source_001.php:8
Stack trace:
#0 /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_data_source_001.php(8): odbc_data_source(Resource id #5, '')
#1 {main}
  thrown in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_data_source_001.php on line 8

Diff

004+ Fatal error: Uncaught TypeError: odbc_data_source() expects parameter 2 to be int, string given in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_data_source_001.php:8
005+ Stack trace:
006+ #0 /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_data_source_001.php(8): odbc_data_source(Resource id #5, '')
007+ #1 {main}
004- Warning: odbc_data_source() expects parameter 2 to be int, string given in %s on line %d
005- NULL
006- array(%d) {
008- }

 

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

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