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

==10995== Invalid read of size 4
==10995==    at 0x5F3DA82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==10995==    by 0x5F2F759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==10995==    by 0x8896AE: _php_ibase_free_stmt_handle (ibase_query.c:127)
==10995==    by 0x8897E6: _php_ibase_free_result (ibase_query.c:148)
==10995==    by 0x102C4D1: zend_resource_dtor (zend_list.c:76)
==10995==    by 0x102CED7: zend_close_rsrc (zend_list.c:230)
==10995==    by 0x102315C: zend_hash_reverse_apply (zend_hash.c:1598)
==10995==    by 0x102CF21: zend_close_rsrc_list (zend_list.c:238)
==10995==    by 0xFB7427: shutdown_executor (zend_execute_API.c:353)
==10995==    by 0xFE974B: zend_deactivate (zend.c:1005)
==10995==    by 0xEDD791: php_request_shutdown (main.c:1902)
==10995==    by 0x1233A08: do_cli (php_cli.c:1160)
==10995==  Address 0x15080ec0 is 0 bytes inside a block of size 32 free'd
==10995==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==10995==    by 0xF843BD: _efree (zend_alloc.c:2444)
==10995==    by 0x885A5C: _php_ibase_close_link (interbase.c:643)
==10995==    by 0x102C4D1: zend_resource_dtor (zend_list.c:76)
==10995==    by 0x102C5A9: zend_list_close (zend_list.c:89)
==10995==    by 0x887136: _php_ibase_connect (interbase.c:943)
==10995==    by 0x887B8D: zif_ibase_connect (interbase.c:1037)
==10995==    by 0x10CBA0A: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==10995==    by 0x10C8C22: execute_ex (zend_vm_execute.h:432)
==10995==    by 0xFBAE62: zend_call_function (zend_execute_API.c:855)
==10995==    by 0xFB928A: _call_user_function_ex (zend_execute_API.c:672)
==10995==    by 0xCF2AF5: user_shutdown_function_call (basic_functions.c:5017)
==10995==  Block was alloc'd at
==10995==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==10995==    by 0xF85A17: __zend_malloc (zend_alloc.c:2838)
==10995==    by 0xF7F172: _emalloc_32 (zend_alloc.c:2352)
==10995==    by 0x887568: _php_ibase_connect (interbase.c:988)
==10995==    by 0x887B8D: zif_ibase_connect (interbase.c:1037)
==10995==    by 0x10CBA0A: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==10995==    by 0x10C8C22: execute_ex (zend_vm_execute.h:432)
==10995==    by 0x10C986F: zend_execute (zend_vm_execute.h:474)
==10995==    by 0xFEB9B0: zend_execute_scripts (zend.c:1482)
==10995==    by 0xEDF990: php_execute_script (main.c:2577)
==10995==    by 0x123291D: do_cli (php_cli.c:993)
==10995==    by 0x12342C4: main (php_cli.c:1381)
==10995== 

 

Generated at Fri, 01 Dec 2017 18:56:15 +0000 (13 days ago)

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