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_num_fields_001.phpt ('ibase_num_fields(): Basic test')

Script

1: <?php
2:
3:
require("interbase.inc");
4:
5:
$x ibase_connect($test_base);
6:
7:
var_dump(ibase_num_fields(ibase_query('SELECT * FROM test1')));
8:
9:
var_dump(ibase_num_fields(1));
10:
var_dump(ibase_num_fields());
11:
12:
?>
13:

Report

==26501== Invalid read of size 4
==26501==    at 0x6157A82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==26501==    by 0x6149759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==26501==    by 0x8D97BE: _php_ibase_free_stmt_handle (ibase_query.c:127)
==26501==    by 0x8D98FD: _php_ibase_free_result (ibase_query.c:148)
==26501==    by 0x1131E3D: zend_resource_dtor (zend_list.c:76)
==26501==    by 0x1132862: zend_close_rsrc (zend_list.c:230)
==26501==    by 0x11278AA: zend_hash_reverse_apply (zend_hash.c:1597)
==26501==    by 0x11328AE: zend_close_rsrc_list (zend_list.c:238)
==26501==    by 0x10BA195: shutdown_executor (zend_execute_API.c:262)
==26501==    by 0x10EDEE4: zend_deactivate (zend.c:1036)
==26501==    by 0xFDE9AB: php_request_shutdown (main.c:1904)
==26501==    by 0x1372193: do_cli (php_cli.c:1178)
==26501==  Address 0x14f5df40 is 0 bytes inside a block of size 32 free'd
==26501==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==26501==    by 0x1083321: _efree (zend_alloc.c:2444)
==26501==    by 0x8D5A27: _php_ibase_close_link (interbase.c:643)
==26501==    by 0x1131E3D: zend_resource_dtor (zend_list.c:76)
==26501==    by 0x1131F18: zend_list_close (zend_list.c:89)
==26501==    by 0x8D7093: _php_ibase_connect (interbase.c:943)
==26501==    by 0x8D7BC3: zif_ibase_connect (interbase.c:1037)
==26501==    by 0x1343C49: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==26501==    by 0x1343C49: execute_ex (zend_vm_execute.h:59734)
==26501==    by 0x10BEA6D: zend_call_function (zend_execute_API.c:819)
==26501==    by 0x10BD3E5: _call_user_function_ex (zend_execute_API.c:654)
==26501==    by 0xD86AD9: user_shutdown_function_call (basic_functions.c:5023)
==26501==    by 0x112621A: zend_hash_apply (zend_hash.c:1506)
==26501==  Block was alloc'd at
==26501==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==26501==    by 0x1084887: __zend_malloc (zend_alloc.c:2829)
==26501==    by 0x107E0BB: _emalloc_32 (zend_alloc.c:2352)
==26501==    by 0x8D7482: _php_ibase_connect (interbase.c:988)
==26501==    by 0x8D7BC3: zif_ibase_connect (interbase.c:1037)
==26501==    by 0x1343C49: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==26501==    by 0x1343C49: execute_ex (zend_vm_execute.h:59734)
==26501==    by 0x136B183: zend_execute (zend_vm_execute.h:63760)
==26501==    by 0x10EFDD7: zend_execute_scripts (zend.c:1496)
==26501==    by 0xFE0D40: php_execute_script (main.c:2590)
==26501==    by 0x137103E: do_cli (php_cli.c:1011)
==26501==    by 0x1372AC8: main (php_cli.c:1404)
==26501== 

 

Generated at Wed, 16 May 2018 17:38:03 +0000 (5 days ago)

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