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_trans_002.phpt ('ibase_trans(): Basic operations')

Script

1: <?php
2:
3:
require("interbase.inc");
4:
5:
$x ibase_connect($test_base);
6:
7:
$trans ibase_trans(IBASE_DEFAULT$x);
8:
$sth ibase_prepare($trans'INSERT INTO test1 VALUES (?, ?)');
9:
10:
$res ibase_execute($sth100100);
11:
var_dump($res);
12:
13:
ibase_commit($trans);
14:
15:
$rs ibase_query($x'SELECT * FROM test1 WHERE i = 100');
16:
var_dump(ibase_fetch_assoc($rs));
17:
18:
ibase_free_query($sth);
19: unset(
$res);
20:
21:
?>
22:

Report

==893== Invalid read of size 4
==893==    at 0x6157A82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==893==    by 0x6149759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==893==    by 0x8DA085: _php_ibase_free_stmt_handle (ibase_query.c:127)
==893==    by 0x8DA1C4: _php_ibase_free_result (ibase_query.c:148)
==893==    by 0x114799E: zend_resource_dtor (zend_list.c:76)
==893==    by 0x11483C3: zend_close_rsrc (zend_list.c:230)
==893==    by 0x113D40B: zend_hash_reverse_apply (zend_hash.c:1599)
==893==    by 0x114840F: zend_close_rsrc_list (zend_list.c:238)
==893==    by 0x10CFBF3: shutdown_executor (zend_execute_API.c:263)
==893==    by 0x110392B: zend_deactivate (zend.c:1032)
==893==    by 0xFF3E2B: php_request_shutdown (main.c:1904)
==893==    by 0x13886B0: do_cli (php_cli.c:1178)
==893==  Address 0x15b45150 is 0 bytes inside a block of size 32 free'd
==893==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==893==    by 0x1098A9C: _efree (zend_alloc.c:2444)
==893==    by 0x8D62EE: _php_ibase_close_link (interbase.c:643)
==893==    by 0x114799E: zend_resource_dtor (zend_list.c:76)
==893==    by 0x1147A79: zend_list_close (zend_list.c:89)
==893==    by 0x8D795A: _php_ibase_connect (interbase.c:943)
==893==    by 0x8D848A: zif_ibase_connect (interbase.c:1037)
==893==    by 0x135A166: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==893==    by 0x135A166: execute_ex (zend_vm_execute.h:59750)
==893==    by 0x10D44CB: zend_call_function (zend_execute_API.c:820)
==893==    by 0x10D2E43: _call_user_function_ex (zend_execute_API.c:655)
==893==    by 0xD9BE12: user_shutdown_function_call (basic_functions.c:5023)
==893==    by 0x113BD7B: zend_hash_apply (zend_hash.c:1508)
==893==  Block was alloc'd at
==893==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==893==    by 0x109A002: __zend_malloc (zend_alloc.c:2829)
==893==    by 0x1093836: _emalloc_32 (zend_alloc.c:2352)
==893==    by 0x8D7D49: _php_ibase_connect (interbase.c:988)
==893==    by 0x8D848A: zif_ibase_connect (interbase.c:1037)
==893==    by 0x135A166: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==893==    by 0x135A166: execute_ex (zend_vm_execute.h:59750)
==893==    by 0x13816A0: zend_execute (zend_vm_execute.h:63776)
==893==    by 0x110585A: zend_execute_scripts (zend.c:1498)
==893==    by 0xFF61D7: php_execute_script (main.c:2594)
==893==    by 0x138755B: do_cli (php_cli.c:1011)
==893==    by 0x1388FE5: main (php_cli.c:1403)
==893== 

 

Generated at Sun, 10 Feb 2019 05:24:25 +0000 (8 days ago)

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