PHP  
 PHP_7_2
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Valgrind 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:

Report

==9508== Conditional jump or move depends on uninitialised value(s)
==9508==    at 0xAA1BDA: odbc_bindcols (php_odbc.c:972)
==9508==    by 0xAA51B6: zif_odbc_exec (php_odbc.c:1699)
==9508==    by 0x134B871: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==9508==    by 0x134B871: execute_ex (zend_vm_execute.h:59750)
==9508==    by 0x1372DAB: zend_execute (zend_vm_execute.h:63776)
==9508==    by 0x10F6FE0: zend_execute_scripts (zend.c:1502)
==9508==    by 0xFE7CD3: php_execute_script (main.c:2590)
==9508==    by 0x1378C66: do_cli (php_cli.c:1011)
==9508==    by 0x137A6F0: main (php_cli.c:1403)
==9508== 
==9508== Use of uninitialised value of size 8
==9508==    at 0xAA1BEB: odbc_bindcols (php_odbc.c:972)
==9508==    by 0xAA51B6: zif_odbc_exec (php_odbc.c:1699)
==9508==    by 0x134B871: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==9508==    by 0x134B871: execute_ex (zend_vm_execute.h:59750)
==9508==    by 0x1372DAB: zend_execute (zend_vm_execute.h:63776)
==9508==    by 0x10F6FE0: zend_execute_scripts (zend.c:1502)
==9508==    by 0xFE7CD3: php_execute_script (main.c:2590)
==9508==    by 0x1378C66: do_cli (php_cli.c:1011)
==9508==    by 0x137A6F0: main (php_cli.c:1403)
==9508== 
==9508== Conditional jump or move depends on uninitialised value(s)
==9508==    at 0xAA1E49: odbc_bindcols (php_odbc.c:1024)
==9508==    by 0xAA51B6: zif_odbc_exec (php_odbc.c:1699)
==9508==    by 0x134B871: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==9508==    by 0x134B871: execute_ex (zend_vm_execute.h:59750)
==9508==    by 0x1372DAB: zend_execute (zend_vm_execute.h:63776)
==9508==    by 0x10F6FE0: zend_execute_scripts (zend.c:1502)
==9508==    by 0xFE7CD3: php_execute_script (main.c:2590)
==9508==    by 0x1378C66: do_cli (php_cli.c:1011)
==9508==    by 0x137A6F0: main (php_cli.c:1403)
==9508== 
==9508== Conditional jump or move depends on uninitialised value(s)
==9508==    at 0xAA1EEC: odbc_bindcols (php_odbc.c:1031)
==9508==    by 0xAA51B6: zif_odbc_exec (php_odbc.c:1699)
==9508==    by 0x134B871: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==9508==    by 0x134B871: execute_ex (zend_vm_execute.h:59750)
==9508==    by 0x1372DAB: zend_execute (zend_vm_execute.h:63776)
==9508==    by 0x10F6FE0: zend_execute_scripts (zend.c:1502)
==9508==    by 0xFE7CD3: php_execute_script (main.c:2590)
==9508==    by 0x1378C66: do_cli (php_cli.c:1011)
==9508==    by 0x137A6F0: main (php_cli.c:1403)
==9508== 
==9508== Conditional jump or move depends on uninitialised value(s)
==9508==    at 0xAA1F8F: odbc_bindcols (php_odbc.c:1038)
==9508==    by 0xAA51B6: zif_odbc_exec (php_odbc.c:1699)
==9508==    by 0x134B871: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==9508==    by 0x134B871: execute_ex (zend_vm_execute.h:59750)
==9508==    by 0x1372DAB: zend_execute (zend_vm_execute.h:63776)
==9508==    by 0x10F6FE0: zend_execute_scripts (zend.c:1502)
==9508==    by 0xFE7CD3: php_execute_script (main.c:2590)
==9508==    by 0x1378C66: do_cli (php_cli.c:1011)
==9508==    by 0x137A6F0: main (php_cli.c:1403)
==9508== 
==9508== Conditional jump or move depends on uninitialised value(s)
==9508==    at 0xAA75D5: zif_odbc_result (php_odbc.c:2161)
==9508==    by 0x134B871: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==9508==    by 0x134B871: execute_ex (zend_vm_execute.h:59750)
==9508==    by 0x1372DAB: zend_execute (zend_vm_execute.h:63776)
==9508==    by 0x10F6FE0: zend_execute_scripts (zend.c:1502)
==9508==    by 0xFE7CD3: php_execute_script (main.c:2590)
==9508==    by 0x1378C66: do_cli (php_cli.c:1011)
==9508==    by 0x137A6F0: main (php_cli.c:1403)
==9508== 
==9508== Conditional jump or move depends on uninitialised value(s)
==9508==    at 0xAA75EC: zif_odbc_result (php_odbc.c:2161)
==9508==    by 0x134B871: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==9508==    by 0x134B871: execute_ex (zend_vm_execute.h:59750)
==9508==    by 0x1372DAB: zend_execute (zend_vm_execute.h:63776)
==9508==    by 0x10F6FE0: zend_execute_scripts (zend.c:1502)
==9508==    by 0xFE7CD3: php_execute_script (main.c:2590)
==9508==    by 0x1378C66: do_cli (php_cli.c:1011)
==9508==    by 0x137A6F0: main (php_cli.c:1403)
==9508== 
==9508== Conditional jump or move depends on uninitialised value(s)
==9508==    at 0xAA5615: php_odbc_fetch_hash (php_odbc.c:1781)
==9508==    by 0xAA6162: zif_odbc_fetch_array (php_odbc.c:1863)
==9508==    by 0x134B871: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==9508==    by 0x134B871: execute_ex (zend_vm_execute.h:59750)
==9508==    by 0x1372DAB: zend_execute (zend_vm_execute.h:63776)
==9508==    by 0x10F6FE0: zend_execute_scripts (zend.c:1502)
==9508==    by 0xFE7CD3: php_execute_script (main.c:2590)
==9508==    by 0x1378C66: do_cli (php_cli.c:1011)
==9508==    by 0x137A6F0: main (php_cli.c:1403)
==9508== 
==9508== Conditional jump or move depends on uninitialised value(s)
==9508==    at 0xAA5630: php_odbc_fetch_hash (php_odbc.c:1781)
==9508==    by 0xAA6162: zif_odbc_fetch_array (php_odbc.c:1863)
==9508==    by 0x134B871: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==9508==    by 0x134B871: execute_ex (zend_vm_execute.h:59750)
==9508==    by 0x1372DAB: zend_execute (zend_vm_execute.h:63776)
==9508==    by 0x10F6FE0: zend_execute_scripts (zend.c:1502)
==9508==    by 0xFE7CD3: php_execute_script (main.c:2590)
==9508==    by 0x1378C66: do_cli (php_cli.c:1011)
==9508==    by 0x137A6F0: main (php_cli.c:1403)
==9508== 

 

Generated at Thu, 06 Dec 2018 13:01:04 +0000 (4 days ago)

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