PHP  
 PHP_7_1
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

==28087== Conditional jump or move depends on uninitialised value(s)
==28087==    at 0xA3ABAB: odbc_bindcols (php_odbc.c:972)
==28087==    by 0xA3E17B: zif_odbc_exec (php_odbc.c:1699)
==28087==    by 0x10D1BAD: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==28087==    by 0x10CED08: execute_ex (zend_vm_execute.h:429)
==28087==    by 0x10CF8F8: zend_execute (zend_vm_execute.h:474)
==28087==    by 0xFF066F: zend_execute_scripts (zend.c:1482)
==28087==    by 0xEE3F1F: php_execute_script (main.c:2577)
==28087==    by 0x12389CE: do_cli (php_cli.c:993)
==28087==    by 0x123A467: main (php_cli.c:1381)
==28087== 
==28087== Use of uninitialised value of size 8
==28087==    at 0xA3ABBC: odbc_bindcols (php_odbc.c:972)
==28087==    by 0xA3E17B: zif_odbc_exec (php_odbc.c:1699)
==28087==    by 0x10D1BAD: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==28087==    by 0x10CED08: execute_ex (zend_vm_execute.h:429)
==28087==    by 0x10CF8F8: zend_execute (zend_vm_execute.h:474)
==28087==    by 0xFF066F: zend_execute_scripts (zend.c:1482)
==28087==    by 0xEE3F1F: php_execute_script (main.c:2577)
==28087==    by 0x12389CE: do_cli (php_cli.c:993)
==28087==    by 0x123A467: main (php_cli.c:1381)
==28087== 
==28087== Conditional jump or move depends on uninitialised value(s)
==28087==    at 0xA3AE1A: odbc_bindcols (php_odbc.c:1024)
==28087==    by 0xA3E17B: zif_odbc_exec (php_odbc.c:1699)
==28087==    by 0x10D1BAD: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==28087==    by 0x10CED08: execute_ex (zend_vm_execute.h:429)
==28087==    by 0x10CF8F8: zend_execute (zend_vm_execute.h:474)
==28087==    by 0xFF066F: zend_execute_scripts (zend.c:1482)
==28087==    by 0xEE3F1F: php_execute_script (main.c:2577)
==28087==    by 0x12389CE: do_cli (php_cli.c:993)
==28087==    by 0x123A467: main (php_cli.c:1381)
==28087== 
==28087== Conditional jump or move depends on uninitialised value(s)
==28087==    at 0xA3AEBD: odbc_bindcols (php_odbc.c:1031)
==28087==    by 0xA3E17B: zif_odbc_exec (php_odbc.c:1699)
==28087==    by 0x10D1BAD: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==28087==    by 0x10CED08: execute_ex (zend_vm_execute.h:429)
==28087==    by 0x10CF8F8: zend_execute (zend_vm_execute.h:474)
==28087==    by 0xFF066F: zend_execute_scripts (zend.c:1482)
==28087==    by 0xEE3F1F: php_execute_script (main.c:2577)
==28087==    by 0x12389CE: do_cli (php_cli.c:993)
==28087==    by 0x123A467: main (php_cli.c:1381)
==28087== 
==28087== Conditional jump or move depends on uninitialised value(s)
==28087==    at 0xA3AF60: odbc_bindcols (php_odbc.c:1038)
==28087==    by 0xA3E17B: zif_odbc_exec (php_odbc.c:1699)
==28087==    by 0x10D1BAD: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==28087==    by 0x10CED08: execute_ex (zend_vm_execute.h:429)
==28087==    by 0x10CF8F8: zend_execute (zend_vm_execute.h:474)
==28087==    by 0xFF066F: zend_execute_scripts (zend.c:1482)
==28087==    by 0xEE3F1F: php_execute_script (main.c:2577)
==28087==    by 0x12389CE: do_cli (php_cli.c:993)
==28087==    by 0x123A467: main (php_cli.c:1381)
==28087== 
==28087== Conditional jump or move depends on uninitialised value(s)
==28087==    at 0xA405AA: zif_odbc_result (php_odbc.c:2161)
==28087==    by 0x10D1BAD: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==28087==    by 0x10CED08: execute_ex (zend_vm_execute.h:429)
==28087==    by 0x10CF8F8: zend_execute (zend_vm_execute.h:474)
==28087==    by 0xFF066F: zend_execute_scripts (zend.c:1482)
==28087==    by 0xEE3F1F: php_execute_script (main.c:2577)
==28087==    by 0x12389CE: do_cli (php_cli.c:993)
==28087==    by 0x123A467: main (php_cli.c:1381)
==28087== 
==28087== Conditional jump or move depends on uninitialised value(s)
==28087==    at 0xA405C1: zif_odbc_result (php_odbc.c:2161)
==28087==    by 0x10D1BAD: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==28087==    by 0x10CED08: execute_ex (zend_vm_execute.h:429)
==28087==    by 0x10CF8F8: zend_execute (zend_vm_execute.h:474)
==28087==    by 0xFF066F: zend_execute_scripts (zend.c:1482)
==28087==    by 0xEE3F1F: php_execute_script (main.c:2577)
==28087==    by 0x12389CE: do_cli (php_cli.c:993)
==28087==    by 0x123A467: main (php_cli.c:1381)
==28087== 
==28087== Conditional jump or move depends on uninitialised value(s)
==28087==    at 0xA3E5DA: php_odbc_fetch_hash (php_odbc.c:1781)
==28087==    by 0xA3F12F: zif_odbc_fetch_array (php_odbc.c:1863)
==28087==    by 0x10D1BAD: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==28087==    by 0x10CED08: execute_ex (zend_vm_execute.h:429)
==28087==    by 0x10CF8F8: zend_execute (zend_vm_execute.h:474)
==28087==    by 0xFF066F: zend_execute_scripts (zend.c:1482)
==28087==    by 0xEE3F1F: php_execute_script (main.c:2577)
==28087==    by 0x12389CE: do_cli (php_cli.c:993)
==28087==    by 0x123A467: main (php_cli.c:1381)
==28087== 
==28087== Conditional jump or move depends on uninitialised value(s)
==28087==    at 0xA3E5F5: php_odbc_fetch_hash (php_odbc.c:1781)
==28087==    by 0xA3F12F: zif_odbc_fetch_array (php_odbc.c:1863)
==28087==    by 0x10D1BAD: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==28087==    by 0x10CED08: execute_ex (zend_vm_execute.h:429)
==28087==    by 0x10CF8F8: zend_execute (zend_vm_execute.h:474)
==28087==    by 0xFF066F: zend_execute_scripts (zend.c:1482)
==28087==    by 0xEE3F1F: php_execute_script (main.c:2577)
==28087==    by 0x12389CE: do_cli (php_cli.c:993)
==28087==    by 0x123A467: main (php_cli.c:1381)
==28087== 

 

Generated at Sun, 15 Jul 2018 02:47:46 +0000 (5 days ago)

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