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

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

 

Generated at Sat, 09 Dec 2017 10:21:20 +0000 (4 days ago)

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