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

==20713== Conditional jump or move depends on uninitialised value(s)
==20713==    at 0xA40F2A: odbc_bindcols (php_odbc.c:972)
==20713==    by 0xA444FA: zif_odbc_exec (php_odbc.c:1699)
==20713==    by 0x10D7C2F: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==20713==    by 0x10D4D8A: execute_ex (zend_vm_execute.h:429)
==20713==    by 0x10D597A: zend_execute (zend_vm_execute.h:474)
==20713==    by 0xFF61E3: zend_execute_scripts (zend.c:1482)
==20713==    by 0xEE987D: php_execute_script (main.c:2577)
==20713==    by 0x123EA50: do_cli (php_cli.c:993)
==20713==    by 0x12404E9: main (php_cli.c:1381)
==20713== 
==20713== Use of uninitialised value of size 8
==20713==    at 0xA40F3B: odbc_bindcols (php_odbc.c:972)
==20713==    by 0xA444FA: zif_odbc_exec (php_odbc.c:1699)
==20713==    by 0x10D7C2F: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==20713==    by 0x10D4D8A: execute_ex (zend_vm_execute.h:429)
==20713==    by 0x10D597A: zend_execute (zend_vm_execute.h:474)
==20713==    by 0xFF61E3: zend_execute_scripts (zend.c:1482)
==20713==    by 0xEE987D: php_execute_script (main.c:2577)
==20713==    by 0x123EA50: do_cli (php_cli.c:993)
==20713==    by 0x12404E9: main (php_cli.c:1381)
==20713== 
==20713== Conditional jump or move depends on uninitialised value(s)
==20713==    at 0xA41199: odbc_bindcols (php_odbc.c:1024)
==20713==    by 0xA444FA: zif_odbc_exec (php_odbc.c:1699)
==20713==    by 0x10D7C2F: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==20713==    by 0x10D4D8A: execute_ex (zend_vm_execute.h:429)
==20713==    by 0x10D597A: zend_execute (zend_vm_execute.h:474)
==20713==    by 0xFF61E3: zend_execute_scripts (zend.c:1482)
==20713==    by 0xEE987D: php_execute_script (main.c:2577)
==20713==    by 0x123EA50: do_cli (php_cli.c:993)
==20713==    by 0x12404E9: main (php_cli.c:1381)
==20713== 
==20713== Conditional jump or move depends on uninitialised value(s)
==20713==    at 0xA4123C: odbc_bindcols (php_odbc.c:1031)
==20713==    by 0xA444FA: zif_odbc_exec (php_odbc.c:1699)
==20713==    by 0x10D7C2F: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==20713==    by 0x10D4D8A: execute_ex (zend_vm_execute.h:429)
==20713==    by 0x10D597A: zend_execute (zend_vm_execute.h:474)
==20713==    by 0xFF61E3: zend_execute_scripts (zend.c:1482)
==20713==    by 0xEE987D: php_execute_script (main.c:2577)
==20713==    by 0x123EA50: do_cli (php_cli.c:993)
==20713==    by 0x12404E9: main (php_cli.c:1381)
==20713== 
==20713== Conditional jump or move depends on uninitialised value(s)
==20713==    at 0xA412DF: odbc_bindcols (php_odbc.c:1038)
==20713==    by 0xA444FA: zif_odbc_exec (php_odbc.c:1699)
==20713==    by 0x10D7C2F: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==20713==    by 0x10D4D8A: execute_ex (zend_vm_execute.h:429)
==20713==    by 0x10D597A: zend_execute (zend_vm_execute.h:474)
==20713==    by 0xFF61E3: zend_execute_scripts (zend.c:1482)
==20713==    by 0xEE987D: php_execute_script (main.c:2577)
==20713==    by 0x123EA50: do_cli (php_cli.c:993)
==20713==    by 0x12404E9: main (php_cli.c:1381)
==20713== 
==20713== Conditional jump or move depends on uninitialised value(s)
==20713==    at 0xA46929: zif_odbc_result (php_odbc.c:2161)
==20713==    by 0x10D7C2F: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==20713==    by 0x10D4D8A: execute_ex (zend_vm_execute.h:429)
==20713==    by 0x10D597A: zend_execute (zend_vm_execute.h:474)
==20713==    by 0xFF61E3: zend_execute_scripts (zend.c:1482)
==20713==    by 0xEE987D: php_execute_script (main.c:2577)
==20713==    by 0x123EA50: do_cli (php_cli.c:993)
==20713==    by 0x12404E9: main (php_cli.c:1381)
==20713== 
==20713== Conditional jump or move depends on uninitialised value(s)
==20713==    at 0xA46940: zif_odbc_result (php_odbc.c:2161)
==20713==    by 0x10D7C2F: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==20713==    by 0x10D4D8A: execute_ex (zend_vm_execute.h:429)
==20713==    by 0x10D597A: zend_execute (zend_vm_execute.h:474)
==20713==    by 0xFF61E3: zend_execute_scripts (zend.c:1482)
==20713==    by 0xEE987D: php_execute_script (main.c:2577)
==20713==    by 0x123EA50: do_cli (php_cli.c:993)
==20713==    by 0x12404E9: main (php_cli.c:1381)
==20713== 
==20713== Conditional jump or move depends on uninitialised value(s)
==20713==    at 0xA44959: php_odbc_fetch_hash (php_odbc.c:1781)
==20713==    by 0xA454AE: zif_odbc_fetch_array (php_odbc.c:1863)
==20713==    by 0x10D7C2F: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==20713==    by 0x10D4D8A: execute_ex (zend_vm_execute.h:429)
==20713==    by 0x10D597A: zend_execute (zend_vm_execute.h:474)
==20713==    by 0xFF61E3: zend_execute_scripts (zend.c:1482)
==20713==    by 0xEE987D: php_execute_script (main.c:2577)
==20713==    by 0x123EA50: do_cli (php_cli.c:993)
==20713==    by 0x12404E9: main (php_cli.c:1381)
==20713== 
==20713== Conditional jump or move depends on uninitialised value(s)
==20713==    at 0xA44974: php_odbc_fetch_hash (php_odbc.c:1781)
==20713==    by 0xA454AE: zif_odbc_fetch_array (php_odbc.c:1863)
==20713==    by 0x10D7C2F: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==20713==    by 0x10D4D8A: execute_ex (zend_vm_execute.h:429)
==20713==    by 0x10D597A: zend_execute (zend_vm_execute.h:474)
==20713==    by 0xFF61E3: zend_execute_scripts (zend.c:1482)
==20713==    by 0xEE987D: php_execute_script (main.c:2577)
==20713==    by 0x123EA50: do_cli (php_cli.c:993)
==20713==    by 0x12404E9: main (php_cli.c:1381)
==20713== 

 

Generated at Sat, 08 Dec 2018 23:47:55 +0000 (3 days ago)

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