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

==23952== Conditional jump or move depends on uninitialised value(s)
==23952==    at 0xA9B6B5: odbc_bindcols (php_odbc.c:972)
==23952==    by 0xA9EC91: zif_odbc_exec (php_odbc.c:1699)
==23952==    by 0x134547E: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==23952==    by 0x134547E: execute_ex (zend_vm_execute.h:59750)
==23952==    by 0x136C9B8: zend_execute (zend_vm_execute.h:63776)
==23952==    by 0x10F1135: zend_execute_scripts (zend.c:1496)
==23952==    by 0xFE2090: php_execute_script (main.c:2590)
==23952==    by 0x1372873: do_cli (php_cli.c:1011)
==23952==    by 0x13742FD: main (php_cli.c:1404)
==23952== 
==23952== Use of uninitialised value of size 8
==23952==    at 0xA9B6C6: odbc_bindcols (php_odbc.c:972)
==23952==    by 0xA9EC91: zif_odbc_exec (php_odbc.c:1699)
==23952==    by 0x134547E: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==23952==    by 0x134547E: execute_ex (zend_vm_execute.h:59750)
==23952==    by 0x136C9B8: zend_execute (zend_vm_execute.h:63776)
==23952==    by 0x10F1135: zend_execute_scripts (zend.c:1496)
==23952==    by 0xFE2090: php_execute_script (main.c:2590)
==23952==    by 0x1372873: do_cli (php_cli.c:1011)
==23952==    by 0x13742FD: main (php_cli.c:1404)
==23952== 
==23952== Conditional jump or move depends on uninitialised value(s)
==23952==    at 0xA9B924: odbc_bindcols (php_odbc.c:1024)
==23952==    by 0xA9EC91: zif_odbc_exec (php_odbc.c:1699)
==23952==    by 0x134547E: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==23952==    by 0x134547E: execute_ex (zend_vm_execute.h:59750)
==23952==    by 0x136C9B8: zend_execute (zend_vm_execute.h:63776)
==23952==    by 0x10F1135: zend_execute_scripts (zend.c:1496)
==23952==    by 0xFE2090: php_execute_script (main.c:2590)
==23952==    by 0x1372873: do_cli (php_cli.c:1011)
==23952==    by 0x13742FD: main (php_cli.c:1404)
==23952== 
==23952== Conditional jump or move depends on uninitialised value(s)
==23952==    at 0xA9B9C7: odbc_bindcols (php_odbc.c:1031)
==23952==    by 0xA9EC91: zif_odbc_exec (php_odbc.c:1699)
==23952==    by 0x134547E: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==23952==    by 0x134547E: execute_ex (zend_vm_execute.h:59750)
==23952==    by 0x136C9B8: zend_execute (zend_vm_execute.h:63776)
==23952==    by 0x10F1135: zend_execute_scripts (zend.c:1496)
==23952==    by 0xFE2090: php_execute_script (main.c:2590)
==23952==    by 0x1372873: do_cli (php_cli.c:1011)
==23952==    by 0x13742FD: main (php_cli.c:1404)
==23952== 
==23952== Conditional jump or move depends on uninitialised value(s)
==23952==    at 0xA9BA6A: odbc_bindcols (php_odbc.c:1038)
==23952==    by 0xA9EC91: zif_odbc_exec (php_odbc.c:1699)
==23952==    by 0x134547E: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==23952==    by 0x134547E: execute_ex (zend_vm_execute.h:59750)
==23952==    by 0x136C9B8: zend_execute (zend_vm_execute.h:63776)
==23952==    by 0x10F1135: zend_execute_scripts (zend.c:1496)
==23952==    by 0xFE2090: php_execute_script (main.c:2590)
==23952==    by 0x1372873: do_cli (php_cli.c:1011)
==23952==    by 0x13742FD: main (php_cli.c:1404)
==23952== 
==23952== Conditional jump or move depends on uninitialised value(s)
==23952==    at 0xAA10B0: zif_odbc_result (php_odbc.c:2161)
==23952==    by 0x134547E: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==23952==    by 0x134547E: execute_ex (zend_vm_execute.h:59750)
==23952==    by 0x136C9B8: zend_execute (zend_vm_execute.h:63776)
==23952==    by 0x10F1135: zend_execute_scripts (zend.c:1496)
==23952==    by 0xFE2090: php_execute_script (main.c:2590)
==23952==    by 0x1372873: do_cli (php_cli.c:1011)
==23952==    by 0x13742FD: main (php_cli.c:1404)
==23952== 
==23952== Conditional jump or move depends on uninitialised value(s)
==23952==    at 0xAA10C7: zif_odbc_result (php_odbc.c:2161)
==23952==    by 0x134547E: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==23952==    by 0x134547E: execute_ex (zend_vm_execute.h:59750)
==23952==    by 0x136C9B8: zend_execute (zend_vm_execute.h:63776)
==23952==    by 0x10F1135: zend_execute_scripts (zend.c:1496)
==23952==    by 0xFE2090: php_execute_script (main.c:2590)
==23952==    by 0x1372873: do_cli (php_cli.c:1011)
==23952==    by 0x13742FD: main (php_cli.c:1404)
==23952== 
==23952== Conditional jump or move depends on uninitialised value(s)
==23952==    at 0xA9F0F0: php_odbc_fetch_hash (php_odbc.c:1781)
==23952==    by 0xA9FC3D: zif_odbc_fetch_array (php_odbc.c:1863)
==23952==    by 0x134547E: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==23952==    by 0x134547E: execute_ex (zend_vm_execute.h:59750)
==23952==    by 0x136C9B8: zend_execute (zend_vm_execute.h:63776)
==23952==    by 0x10F1135: zend_execute_scripts (zend.c:1496)
==23952==    by 0xFE2090: php_execute_script (main.c:2590)
==23952==    by 0x1372873: do_cli (php_cli.c:1011)
==23952==    by 0x13742FD: main (php_cli.c:1404)
==23952== 
==23952== Conditional jump or move depends on uninitialised value(s)
==23952==    at 0xA9F10B: php_odbc_fetch_hash (php_odbc.c:1781)
==23952==    by 0xA9FC3D: zif_odbc_fetch_array (php_odbc.c:1863)
==23952==    by 0x134547E: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==23952==    by 0x134547E: execute_ex (zend_vm_execute.h:59750)
==23952==    by 0x136C9B8: zend_execute (zend_vm_execute.h:63776)
==23952==    by 0x10F1135: zend_execute_scripts (zend.c:1496)
==23952==    by 0xFE2090: php_execute_script (main.c:2590)
==23952==    by 0x1372873: do_cli (php_cli.c:1011)
==23952==    by 0x13742FD: main (php_cli.c:1404)
==23952== 

 

Generated at Thu, 12 Jul 2018 17:17:45 +0000 (7 days ago)

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