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/bug46050.phpt ('Bug #46050 (odbc_next_result corrupts prepared resource)')

Script

1: <?php
2:
include __DIR__ "/config.inc";
3:
$conn odbc_connect($dsn$user$pass);
4:
$stmt odbc_prepare($conn"SELECT 1");
5:
var_dump(odbc_execute($stmt));
6:
var_dump(odbc_fetch_array($stmt));
7:
var_dump(odbc_next_result($stmt));
8:
var_dump(odbc_execute($stmt));
9:
var_dump(odbc_fetch_array($stmt));
10:
?>
11:

Report

==8245== Conditional jump or move depends on uninitialised value(s)
==8245==    at 0xB15E29: odbc_bindcols (php_odbc.c:966)
==8245==    by 0xB16FDD: zif_odbc_prepare (php_odbc.c:1263)
==8245==    by 0x13AFD89: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:694)
==8245==    by 0x13AFD89: execute_ex (zend_vm_execute.h:55503)
==8245==    by 0x13D78A5: zend_execute (zend_vm_execute.h:60935)
==8245==    by 0x11903BE: zend_execute_scripts (zend.c:1568)
==8245==    by 0x107C733: php_execute_script (main.c:2637)
==8245==    by 0x13DD66B: do_cli (php_cli.c:1000)
==8245==    by 0x13DF1BD: main (php_cli.c:1396)
==8245== 
==8245== Conditional jump or move depends on uninitialised value(s)
==8245==    at 0xB160DA: odbc_bindcols (php_odbc.c:1024)
==8245==    by 0xB16FDD: zif_odbc_prepare (php_odbc.c:1263)
==8245==    by 0x13AFD89: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:694)
==8245==    by 0x13AFD89: execute_ex (zend_vm_execute.h:55503)
==8245==    by 0x13D78A5: zend_execute (zend_vm_execute.h:60935)
==8245==    by 0x11903BE: zend_execute_scripts (zend.c:1568)
==8245==    by 0x107C733: php_execute_script (main.c:2637)
==8245==    by 0x13DD66B: do_cli (php_cli.c:1000)
==8245==    by 0x13DF1BD: main (php_cli.c:1396)
==8245== 
==8245== Conditional jump or move depends on uninitialised value(s)
==8245==    at 0xB1617D: odbc_bindcols (php_odbc.c:1031)
==8245==    by 0xB16FDD: zif_odbc_prepare (php_odbc.c:1263)
==8245==    by 0x13AFD89: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:694)
==8245==    by 0x13AFD89: execute_ex (zend_vm_execute.h:55503)
==8245==    by 0x13D78A5: zend_execute (zend_vm_execute.h:60935)
==8245==    by 0x11903BE: zend_execute_scripts (zend.c:1568)
==8245==    by 0x107C733: php_execute_script (main.c:2637)
==8245==    by 0x13DD66B: do_cli (php_cli.c:1000)
==8245==    by 0x13DF1BD: main (php_cli.c:1396)
==8245== 
==8245== Conditional jump or move depends on uninitialised value(s)
==8245==    at 0xB16220: odbc_bindcols (php_odbc.c:1038)
==8245==    by 0xB16FDD: zif_odbc_prepare (php_odbc.c:1263)
==8245==    by 0x13AFD89: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:694)
==8245==    by 0x13AFD89: execute_ex (zend_vm_execute.h:55503)
==8245==    by 0x13D78A5: zend_execute (zend_vm_execute.h:60935)
==8245==    by 0x11903BE: zend_execute_scripts (zend.c:1568)
==8245==    by 0x107C733: php_execute_script (main.c:2637)
==8245==    by 0x13DD66B: do_cli (php_cli.c:1000)
==8245==    by 0x13DF1BD: main (php_cli.c:1396)
==8245== 
==8245== Conditional jump or move depends on uninitialised value(s)
==8245==    at 0xB19912: php_odbc_fetch_hash (php_odbc.c:1780)
==8245==    by 0xB1A523: zif_odbc_fetch_array (php_odbc.c:1865)
==8245==    by 0x13AFD89: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:694)
==8245==    by 0x13AFD89: execute_ex (zend_vm_execute.h:55503)
==8245==    by 0x13D78A5: zend_execute (zend_vm_execute.h:60935)
==8245==    by 0x11903BE: zend_execute_scripts (zend.c:1568)
==8245==    by 0x107C733: php_execute_script (main.c:2637)
==8245==    by 0x13DD66B: do_cli (php_cli.c:1000)
==8245==    by 0x13DF1BD: main (php_cli.c:1396)
==8245== 
==8245== Conditional jump or move depends on uninitialised value(s)
==8245==    at 0xB1992D: php_odbc_fetch_hash (php_odbc.c:1780)
==8245==    by 0xB1A523: zif_odbc_fetch_array (php_odbc.c:1865)
==8245==    by 0x13AFD89: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:694)
==8245==    by 0x13AFD89: execute_ex (zend_vm_execute.h:55503)
==8245==    by 0x13D78A5: zend_execute (zend_vm_execute.h:60935)
==8245==    by 0x11903BE: zend_execute_scripts (zend.c:1568)
==8245==    by 0x107C733: php_execute_script (main.c:2637)
==8245==    by 0x13DD66B: do_cli (php_cli.c:1000)
==8245==    by 0x13DF1BD: main (php_cli.c:1396)
==8245== 
==8245== Conditional jump or move depends on uninitialised value(s)
==8245==    at 0xB15E29: odbc_bindcols (php_odbc.c:966)
==8245==    by 0xB18512: zif_odbc_execute (php_odbc.c:1498)
==8245==    by 0x13AFD89: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:694)
==8245==    by 0x13AFD89: execute_ex (zend_vm_execute.h:55503)
==8245==    by 0x13D78A5: zend_execute (zend_vm_execute.h:60935)
==8245==    by 0x11903BE: zend_execute_scripts (zend.c:1568)
==8245==    by 0x107C733: php_execute_script (main.c:2637)
==8245==    by 0x13DD66B: do_cli (php_cli.c:1000)
==8245==    by 0x13DF1BD: main (php_cli.c:1396)
==8245== 
==8245== Conditional jump or move depends on uninitialised value(s)
==8245==    at 0xB160DA: odbc_bindcols (php_odbc.c:1024)
==8245==    by 0xB18512: zif_odbc_execute (php_odbc.c:1498)
==8245==    by 0x13AFD89: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:694)
==8245==    by 0x13AFD89: execute_ex (zend_vm_execute.h:55503)
==8245==    by 0x13D78A5: zend_execute (zend_vm_execute.h:60935)
==8245==    by 0x11903BE: zend_execute_scripts (zend.c:1568)
==8245==    by 0x107C733: php_execute_script (main.c:2637)
==8245==    by 0x13DD66B: do_cli (php_cli.c:1000)
==8245==    by 0x13DF1BD: main (php_cli.c:1396)
==8245== 
==8245== Conditional jump or move depends on uninitialised value(s)
==8245==    at 0xB1617D: odbc_bindcols (php_odbc.c:1031)
==8245==    by 0xB18512: zif_odbc_execute (php_odbc.c:1498)
==8245==    by 0x13AFD89: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:694)
==8245==    by 0x13AFD89: execute_ex (zend_vm_execute.h:55503)
==8245==    by 0x13D78A5: zend_execute (zend_vm_execute.h:60935)
==8245==    by 0x11903BE: zend_execute_scripts (zend.c:1568)
==8245==    by 0x107C733: php_execute_script (main.c:2637)
==8245==    by 0x13DD66B: do_cli (php_cli.c:1000)
==8245==    by 0x13DF1BD: main (php_cli.c:1396)
==8245== 
==8245== Conditional jump or move depends on uninitialised value(s)
==8245==    at 0xB16220: odbc_bindcols (php_odbc.c:1038)
==8245==    by 0xB18512: zif_odbc_execute (php_odbc.c:1498)
==8245==    by 0x13AFD89: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:694)
==8245==    by 0x13AFD89: execute_ex (zend_vm_execute.h:55503)
==8245==    by 0x13D78A5: zend_execute (zend_vm_execute.h:60935)
==8245==    by 0x11903BE: zend_execute_scripts (zend.c:1568)
==8245==    by 0x107C733: php_execute_script (main.c:2637)
==8245==    by 0x13DD66B: do_cli (php_cli.c:1000)
==8245==    by 0x13DF1BD: main (php_cli.c:1396)
==8245== 

 

Generated at Thu, 09 Sep 2021 23:07:45 +0000 (6 days ago)

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