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

==25319== Invalid read of size 4
==25319==    at 0x6157A82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==25319==    by 0x6149759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==25319==    by 0x8D9DC9: _php_ibase_free_stmt_handle (ibase_query.c:127)
==25319==    by 0x8DA024: _php_ibase_free_query (ibase_query.c:169)
==25319==    by 0x8DA14D: php_ibase_free_query_rsrc (ibase_query.c:189)
==25319==    by 0x1137D93: zend_resource_dtor (zend_list.c:76)
==25319==    by 0x11387B8: zend_close_rsrc (zend_list.c:230)
==25319==    by 0x112D800: zend_hash_reverse_apply (zend_hash.c:1599)
==25319==    by 0x1138804: zend_close_rsrc_list (zend_list.c:238)
==25319==    by 0x10C004C: shutdown_executor (zend_execute_API.c:263)
==25319==    by 0x10F3D9B: zend_deactivate (zend.c:1036)
==25319==    by 0xFE4827: php_request_shutdown (main.c:1904)
==25319==  Address 0x15b43f20 is 0 bytes inside a block of size 32 free'd
==25319==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==25319==    by 0x10891CA: _efree (zend_alloc.c:2444)
==25319==    by 0x8D6032: _php_ibase_close_link (interbase.c:643)
==25319==    by 0x1137D93: zend_resource_dtor (zend_list.c:76)
==25319==    by 0x1137E6E: zend_list_close (zend_list.c:89)
==25319==    by 0x8D769E: _php_ibase_connect (interbase.c:943)
==25319==    by 0x8D81CE: zif_ibase_connect (interbase.c:1037)
==25319==    by 0x134A55B: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==25319==    by 0x134A55B: execute_ex (zend_vm_execute.h:59750)
==25319==    by 0x10C4924: zend_call_function (zend_execute_API.c:820)
==25319==    by 0x10C329C: _call_user_function_ex (zend_execute_API.c:655)
==25319==    by 0xD8CA45: user_shutdown_function_call (basic_functions.c:5023)
==25319==    by 0x112C170: zend_hash_apply (zend_hash.c:1508)
==25319==  Block was alloc'd at
==25319==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==25319==    by 0x108A730: __zend_malloc (zend_alloc.c:2829)
==25319==    by 0x1083F64: _emalloc_32 (zend_alloc.c:2352)
==25319==    by 0x8D7A8D: _php_ibase_connect (interbase.c:988)
==25319==    by 0x8D81CE: zif_ibase_connect (interbase.c:1037)
==25319==    by 0x134A55B: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==25319==    by 0x134A55B: execute_ex (zend_vm_execute.h:59750)
==25319==    by 0x1371A95: zend_execute (zend_vm_execute.h:63776)
==25319==    by 0x10F5CCA: zend_execute_scripts (zend.c:1502)
==25319==    by 0xFE6BBC: php_execute_script (main.c:2590)
==25319==    by 0x1377950: do_cli (php_cli.c:1011)
==25319==    by 0x13793DA: main (php_cli.c:1404)
==25319== 

 

Generated at Mon, 08 Oct 2018 02:05:35 +0000 (8 days ago)

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