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

==3200== Invalid read of size 4
==3200==    at 0x635FA82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==3200==    by 0x6351759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==3200==    by 0x91460D: _php_ibase_free_stmt_handle (ibase_query.c:127)
==3200==    by 0x914868: _php_ibase_free_query (ibase_query.c:169)
==3200==    by 0x914991: php_ibase_free_query_rsrc (ibase_query.c:189)
==3200==    by 0x11B912E: zend_resource_dtor (zend_list.c:74)
==3200==    by 0x11B9B55: zend_close_rsrc (zend_list.c:228)
==3200==    by 0x11AE8B5: zend_hash_reverse_apply (zend_hash.c:1834)
==3200==    by 0x11B9BA1: zend_close_rsrc_list (zend_list.c:236)
==3200==    by 0x1146C7D: shutdown_executor (zend_execute_API.c:265)
==3200==    by 0x1178F2F: zend_deactivate (zend.c:1104)
==3200==    by 0x1067381: php_request_shutdown (main.c:1938)
==3200==  Address 0x14f471b0 is 0 bytes inside a block of size 32 free'd
==3200==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==3200==    by 0x110BD8E: _efree (zend_alloc.c:2508)
==3200==    by 0x910A08: _php_ibase_close_link (interbase.c:643)
==3200==    by 0x11B912E: zend_resource_dtor (zend_list.c:74)
==3200==    by 0x11B9211: zend_list_close (zend_list.c:87)
==3200==    by 0x912074: _php_ibase_connect (interbase.c:943)
==3200==    by 0x9129E4: zif_ibase_connect (interbase.c:1030)
==3200==    by 0x13999E5: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:690)
==3200==    by 0x13999E5: execute_ex (zend_vm_execute.h:55349)
==3200==    by 0x114A9A6: zend_call_function (zend_execute_API.c:756)
==3200==    by 0x11492D1: _call_user_function_ex (zend_execute_API.c:598)
==3200==    by 0xDED640: user_shutdown_function_call (basic_functions.c:5060)
==3200==    by 0x11AD394: zend_hash_apply (zend_hash.c:1751)
==3200==  Block was alloc'd at
==3200==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==3200==    by 0x110FA71: __zend_malloc (zend_alloc.c:2900)
==3200==    by 0x1106BA6: _emalloc_32 (zend_alloc.c:2421)
==3200==    by 0x91247F: _php_ibase_connect (interbase.c:988)
==3200==    by 0x9129E4: zif_ibase_connect (interbase.c:1030)
==3200==    by 0x13999E5: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:690)
==3200==    by 0x13999E5: execute_ex (zend_vm_execute.h:55349)
==3200==    by 0x13C13E0: zend_execute (zend_vm_execute.h:60749)
==3200==    by 0x117AE23: zend_execute_scripts (zend.c:1562)
==3200==    by 0x1069796: php_execute_script (main.c:2642)
==3200==    by 0x13C71A6: do_cli (php_cli.c:997)
==3200==    by 0x13C8C64: main (php_cli.c:1390)
==3200== 

 

Generated at Sat, 15 Sep 2018 00:36:54 +0000 (11 days ago)

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