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

==18644== Invalid read of size 4
==18644==    at 0x5F3DA82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==18644==    by 0x5F2F759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==18644==    by 0x8E430A: _php_ibase_free_stmt_handle (ibase_query.c:127)
==18644==    by 0x8E455D: _php_ibase_free_query (ibase_query.c:169)
==18644==    by 0x8E4685: php_ibase_free_query_rsrc (ibase_query.c:189)
==18644==    by 0x112330D: zend_resource_dtor (zend_list.c:76)
==18644==    by 0x1123D13: zend_close_rsrc (zend_list.c:230)
==18644==    by 0x11194D0: zend_hash_reverse_apply (zend_hash.c:1597)
==18644==    by 0x1123D5D: zend_close_rsrc_list (zend_list.c:238)
==18644==    by 0x10AC82C: shutdown_executor (zend_execute_API.c:262)
==18644==    by 0x10DF72F: zend_deactivate (zend.c:1036)
==18644==    by 0xFD0E5E: php_request_shutdown (main.c:1904)
==18644==  Address 0x14f3f210 is 0 bytes inside a block of size 32 free'd
==18644==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==18644==    by 0x1078165: _efree (zend_alloc.c:2444)
==18644==    by 0x8E06D8: _php_ibase_close_link (interbase.c:643)
==18644==    by 0x112330D: zend_resource_dtor (zend_list.c:76)
==18644==    by 0x11233E5: zend_list_close (zend_list.c:89)
==18644==    by 0x8E1D94: _php_ibase_connect (interbase.c:943)
==18644==    by 0x8E27EB: zif_ibase_connect (interbase.c:1037)
==18644==    by 0x11C0812: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==18644==    by 0x133C718: execute_ex (zend_vm_execute.h:59726)
==18644==    by 0x10B0F6D: zend_call_function (zend_execute_API.c:817)
==18644==    by 0x10AF8B8: _call_user_function_ex (zend_execute_API.c:652)
==18644==    by 0xD83B29: user_shutdown_function_call (basic_functions.c:5023)
==18644==  Block was alloc'd at
==18644==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==18644==    by 0x1079747: __zend_malloc (zend_alloc.c:2829)
==18644==    by 0x1072F1A: _emalloc_32 (zend_alloc.c:2352)
==18644==    by 0x8E21C6: _php_ibase_connect (interbase.c:988)
==18644==    by 0x8E27EB: zif_ibase_connect (interbase.c:1037)
==18644==    by 0x11C0812: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==18644==    by 0x133C718: execute_ex (zend_vm_execute.h:59726)
==18644==    by 0x133CD90: zend_execute (zend_vm_execute.h:63763)
==18644==    by 0x10E180E: zend_execute_scripts (zend.c:1496)
==18644==    by 0xFD3164: php_execute_script (main.c:2590)
==18644==    by 0x134292D: do_cli (php_cli.c:1011)
==18644==    by 0x13442E1: main (php_cli.c:1404)
==18644== 

 

Generated at Fri, 15 Dec 2017 07:20:55 +0000 (2 days ago)

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