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

==16702== Invalid read of size 4
==16702==    at 0x5F3DA82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==16702==    by 0x5F2F759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==16702==    by 0x87408A: _php_ibase_free_stmt_handle (ibase_query.c:127)
==16702==    by 0x8741C2: _php_ibase_free_result (ibase_query.c:148)
==16702==    by 0x1004971: zend_resource_dtor (zend_list.c:76)
==16702==    by 0x1005377: zend_close_rsrc (zend_list.c:230)
==16702==    by 0xFFB7D5: zend_hash_reverse_apply (zend_hash.c:1628)
==16702==    by 0x10053C1: zend_close_rsrc_list (zend_list.c:238)
==16702==    by 0xF93F87: shutdown_executor (zend_execute_API.c:351)
==16702==    by 0xFC2AB5: zend_deactivate (zend.c:985)
==16702==    by 0xEBFED4: php_request_shutdown (main.c:1856)
==16702==    by 0x11C8BE0: do_cli (php_cli.c:1144)
==16702==  Address 0x14fc6cd0 is 0 bytes inside a block of size 32 free'd
==16702==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==16702==    by 0xF65569: _efree (zend_alloc.c:2488)
==16702==    by 0x870438: _php_ibase_close_link (interbase.c:643)
==16702==    by 0x1004971: zend_resource_dtor (zend_list.c:76)
==16702==    by 0x1004A49: zend_list_close (zend_list.c:89)
==16702==    by 0x871B12: _php_ibase_connect (interbase.c:943)
==16702==    by 0x872569: zif_ibase_connect (interbase.c:1037)
==16702==    by 0x1094BF6: ZEND_DO_ICALL_SPEC_HANDLER (zend_vm_execute.h:586)
==16702==    by 0x10929C9: execute_ex (zend_vm_execute.h:417)
==16702==    by 0xF975FF: zend_call_function (zend_execute_API.c:867)
==16702==    by 0xF95E32: call_user_function_ex (zend_execute_API.c:675)
==16702==    by 0xF95D1E: call_user_function (zend_execute_API.c:657)
==16702==  Block was alloc'd at
==16702==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==16702==    by 0xF66BE4: __zend_malloc (zend_alloc.c:2882)
==16702==    by 0xF6031E: _emalloc_32 (zend_alloc.c:2396)
==16702==    by 0x871F44: _php_ibase_connect (interbase.c:988)
==16702==    by 0x872569: zif_ibase_connect (interbase.c:1037)
==16702==    by 0x1094BF6: ZEND_DO_ICALL_SPEC_HANDLER (zend_vm_execute.h:586)
==16702==    by 0x10929C9: execute_ex (zend_vm_execute.h:417)
==16702==    by 0x10935EF: zend_execute (zend_vm_execute.h:458)
==16702==    by 0xFC4B84: zend_execute_scripts (zend.c:1445)
==16702==    by 0xEC20CA: php_execute_script (main.c:2518)
==16702==    by 0x11C7AF5: do_cli (php_cli.c:977)
==16702==    by 0x11C9485: main (php_cli.c:1347)
==16702== 

 

Generated at Wed, 08 Nov 2017 19:36:35 +0000 (16 days ago)

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