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_002.phpt ('odbc_exec(): Getting data from query')

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:
11:
odbc_exec($conn'INSERT INTO FOO VALUES (1)');
12:
odbc_exec($conn'INSERT INTO FOO VALUES (2)');
13:
14:
$res odbc_exec($conn'SELECT * FROM FOO');
15:
16:
var_dump(odbc_fetch_row($res));
17:
var_dump(odbc_result($res'test'));
18:
var_dump(odbc_fetch_array($res));
19:
20:
odbc_exec($conn'DROP TABLE FOO');
21:
22:
odbc_exec($conn'DROP DATABASE odbcTEST');
23:
24:
?>
25:

Expected

bool(true)
string(1) "1"
array(1) {
  ["TEST"]=>
  string(1) "2"
}

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_exec_002.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_exec_002.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_exec_002.php on line 11

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_exec_002.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_exec_002.php on line 14

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

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

Warning: odbc_fetch_array() expects parameter 1 to be resource, boolean given in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_exec_002.php on line 18
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_exec_002.php on line 20

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_exec_002.php on line 22

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_exec_002.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_exec_002.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_exec_002.php on line 11
006+ 
001- bool(true)
002- string(1) "1"
003- array(1) {
004-   ["TEST"]=>
005-   string(1) "2"
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_exec_002.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_exec_002.php on line 14
010+ 
011+ Warning: odbc_fetch_row() expects parameter 1 to be resource, boolean given in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_exec_002.php on line 16
012+ NULL
013+ 
014+ Warning: odbc_result() expects parameter 1 to be resource, boolean given in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_exec_002.php on line 17
015+ NULL
016+ 
017+ Warning: odbc_fetch_array() expects parameter 1 to be resource, boolean given in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_exec_002.php on line 18
018+ NULL
019+ 
020+ 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_exec_002.php on line 20
021+ 
022+ 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_exec_002.php on line 22

 

Generated at Thu, 30 Oct 2014 07:41:47 +0000 (31 hours ago)

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