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

==21781== Invalid read of size 4
==21781==    at 0x6157A82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==21781==    by 0x6149759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==21781==    by 0x87EDB2: _php_ibase_free_stmt_handle (ibase_query.c:127)
==21781==    by 0x87EEF1: _php_ibase_free_result (ibase_query.c:148)
==21781==    by 0x1030571: zend_resource_dtor (zend_list.c:76)
==21781==    by 0x1030F96: zend_close_rsrc (zend_list.c:230)
==21781==    by 0x1026B3E: zend_hash_reverse_apply (zend_hash.c:1598)
==21781==    by 0x1030FE2: zend_close_rsrc_list (zend_list.c:238)
==21781==    by 0xFBA23B: shutdown_executor (zend_execute_API.c:353)
==21781==    by 0xFED44F: zend_deactivate (zend.c:1005)
==21781==    by 0xEE0AD1: php_request_shutdown (main.c:1902)
==21781==    by 0x1238B91: do_cli (php_cli.c:1160)
==21781==  Address 0x150abbc0 is 0 bytes inside a block of size 32 free'd
==21781==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==21781==    by 0xF84C50: _efree (zend_alloc.c:2444)
==21781==    by 0x87AFF8: _php_ibase_close_link (interbase.c:643)
==21781==    by 0x1030571: zend_resource_dtor (zend_list.c:76)
==21781==    by 0x103064C: zend_list_close (zend_list.c:89)
==21781==    by 0x87C687: _php_ibase_connect (interbase.c:943)
==21781==    by 0x87D1B7: zif_ibase_connect (interbase.c:1037)
==21781==    by 0x10D0C19: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==21781==    by 0x10CDD74: execute_ex (zend_vm_execute.h:429)
==21781==    by 0xFBDE96: zend_call_function (zend_execute_API.c:855)
==21781==    by 0xFBC293: _call_user_function_ex (zend_execute_API.c:672)
==21781==    by 0xCF37E6: user_shutdown_function_call (basic_functions.c:5017)
==21781==  Block was alloc'd at
==21781==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==21781==    by 0xF8622E: __zend_malloc (zend_alloc.c:2838)
==21781==    by 0xF7F9EA: _emalloc_32 (zend_alloc.c:2352)
==21781==    by 0x87CA76: _php_ibase_connect (interbase.c:988)
==21781==    by 0x87D1B7: zif_ibase_connect (interbase.c:1037)
==21781==    by 0x10D0C19: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==21781==    by 0x10CDD74: execute_ex (zend_vm_execute.h:429)
==21781==    by 0x10CE964: zend_execute (zend_vm_execute.h:474)
==21781==    by 0xFEF4B2: zend_execute_scripts (zend.c:1482)
==21781==    by 0xEE2D35: php_execute_script (main.c:2577)
==21781==    by 0x1237A3A: do_cli (php_cli.c:993)
==21781==    by 0x12394D3: main (php_cli.c:1381)
==21781== 

 

Generated at Sat, 22 Sep 2018 10:27:05 +0000 (14 hours ago)

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