PHP  
 PHP_7_0
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_columns_001.phpt ('odbc_columns(): Basic test')

Script

1: <?php
2:
3:
include 'config.inc';
4:
5:
$conn odbc_connect($dsn$user$pass);
6:
7:
var_dump($result odbc_columns($conn''''''''));
8:
var_dump(odbc_fetch_row($result));
9:
10:
var_dump($result odbc_columns($connNULLNULLNULLNULL));
11:
var_dump(odbc_fetch_row($result));
12:
13:
var_dump($result odbc_columns($conn'FOO''FOO''FOO''FOO'));
14:
var_dump(odbc_fetch_row($result));
15:
16:
?>
17:

Expected

resource(%d) of type (odbc result)
bool(false)
resource(%d) of type (odbc result)
bool(false)
resource(%d) of type (odbc result)
bool(false)

Output

resource(6) of type (odbc result)
bool(false)
resource(7) of type (odbc result)
bool(false)

Warning: odbc_columns(): SQL error: Failed to fetch error message, SQL state HY000 in SQLColumns in /var/php_gcov/PHP_7_0/ext/odbc/tests/odbc_columns_001.php on line 13
bool(false)

Warning: odbc_fetch_row() expects parameter 1 to be resource, boolean given in /var/php_gcov/PHP_7_0/ext/odbc/tests/odbc_columns_001.php on line 14
NULL

Diff

005+ 
006+ Warning: odbc_columns(): SQL error: Failed to fetch error message, SQL state HY000 in SQLColumns in /var/php_gcov/PHP_7_0/ext/odbc/tests/odbc_columns_001.php on line 13
005- resource(%d) of type (odbc result)
008+ 
009+ Warning: odbc_fetch_row() expects parameter 1 to be resource, boolean given in /var/php_gcov/PHP_7_0/ext/odbc/tests/odbc_columns_001.php on line 14
010+ NULL

 

Generated at Wed, 20 Sep 2017 13:49:37 +0000 (2 days ago)

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