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_exec_001.phpt ('odbc_exec(): Basic test')

Script

1: <?php
2:
3:
include 'config.inc';
4:
5:
$conn odbc_connect($dsn$user$pass);
6:
7:
odbc_exec($conn'foo''bar');
8:
odbc_exec($conn'foo');
9:
10:
odbc_exec($conn'''');
11:
odbc_exec($conn'');
12:
13:
odbc_exec($conn11);
14:
odbc_exec($conn1);
15:
16:
odbc_exec($connNULLNULL);
17:
odbc_exec($connNULL);
18:
19:
?>
20:

Expected

Warning: odbc_exec() expects parameter 3 to be int, string given in %s on line %d

Warning: odbc_exec(): SQL error: %s in %s on line %d

Warning: odbc_exec() expects parameter 3 to be int, string given in %s on line %d

Warning: odbc_exec(): SQL error: %s in %s on line %d

Warning: odbc_exec(): SQL error: %s in %s on line %d

Warning: odbc_exec(): SQL error: %s in %s on line %d

Warning: odbc_exec(): SQL error: %s in %s on line %d

Warning: odbc_exec(): SQL error: %s in %s on line %d

Output

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

Diff

001+ Fatal error: Uncaught TypeError: odbc_exec() expects parameter 3 to be int, string given in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_exec_001.php:7
002+ Stack trace:
003+ #0 /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_exec_001.php(7): odbc_exec(Resource id #5, 'foo', 'bar')
004+ #1 {main}
005+   thrown in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_exec_001.php on line 7
001- Warning: odbc_exec() expects parameter 3 to be int, string given in %s on line %d
002- 
003- Warning: odbc_exec(): SQL error: %s in %s on line %d
004- 
005- Warning: odbc_exec() expects parameter 3 to be int, string given in %s on line %d
006- 
007- Warning: odbc_exec(): SQL error: %s in %s on line %d
008- 
009- Warning: odbc_exec(): SQL error: %s in %s on line %d
010- 
011- Warning: odbc_exec(): SQL error: %s in %s on line %d
012- 
013- Warning: odbc_exec(): SQL error: %s in %s on line %d
014- 
015- Warning: odbc_exec(): SQL error: %s in %s on line %d

 

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

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