PHP  
 PHP_HEAD
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Valgrind Report for ext/interbase/tests/ibase_param_info_001.phpt ('ibase_param_info(): Basic test')

Script

1: <?php
2:
3:
require("interbase.inc");
4:
5:
$x ibase_connect($test_base);
6:
7:
$rs ibase_prepare('SELECT * FROM test1 WHERE 1 = ? AND 2 = ?');
8:
var_dump(ibase_param_info($rs1));
9:
10: print 
"---\n";
11:
12:
var_dump(ibase_param_info($rs100));
13:
14: print 
"---\n";
15:
16:
var_dump(ibase_param_info(100));
17:
18:
19:
?>
20:

Report

==19173== Invalid read of size 4
==19173==    at 0x65F7A82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==19173==    by 0x65E9759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==19173==    by 0x79A0DF: _php_ibase_free_stmt_handle (ibase_query.c:127)
==19173==    by 0x79A33A: _php_ibase_free_query (ibase_query.c:169)
==19173==    by 0x79A463: php_ibase_free_query_rsrc (ibase_query.c:189)
==19173==    by 0x10216EC: zend_resource_dtor (zend_list.c:74)
==19173==    by 0x1022113: zend_close_rsrc (zend_list.c:228)
==19173==    by 0x10177FE: zend_hash_reverse_apply (zend_hash.c:1836)
==19173==    by 0x102215F: zend_close_rsrc_list (zend_list.c:236)
==19173==    by 0xFAEC44: shutdown_executor (zend_execute_API.c:265)
==19173==    by 0xFE155A: zend_deactivate (zend.c:1152)
==19173==    by 0xECED79: php_request_shutdown (main.c:1932)
==19173==  Address 0x15fd8710 is 0 bytes inside a block of size 32 free'd
==19173==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==19173==    by 0xF73AC3: _efree (zend_alloc.c:2500)
==19173==    by 0x7964DA: _php_ibase_close_link (interbase.c:643)
==19173==    by 0x10216EC: zend_resource_dtor (zend_list.c:74)
==19173==    by 0x10217CF: zend_list_close (zend_list.c:87)
==19173==    by 0x797B46: _php_ibase_connect (interbase.c:943)
==19173==    by 0x7984B6: zif_ibase_connect (interbase.c:1030)
==19173==    by 0x11FF59D: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:700)
==19173==    by 0x11FF59D: execute_ex (zend_vm_execute.h:54815)
==19173==    by 0xFB2F6B: zend_call_function (zend_execute_API.c:801)
==19173==    by 0xFB1896: _call_user_function_ex (zend_execute_API.c:643)
==19173==    by 0xC71660: user_shutdown_function_call (basic_functions.c:5059)
==19173==    by 0x10162DD: zend_hash_apply (zend_hash.c:1753)
==19173==  Block was alloc'd at
==19173==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==19173==    by 0xF777FD: __zend_malloc (zend_alloc.c:2896)
==19173==    by 0xF6E8DB: _emalloc_32 (zend_alloc.c:2413)
==19173==    by 0x797F51: _php_ibase_connect (interbase.c:988)
==19173==    by 0x7984B6: zif_ibase_connect (interbase.c:1030)
==19173==    by 0x11FF59D: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:700)
==19173==    by 0x11FF59D: execute_ex (zend_vm_execute.h:54815)
==19173==    by 0x122750B: zend_execute (zend_vm_execute.h:60215)
==19173==    by 0xFE348A: zend_execute_scripts (zend.c:1616)
==19173==    by 0xED11E3: php_execute_script (main.c:2643)
==19173==    by 0x122D2D1: do_cli (php_cli.c:997)
==19173==    by 0x122ED8F: main (php_cli.c:1389)
==19173== 

 

Generated at Sat, 01 Dec 2018 10:41:11 +0000 (9 days ago)

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