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

==17590== Invalid read of size 4
==17590==    at 0x6368A82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==17590==    by 0x635A759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==17590==    by 0x79A05A: _php_ibase_free_stmt_handle (ibase_query.c:127)
==17590==    by 0x79A199: _php_ibase_free_result (ibase_query.c:148)
==17590==    by 0xFD80D4: zend_resource_dtor (zend_list.c:74)
==17590==    by 0xFD8B82: zend_close_rsrc_list (zend_list.c:230)
==17590==    by 0xF64D8A: shutdown_executor (zend_execute_API.c:263)
==17590==    by 0xF9847F: zend_deactivate (zend.c:1179)
==17590==    by 0xE85C03: php_request_shutdown (main.c:1906)
==17590==    by 0x1219D23: do_cli (php_cli.c:1159)
==17590==    by 0x121A658: main (php_cli.c:1384)
==17590==  Address 0x16566170 is 0 bytes inside a block of size 32 free'd
==17590==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==17590==    by 0xF2A91D: _efree (zend_alloc.c:2544)
==17590==    by 0x796455: _php_ibase_close_link (interbase.c:643)
==17590==    by 0xFD80D4: zend_resource_dtor (zend_list.c:74)
==17590==    by 0xFD81B7: zend_list_close (zend_list.c:87)
==17590==    by 0x797AC1: _php_ibase_connect (interbase.c:943)
==17590==    by 0x798431: zif_ibase_connect (interbase.c:1030)
==17590==    by 0x11E8D3D: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:975)
==17590==    by 0x11E8D3D: execute_ex (zend_vm_execute.h:59872)
==17590==    by 0xF68B56: zend_call_function (zend_execute_API.c:769)
==17590==    by 0xF675A2: _call_user_function_ex (zend_execute_API.c:622)
==17590==    by 0xC29FBF: user_shutdown_function_call (basic_functions.c:5059)
==17590==    by 0xFCCCC0: zend_hash_apply (zend_hash.c:1779)
==17590==  Block was alloc'd at
==17590==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==17590==    by 0xF2E5A5: __zend_malloc (zend_alloc.c:2937)
==17590==    by 0xF25815: _emalloc_32 (zend_alloc.c:2457)
==17590==    by 0x797ECC: _php_ibase_connect (interbase.c:988)
==17590==    by 0x798431: zif_ibase_connect (interbase.c:1030)
==17590==    by 0x11E8D3D: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:975)
==17590==    by 0x11E8D3D: execute_ex (zend_vm_execute.h:59872)
==17590==    by 0x1212C87: zend_execute (zend_vm_execute.h:66092)
==17590==    by 0xF9A305: zend_execute_scripts (zend.c:1637)
==17590==    by 0xE87FCD: php_execute_script (main.c:2609)
==17590==    by 0x1218B9A: do_cli (php_cli.c:992)
==17590==    by 0x121A658: main (php_cli.c:1384)
==17590== 

 

Generated at Tue, 05 Mar 2019 22:11:22 +0000 (12 days ago)

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