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

Script

1: <?php
2:
3:
include 'config.inc';
4:
5:
$conn odbc_connect($dsn$user$pass);
6:
7:
odbc_exec($conn'CREATE DATABASE odbcTEST');
8:
9:
odbc_exec($conn'CREATE TABLE FOO (TEST INT)');
10:
odbc_exec($conn'ALTER TABLE FOO ADD PRIMARY KEY (TEST)');
11:
12:
odbc_exec($conn'INSERT INTO FOO VALUES (1)');
13:
odbc_exec($conn'INSERT INTO FOO VALUES (2)');
14:
15:
$res odbc_exec($conn'SELECT * FROM FOO');
16:
17:
var_dump(odbc_fetch_row($res));
18:
var_dump(odbc_result($res'test'));
19:
var_dump(odbc_free_result($res));
20:
var_dump(odbc_free_result($conn));
21:
var_dump(odbc_free_result(NULL));
22:
var_dump(odbc_fetch_row($res));
23:
var_dump(odbc_result($res'test'));
24:
25:
odbc_exec($conn'DROP TABLE FOO');
26:
27:
odbc_exec($conn'DROP DATABASE odbcTEST');
28:
29:
?>
30:

Expected

bool(true)
string(1) "1"
bool(true)

Warning: odbc_free_result(): supplied resource is not a valid ODBC result resource in %s on line %d
bool(false)

Warning: odbc_free_result() expects parameter 1 to be resource, null given in %s on line %d
NULL

Warning: odbc_fetch_row(): supplied resource is not a valid ODBC result resource in %s on line %d
bool(false)

Warning: odbc_result(): supplied resource is not a valid ODBC result resource in %s on line %d
bool(false)

Output

Warning: odbc_exec(): SQL error: [unixODBC][Driver Manager]Invalid use of null pointer, SQL state S1009 in SQLExecDirect in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_free_result_001.php on line 7

Warning: odbc_exec(): SQL error: [unixODBC][Driver Manager]Invalid use of null pointer, SQL state S1009 in SQLExecDirect in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_free_result_001.php on line 9

Warning: odbc_exec(): SQL error: [unixODBC][Driver Manager]Invalid use of null pointer, SQL state S1009 in SQLExecDirect in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_free_result_001.php on line 10

Warning: odbc_exec(): SQL error: [unixODBC][Driver Manager]Invalid use of null pointer, SQL state S1009 in SQLExecDirect in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_free_result_001.php on line 12

Warning: odbc_exec(): SQL error: [unixODBC][Driver Manager]Invalid use of null pointer, SQL state S1009 in SQLExecDirect in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_free_result_001.php on line 13

Warning: odbc_exec(): SQL error: [unixODBC][Driver Manager]Invalid use of null pointer, SQL state S1009 in SQLExecDirect in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_free_result_001.php on line 15

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

Warning: odbc_result() expects parameter 1 to be resource, boolean given in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_free_result_001.php on line 18
NULL

Warning: odbc_free_result() expects parameter 1 to be resource, boolean given in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_free_result_001.php on line 19
NULL

Warning: odbc_free_result(): supplied resource is not a valid ODBC result resource in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_free_result_001.php on line 20
bool(false)

Warning: odbc_free_result() expects parameter 1 to be resource, null given in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_free_result_001.php on line 21
NULL

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

Warning: odbc_result() expects parameter 1 to be resource, boolean given in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_free_result_001.php on line 23
NULL

Warning: odbc_exec(): SQL error: [unixODBC][Driver Manager]Invalid use of null pointer, SQL state S1009 in SQLExecDirect in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_free_result_001.php on line 25

Warning: odbc_exec(): SQL error: [unixODBC][Driver Manager]Invalid use of null pointer, SQL state S1009 in SQLExecDirect in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_free_result_001.php on line 27

Diff

001+ Warning: odbc_exec(): SQL error: [unixODBC][Driver Manager]Invalid use of null pointer, SQL state S1009 in SQLExecDirect in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_free_result_001.php on line 7
002+ 
003+ Warning: odbc_exec(): SQL error: [unixODBC][Driver Manager]Invalid use of null pointer, SQL state S1009 in SQLExecDirect in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_free_result_001.php on line 9
004+ 
005+ Warning: odbc_exec(): SQL error: [unixODBC][Driver Manager]Invalid use of null pointer, SQL state S1009 in SQLExecDirect in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_free_result_001.php on line 10
006+ 
007+ Warning: odbc_exec(): SQL error: [unixODBC][Driver Manager]Invalid use of null pointer, SQL state S1009 in SQLExecDirect in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_free_result_001.php on line 12
008+ 
009+ Warning: odbc_exec(): SQL error: [unixODBC][Driver Manager]Invalid use of null pointer, SQL state S1009 in SQLExecDirect in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_free_result_001.php on line 13
010+ 
011+ Warning: odbc_exec(): SQL error: [unixODBC][Driver Manager]Invalid use of null pointer, SQL state S1009 in SQLExecDirect in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_free_result_001.php on line 15
012+ 
013+ Warning: odbc_fetch_row() expects parameter 1 to be resource, boolean given in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_free_result_001.php on line 17
014+ NULL
015+ 
016+ Warning: odbc_result() expects parameter 1 to be resource, boolean given in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_free_result_001.php on line 18
017+ NULL
018+ 
019+ Warning: odbc_free_result() expects parameter 1 to be resource, boolean given in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_free_result_001.php on line 19
020+ NULL
001- bool(true)
002- string(1) "1"
003- bool(true)
011- Warning: odbc_fetch_row(): supplied resource is not a valid ODBC result resource in %s on line %d
012- bool(false)
014- Warning: odbc_result(): supplied resource is not a valid ODBC result resource in %s on line %d
028+ Warning: odbc_fetch_row() expects parameter 1 to be resource, boolean given in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_free_result_001.php on line 22
029+ NULL
030+ 
031+ Warning: odbc_result() expects parameter 1 to be resource, boolean given in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_free_result_001.php on line 23
032+ NULL
033+ 
034+ Warning: odbc_exec(): SQL error: [unixODBC][Driver Manager]Invalid use of null pointer, SQL state S1009 in SQLExecDirect in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_free_result_001.php on line 25
036+ Warning: odbc_exec(): SQL error: [unixODBC][Driver Manager]Invalid use of null pointer, SQL state S1009 in SQLExecDirect in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_free_result_001.php on line 27
015- bool(false)

 

Generated at Mon, 10 Nov 2014 22:46:55 +0000 (10 days ago)

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