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

==13656== Invalid read of size 4
==13656==    at 0x6157A82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==13656==    by 0x6149759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==13656==    by 0x87F424: _php_ibase_free_stmt_handle (ibase_query.c:127)
==13656==    by 0x87F563: _php_ibase_free_result (ibase_query.c:148)
==13656==    by 0x1036DA8: zend_resource_dtor (zend_list.c:76)
==13656==    by 0x10377CD: zend_close_rsrc (zend_list.c:230)
==13656==    by 0x102D376: zend_hash_reverse_apply (zend_hash.c:1598)
==13656==    by 0x1037819: zend_close_rsrc_list (zend_list.c:238)
==13656==    by 0xFC0C69: shutdown_executor (zend_execute_API.c:353)
==13656==    by 0xFF3DCC: zend_deactivate (zend.c:1005)
==13656==    by 0xEE7239: php_request_shutdown (main.c:1902)
==13656==    by 0x123F058: do_cli (php_cli.c:1160)
==13656==  Address 0x15ca15b0 is 0 bytes inside a block of size 32 free'd
==13656==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==13656==    by 0xF8B6A4: _efree (zend_alloc.c:2444)
==13656==    by 0x87B66A: _php_ibase_close_link (interbase.c:643)
==13656==    by 0x1036DA8: zend_resource_dtor (zend_list.c:76)
==13656==    by 0x1036E83: zend_list_close (zend_list.c:89)
==13656==    by 0x87CCF9: _php_ibase_connect (interbase.c:943)
==13656==    by 0x87D829: zif_ibase_connect (interbase.c:1037)
==13656==    by 0x10D7515: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==13656==    by 0x10D4670: execute_ex (zend_vm_execute.h:429)
==13656==    by 0xFC48C4: zend_call_function (zend_execute_API.c:855)
==13656==    by 0xFC2CC1: _call_user_function_ex (zend_execute_API.c:672)
==13656==    by 0xCFA6A5: user_shutdown_function_call (basic_functions.c:5017)
==13656==  Block was alloc'd at
==13656==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==13656==    by 0xF8CC82: __zend_malloc (zend_alloc.c:2838)
==13656==    by 0xF8643E: _emalloc_32 (zend_alloc.c:2352)
==13656==    by 0x87D0E8: _php_ibase_connect (interbase.c:988)
==13656==    by 0x87D829: zif_ibase_connect (interbase.c:1037)
==13656==    by 0x10D7515: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==13656==    by 0x10D4670: execute_ex (zend_vm_execute.h:429)
==13656==    by 0x10D5260: zend_execute (zend_vm_execute.h:474)
==13656==    by 0xFF5E2F: zend_execute_scripts (zend.c:1482)
==13656==    by 0xEE949F: php_execute_script (main.c:2577)
==13656==    by 0x123DF01: do_cli (php_cli.c:993)
==13656==    by 0x123F99A: main (php_cli.c:1381)
==13656== 

 

Generated at Thu, 16 May 2019 13:22:37 +0000 (5 days ago)

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