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_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

==20103== Invalid read of size 4
==20103==    at 0x6157A82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==20103==    by 0x6149759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==20103==    by 0x89E3F6: _php_ibase_free_stmt_handle (ibase_query.c:127)
==20103==    by 0x89E535: _php_ibase_free_result (ibase_query.c:148)
==20103==    by 0x10554A5: zend_resource_dtor (zend_list.c:76)
==20103==    by 0x1055ECA: zend_close_rsrc (zend_list.c:230)
==20103==    by 0x104BA73: zend_hash_reverse_apply (zend_hash.c:1598)
==20103==    by 0x1055F16: zend_close_rsrc_list (zend_list.c:238)
==20103==    by 0xFDF366: shutdown_executor (zend_execute_API.c:353)
==20103==    by 0x10124C9: zend_deactivate (zend.c:1005)
==20103==    by 0xF05936: php_request_shutdown (main.c:1902)
==20103==    by 0x125D755: do_cli (php_cli.c:1160)
==20103==  Address 0x15ca1380 is 0 bytes inside a block of size 32 free'd
==20103==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==20103==    by 0xFA9DA1: _efree (zend_alloc.c:2444)
==20103==    by 0x89A63C: _php_ibase_close_link (interbase.c:643)
==20103==    by 0x10554A5: zend_resource_dtor (zend_list.c:76)
==20103==    by 0x1055580: zend_list_close (zend_list.c:89)
==20103==    by 0x89BCCB: _php_ibase_connect (interbase.c:943)
==20103==    by 0x89C7FB: zif_ibase_connect (interbase.c:1037)
==20103==    by 0x10F5C12: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==20103==    by 0x10F2D6D: execute_ex (zend_vm_execute.h:429)
==20103==    by 0xFE2FC1: zend_call_function (zend_execute_API.c:855)
==20103==    by 0xFE13BE: _call_user_function_ex (zend_execute_API.c:672)
==20103==    by 0xD18DA2: user_shutdown_function_call (basic_functions.c:5017)
==20103==  Block was alloc'd at
==20103==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==20103==    by 0xFAB37F: __zend_malloc (zend_alloc.c:2838)
==20103==    by 0xFA4B3B: _emalloc_32 (zend_alloc.c:2352)
==20103==    by 0x89C0BA: _php_ibase_connect (interbase.c:988)
==20103==    by 0x89C7FB: zif_ibase_connect (interbase.c:1037)
==20103==    by 0x10F5C12: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==20103==    by 0x10F2D6D: execute_ex (zend_vm_execute.h:429)
==20103==    by 0x10F395D: zend_execute (zend_vm_execute.h:474)
==20103==    by 0x101452C: zend_execute_scripts (zend.c:1482)
==20103==    by 0xF07B9C: php_execute_script (main.c:2577)
==20103==    by 0x125C5FE: do_cli (php_cli.c:993)
==20103==    by 0x125E097: main (php_cli.c:1381)
==20103== 

 

Generated at Sun, 15 Sep 2019 23:58:39 +0000 (36 hours ago)

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