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

==22018== Invalid read of size 4
==22018==    at 0x5F3DA82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==22018==    by 0x5F2F759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==22018==    by 0x8E430A: _php_ibase_free_stmt_handle (ibase_query.c:127)
==22018==    by 0x8E4442: _php_ibase_free_result (ibase_query.c:148)
==22018==    by 0x112330D: zend_resource_dtor (zend_list.c:76)
==22018==    by 0x1123D13: zend_close_rsrc (zend_list.c:230)
==22018==    by 0x11194D0: zend_hash_reverse_apply (zend_hash.c:1597)
==22018==    by 0x1123D5D: zend_close_rsrc_list (zend_list.c:238)
==22018==    by 0x10AC82C: shutdown_executor (zend_execute_API.c:262)
==22018==    by 0x10DF72F: zend_deactivate (zend.c:1036)
==22018==    by 0xFD0E5E: php_request_shutdown (main.c:1904)
==22018==    by 0x1343A16: do_cli (php_cli.c:1178)
==22018==  Address 0x14f3fc80 is 0 bytes inside a block of size 32 free'd
==22018==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==22018==    by 0x1078165: _efree (zend_alloc.c:2444)
==22018==    by 0x8E06D8: _php_ibase_close_link (interbase.c:643)
==22018==    by 0x112330D: zend_resource_dtor (zend_list.c:76)
==22018==    by 0x11233E5: zend_list_close (zend_list.c:89)
==22018==    by 0x8E1D94: _php_ibase_connect (interbase.c:943)
==22018==    by 0x8E27EB: zif_ibase_connect (interbase.c:1037)
==22018==    by 0x11C0812: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==22018==    by 0x133C718: execute_ex (zend_vm_execute.h:59726)
==22018==    by 0x10B0F6D: zend_call_function (zend_execute_API.c:817)
==22018==    by 0x10AF8B8: _call_user_function_ex (zend_execute_API.c:652)
==22018==    by 0xD83B29: user_shutdown_function_call (basic_functions.c:5023)
==22018==  Block was alloc'd at
==22018==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==22018==    by 0x1079747: __zend_malloc (zend_alloc.c:2829)
==22018==    by 0x1072F1A: _emalloc_32 (zend_alloc.c:2352)
==22018==    by 0x8E21C6: _php_ibase_connect (interbase.c:988)
==22018==    by 0x8E27EB: zif_ibase_connect (interbase.c:1037)
==22018==    by 0x11C0812: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==22018==    by 0x133C718: execute_ex (zend_vm_execute.h:59726)
==22018==    by 0x133CD90: zend_execute (zend_vm_execute.h:63763)
==22018==    by 0x10E180E: zend_execute_scripts (zend.c:1496)
==22018==    by 0xFD3164: php_execute_script (main.c:2590)
==22018==    by 0x134292D: do_cli (php_cli.c:1011)
==22018==    by 0x13442E1: main (php_cli.c:1404)
==22018== 

 

Generated at Sat, 09 Dec 2017 10:21:20 +0000 (4 days ago)

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