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

==20571== Invalid read of size 4
==20571==    at 0x5F3DA82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==20571==    by 0x5F2F759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==20571==    by 0x8737B2: _php_ibase_free_stmt_handle (ibase_query.c:127)
==20571==    by 0x8738EA: _php_ibase_free_result (ibase_query.c:148)
==20571==    by 0x10033C9: zend_resource_dtor (zend_list.c:76)
==20571==    by 0x1003DCF: zend_close_rsrc (zend_list.c:230)
==20571==    by 0xFFA22D: zend_hash_reverse_apply (zend_hash.c:1628)
==20571==    by 0x1003E19: zend_close_rsrc_list (zend_list.c:238)
==20571==    by 0xF92DC3: shutdown_executor (zend_execute_API.c:351)
==20571==    by 0xFC1587: zend_deactivate (zend.c:983)
==20571==    by 0xEBEFCE: php_request_shutdown (main.c:1831)
==20571==    by 0x11C6F14: do_cli (php_cli.c:1144)
==20571==  Address 0x14fc6d40 is 0 bytes inside a block of size 32 free'd
==20571==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==20571==    by 0xF643C0: _efree (zend_alloc.c:2472)
==20571==    by 0x86FB60: _php_ibase_close_link (interbase.c:643)
==20571==    by 0x10033C9: zend_resource_dtor (zend_list.c:76)
==20571==    by 0x10034A1: zend_list_close (zend_list.c:89)
==20571==    by 0x87123A: _php_ibase_connect (interbase.c:943)
==20571==    by 0x871C91: zif_ibase_connect (interbase.c:1037)
==20571==    by 0x1092F2A: ZEND_DO_ICALL_SPEC_HANDLER (zend_vm_execute.h:586)
==20571==    by 0x1090CFD: execute_ex (zend_vm_execute.h:417)
==20571==    by 0xF9643B: zend_call_function (zend_execute_API.c:867)
==20571==    by 0xF94C6E: call_user_function_ex (zend_execute_API.c:675)
==20571==    by 0xF94B5A: call_user_function (zend_execute_API.c:657)
==20571==  Block was alloc'd at
==20571==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==20571==    by 0xF65A20: __zend_malloc (zend_alloc.c:2864)
==20571==    by 0xF5F175: _emalloc_32 (zend_alloc.c:2380)
==20571==    by 0x87166C: _php_ibase_connect (interbase.c:988)
==20571==    by 0x871C91: zif_ibase_connect (interbase.c:1037)
==20571==    by 0x1092F2A: ZEND_DO_ICALL_SPEC_HANDLER (zend_vm_execute.h:586)
==20571==    by 0x1090CFD: execute_ex (zend_vm_execute.h:417)
==20571==    by 0x1091923: zend_execute (zend_vm_execute.h:458)
==20571==    by 0xFC3656: zend_execute_scripts (zend.c:1443)
==20571==    by 0xEC11C4: php_execute_script (main.c:2493)
==20571==    by 0x11C5E29: do_cli (php_cli.c:977)
==20571==    by 0x11C77B9: main (php_cli.c:1347)
==20571== 

 

Generated at Wed, 20 Sep 2017 13:49:37 +0000 (3 days ago)

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