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

==10991== Invalid read of size 4
==10991==    at 0x6157A82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==10991==    by 0x6149759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==10991==    by 0x8D926D: _php_ibase_free_stmt_handle (ibase_query.c:127)
==10991==    by 0x8D93AC: _php_ibase_free_result (ibase_query.c:148)
==10991==    by 0x11331C4: zend_resource_dtor (zend_list.c:76)
==10991==    by 0x1133BE9: zend_close_rsrc (zend_list.c:230)
==10991==    by 0x1128C31: zend_hash_reverse_apply (zend_hash.c:1597)
==10991==    by 0x1133C35: zend_close_rsrc_list (zend_list.c:238)
==10991==    by 0x10BB4F3: shutdown_executor (zend_execute_API.c:263)
==10991==    by 0x10EF242: zend_deactivate (zend.c:1036)
==10991==    by 0xFDFCFB: php_request_shutdown (main.c:1904)
==10991==    by 0x13739C8: do_cli (php_cli.c:1178)
==10991==  Address 0x14f6de60 is 0 bytes inside a block of size 32 free'd
==10991==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==10991==    by 0x1084671: _efree (zend_alloc.c:2444)
==10991==    by 0x8D54D6: _php_ibase_close_link (interbase.c:643)
==10991==    by 0x11331C4: zend_resource_dtor (zend_list.c:76)
==10991==    by 0x113329F: zend_list_close (zend_list.c:89)
==10991==    by 0x8D6B42: _php_ibase_connect (interbase.c:943)
==10991==    by 0x8D7672: zif_ibase_connect (interbase.c:1037)
==10991==    by 0x134547E: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==10991==    by 0x134547E: execute_ex (zend_vm_execute.h:59750)
==10991==    by 0x10BFDCB: zend_call_function (zend_execute_API.c:820)
==10991==    by 0x10BE743: _call_user_function_ex (zend_execute_API.c:655)
==10991==    by 0xD866F8: user_shutdown_function_call (basic_functions.c:5023)
==10991==    by 0x11275A1: zend_hash_apply (zend_hash.c:1506)
==10991==  Block was alloc'd at
==10991==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==10991==    by 0x1085BD7: __zend_malloc (zend_alloc.c:2829)
==10991==    by 0x107F40B: _emalloc_32 (zend_alloc.c:2352)
==10991==    by 0x8D6F31: _php_ibase_connect (interbase.c:988)
==10991==    by 0x8D7672: zif_ibase_connect (interbase.c:1037)
==10991==    by 0x134547E: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==10991==    by 0x134547E: execute_ex (zend_vm_execute.h:59750)
==10991==    by 0x136C9B8: zend_execute (zend_vm_execute.h:63776)
==10991==    by 0x10F1135: zend_execute_scripts (zend.c:1496)
==10991==    by 0xFE2090: php_execute_script (main.c:2590)
==10991==    by 0x1372873: do_cli (php_cli.c:1011)
==10991==    by 0x13742FD: main (php_cli.c:1404)
==10991== 

 

Generated at Thu, 12 Jul 2018 17:17:45 +0000 (4 days ago)

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