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

==12668== Invalid read of size 4
==12668==    at 0x5F3DA82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==12668==    by 0x5F2F759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==12668==    by 0x8E4516: _php_ibase_free_stmt_handle (ibase_query.c:127)
==12668==    by 0x8E464E: _php_ibase_free_result (ibase_query.c:148)
==12668==    by 0x1123A5D: zend_resource_dtor (zend_list.c:76)
==12668==    by 0x1124463: zend_close_rsrc (zend_list.c:230)
==12668==    by 0x1119C20: zend_hash_reverse_apply (zend_hash.c:1597)
==12668==    by 0x11244AD: zend_close_rsrc_list (zend_list.c:238)
==12668==    by 0x10ACF90: shutdown_executor (zend_execute_API.c:262)
==12668==    by 0x10DFEAB: zend_deactivate (zend.c:1036)
==12668==    by 0xFD15C2: php_request_shutdown (main.c:1904)
==12668==    by 0x13440FA: do_cli (php_cli.c:1178)
==12668==  Address 0x14f42dd0 is 0 bytes inside a block of size 32 free'd
==12668==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==12668==    by 0x10788C9: _efree (zend_alloc.c:2444)
==12668==    by 0x8E08E4: _php_ibase_close_link (interbase.c:643)
==12668==    by 0x1123A5D: zend_resource_dtor (zend_list.c:76)
==12668==    by 0x1123B35: zend_list_close (zend_list.c:89)
==12668==    by 0x8E1FA0: _php_ibase_connect (interbase.c:943)
==12668==    by 0x8E29F7: zif_ibase_connect (interbase.c:1037)
==12668==    by 0x11C0FC2: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==12668==    by 0x133CDFD: execute_ex (zend_vm_execute.h:59723)
==12668==    by 0x10B16E8: zend_call_function (zend_execute_API.c:819)
==12668==    by 0x10B0033: _call_user_function_ex (zend_execute_API.c:654)
==12668==    by 0xD84239: user_shutdown_function_call (basic_functions.c:5023)
==12668==  Block was alloc'd at
==12668==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==12668==    by 0x1079EAB: __zend_malloc (zend_alloc.c:2829)
==12668==    by 0x107367E: _emalloc_32 (zend_alloc.c:2352)
==12668==    by 0x8E23D2: _php_ibase_connect (interbase.c:988)
==12668==    by 0x8E29F7: zif_ibase_connect (interbase.c:1037)
==12668==    by 0x11C0FC2: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==12668==    by 0x133CDFD: execute_ex (zend_vm_execute.h:59723)
==12668==    by 0x133D475: zend_execute (zend_vm_execute.h:63760)
==12668==    by 0x10E1F8A: zend_execute_scripts (zend.c:1496)
==12668==    by 0xFD38C8: php_execute_script (main.c:2590)
==12668==    by 0x1343011: do_cli (php_cli.c:1011)
==12668==    by 0x13449C5: main (php_cli.c:1404)
==12668== 

 

Generated at Fri, 09 Feb 2018 21:10:35 +0000 (8 days ago)

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