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

==28890== Conditional jump or move depends on uninitialised value(s)
==28890==    at 0xB15E29: odbc_bindcols (php_odbc.c:966)
==28890==    by 0xB19497: zif_odbc_exec (php_odbc.c:1698)
==28890==    by 0x13AFD89: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:694)
==28890==    by 0x13AFD89: execute_ex (zend_vm_execute.h:55503)
==28890==    by 0x13D78A5: zend_execute (zend_vm_execute.h:60935)
==28890==    by 0x11903BE: zend_execute_scripts (zend.c:1568)
==28890==    by 0x107C733: php_execute_script (main.c:2637)
==28890==    by 0x13DD66B: do_cli (php_cli.c:1000)
==28890==    by 0x13DF1BD: main (php_cli.c:1396)
==28890== 
==28890== Use of uninitialised value of size 8
==28890==    at 0xB15E3A: odbc_bindcols (php_odbc.c:966)
==28890==    by 0xB19497: zif_odbc_exec (php_odbc.c:1698)
==28890==    by 0x13AFD89: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:694)
==28890==    by 0x13AFD89: execute_ex (zend_vm_execute.h:55503)
==28890==    by 0x13D78A5: zend_execute (zend_vm_execute.h:60935)
==28890==    by 0x11903BE: zend_execute_scripts (zend.c:1568)
==28890==    by 0x107C733: php_execute_script (main.c:2637)
==28890==    by 0x13DD66B: do_cli (php_cli.c:1000)
==28890==    by 0x13DF1BD: main (php_cli.c:1396)
==28890== 
==28890== Conditional jump or move depends on uninitialised value(s)
==28890==    at 0xB160DA: odbc_bindcols (php_odbc.c:1024)
==28890==    by 0xB19497: zif_odbc_exec (php_odbc.c:1698)
==28890==    by 0x13AFD89: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:694)
==28890==    by 0x13AFD89: execute_ex (zend_vm_execute.h:55503)
==28890==    by 0x13D78A5: zend_execute (zend_vm_execute.h:60935)
==28890==    by 0x11903BE: zend_execute_scripts (zend.c:1568)
==28890==    by 0x107C733: php_execute_script (main.c:2637)
==28890==    by 0x13DD66B: do_cli (php_cli.c:1000)
==28890==    by 0x13DF1BD: main (php_cli.c:1396)
==28890== 
==28890== Conditional jump or move depends on uninitialised value(s)
==28890==    at 0xB1617D: odbc_bindcols (php_odbc.c:1031)
==28890==    by 0xB19497: zif_odbc_exec (php_odbc.c:1698)
==28890==    by 0x13AFD89: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:694)
==28890==    by 0x13AFD89: execute_ex (zend_vm_execute.h:55503)
==28890==    by 0x13D78A5: zend_execute (zend_vm_execute.h:60935)
==28890==    by 0x11903BE: zend_execute_scripts (zend.c:1568)
==28890==    by 0x107C733: php_execute_script (main.c:2637)
==28890==    by 0x13DD66B: do_cli (php_cli.c:1000)
==28890==    by 0x13DF1BD: main (php_cli.c:1396)
==28890== 
==28890== Conditional jump or move depends on uninitialised value(s)
==28890==    at 0xB16220: odbc_bindcols (php_odbc.c:1038)
==28890==    by 0xB19497: zif_odbc_exec (php_odbc.c:1698)
==28890==    by 0x13AFD89: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:694)
==28890==    by 0x13AFD89: execute_ex (zend_vm_execute.h:55503)
==28890==    by 0x13D78A5: zend_execute (zend_vm_execute.h:60935)
==28890==    by 0x11903BE: zend_execute_scripts (zend.c:1568)
==28890==    by 0x107C733: php_execute_script (main.c:2637)
==28890==    by 0x13DD66B: do_cli (php_cli.c:1000)
==28890==    by 0x13DF1BD: main (php_cli.c:1396)
==28890== 
==28890== Conditional jump or move depends on uninitialised value(s)
==28890==    at 0xB1BA6A: zif_odbc_result (php_odbc.c:2166)
==28890==    by 0x13AFD89: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:694)
==28890==    by 0x13AFD89: execute_ex (zend_vm_execute.h:55503)
==28890==    by 0x13D78A5: zend_execute (zend_vm_execute.h:60935)
==28890==    by 0x11903BE: zend_execute_scripts (zend.c:1568)
==28890==    by 0x107C733: php_execute_script (main.c:2637)
==28890==    by 0x13DD66B: do_cli (php_cli.c:1000)
==28890==    by 0x13DF1BD: main (php_cli.c:1396)
==28890== 
==28890== Conditional jump or move depends on uninitialised value(s)
==28890==    at 0xB1BA81: zif_odbc_result (php_odbc.c:2166)
==28890==    by 0x13AFD89: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:694)
==28890==    by 0x13AFD89: execute_ex (zend_vm_execute.h:55503)
==28890==    by 0x13D78A5: zend_execute (zend_vm_execute.h:60935)
==28890==    by 0x11903BE: zend_execute_scripts (zend.c:1568)
==28890==    by 0x107C733: php_execute_script (main.c:2637)
==28890==    by 0x13DD66B: do_cli (php_cli.c:1000)
==28890==    by 0x13DF1BD: main (php_cli.c:1396)
==28890== 
==28890== Conditional jump or move depends on uninitialised value(s)
==28890==    at 0xB19912: php_odbc_fetch_hash (php_odbc.c:1780)
==28890==    by 0xB1A523: zif_odbc_fetch_array (php_odbc.c:1865)
==28890==    by 0x13AFD89: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:694)
==28890==    by 0x13AFD89: execute_ex (zend_vm_execute.h:55503)
==28890==    by 0x13D78A5: zend_execute (zend_vm_execute.h:60935)
==28890==    by 0x11903BE: zend_execute_scripts (zend.c:1568)
==28890==    by 0x107C733: php_execute_script (main.c:2637)
==28890==    by 0x13DD66B: do_cli (php_cli.c:1000)
==28890==    by 0x13DF1BD: main (php_cli.c:1396)
==28890== 
==28890== Conditional jump or move depends on uninitialised value(s)
==28890==    at 0xB1992D: php_odbc_fetch_hash (php_odbc.c:1780)
==28890==    by 0xB1A523: zif_odbc_fetch_array (php_odbc.c:1865)
==28890==    by 0x13AFD89: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:694)
==28890==    by 0x13AFD89: execute_ex (zend_vm_execute.h:55503)
==28890==    by 0x13D78A5: zend_execute (zend_vm_execute.h:60935)
==28890==    by 0x11903BE: zend_execute_scripts (zend.c:1568)
==28890==    by 0x107C733: php_execute_script (main.c:2637)
==28890==    by 0x13DD66B: do_cli (php_cli.c:1000)
==28890==    by 0x13DF1BD: main (php_cli.c:1396)
==28890== 

 

Generated at Fri, 17 Sep 2021 16:14:14 +0000 (6 days ago)

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