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

==3447== Conditional jump or move depends on uninitialised value(s)
==3447==    at 0x9EC92A: odbc_bindcols (php_odbc.c:960)
==3447==    by 0x9EFCA1: zif_odbc_exec (php_odbc.c:1636)
==3447==    by 0x10C6FEA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==3447==    by 0x10C3CE4: execute_ex (zend_vm_execute.h:352)
==3447==    by 0x10C4962: zend_execute (zend_vm_execute.h:381)
==3447==    by 0x101C58E: zend_execute_scripts (zend.c:1271)
==3447==    by 0xF230B5: php_execute_script (main.c:2554)
==3447==    by 0x11D62F9: do_cli (php_cli.c:982)
==3447==    by 0x11D7D7A: main (php_cli.c:1361)
==3447== 
==3447== Conditional jump or move depends on uninitialised value(s)
==3447==    at 0x9ECA04: odbc_bindcols (php_odbc.c:991)
==3447==    by 0x9EFCA1: zif_odbc_exec (php_odbc.c:1636)
==3447==    by 0x10C6FEA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==3447==    by 0x10C3CE4: execute_ex (zend_vm_execute.h:352)
==3447==    by 0x10C4962: zend_execute (zend_vm_execute.h:381)
==3447==    by 0x101C58E: zend_execute_scripts (zend.c:1271)
==3447==    by 0xF230B5: php_execute_script (main.c:2554)
==3447==    by 0x11D62F9: do_cli (php_cli.c:982)
==3447==    by 0x11D7D7A: main (php_cli.c:1361)
==3447== 
==3447== Conditional jump or move depends on uninitialised value(s)
==3447==    at 0x9F25F2: zif_odbc_result (php_odbc.c:2087)
==3447==    by 0x10C6FEA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==3447==    by 0x10C3CE4: execute_ex (zend_vm_execute.h:352)
==3447==    by 0x10C4962: zend_execute (zend_vm_execute.h:381)
==3447==    by 0x101C58E: zend_execute_scripts (zend.c:1271)
==3447==    by 0xF230B5: php_execute_script (main.c:2554)
==3447==    by 0x11D62F9: do_cli (php_cli.c:982)
==3447==    by 0x11D7D7A: main (php_cli.c:1361)
==3447== 
==3447== Conditional jump or move depends on uninitialised value(s)
==3447==    at 0x9F2609: zif_odbc_result (php_odbc.c:2087)
==3447==    by 0x10C6FEA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==3447==    by 0x10C3CE4: execute_ex (zend_vm_execute.h:352)
==3447==    by 0x10C4962: zend_execute (zend_vm_execute.h:381)
==3447==    by 0x101C58E: zend_execute_scripts (zend.c:1271)
==3447==    by 0xF230B5: php_execute_script (main.c:2554)
==3447==    by 0x11D62F9: do_cli (php_cli.c:982)
==3447==    by 0x11D7D7A: main (php_cli.c:1361)
==3447== 
==3447== Conditional jump or move depends on uninitialised value(s)
==3447==    at 0x9F011C: php_odbc_fetch_hash (php_odbc.c:1716)
==3447==    by 0x9F0DEC: zif_odbc_fetch_array (php_odbc.c:1798)
==3447==    by 0x10C6FEA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==3447==    by 0x10C3CE4: execute_ex (zend_vm_execute.h:352)
==3447==    by 0x10C4962: zend_execute (zend_vm_execute.h:381)
==3447==    by 0x101C58E: zend_execute_scripts (zend.c:1271)
==3447==    by 0xF230B5: php_execute_script (main.c:2554)
==3447==    by 0x11D62F9: do_cli (php_cli.c:982)
==3447==    by 0x11D7D7A: main (php_cli.c:1361)
==3447== 
==3447== Conditional jump or move depends on uninitialised value(s)
==3447==    at 0x9F0137: php_odbc_fetch_hash (php_odbc.c:1716)
==3447==    by 0x9F0DEC: zif_odbc_fetch_array (php_odbc.c:1798)
==3447==    by 0x10C6FEA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==3447==    by 0x10C3CE4: execute_ex (zend_vm_execute.h:352)
==3447==    by 0x10C4962: zend_execute (zend_vm_execute.h:381)
==3447==    by 0x101C58E: zend_execute_scripts (zend.c:1271)
==3447==    by 0xF230B5: php_execute_script (main.c:2554)
==3447==    by 0x11D62F9: do_cli (php_cli.c:982)
==3447==    by 0x11D7D7A: main (php_cli.c:1361)
==3447== 

 

Generated at Mon, 26 Jan 2015 14:47:00 +0000 (3 days ago)

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