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_rollback_001.phpt ('ibase_rollback(): Basic test')

Script

1: <?php
2:
3:
require("interbase.inc");
4:
5:
$x ibase_connect($test_base);
6:
7:
ibase_query('INSERT INTO test1 VALUES (100, 2)');
8:
ibase_query('INSERT INTO test1 VALUES (100, 2)');
9:
ibase_query('INSERT INTO test1 VALUES (100, 2)');
10:
11:
$rs ibase_query('SELECT COUNT(*) FROM test1 WHERE i = 100');
12:
var_dump(ibase_fetch_row($rs));
13:
14:
var_dump(ibase_rollback($x));
15:
16:
$rs ibase_query('SELECT COUNT(*) FROM test1 WHERE i = 100');
17:
var_dump(ibase_fetch_row($rs));
18:
19:
var_dump(ibase_rollback($x));
20:
var_dump(ibase_rollback());
21:
22:
?>
23:

Report

==16768== Invalid read of size 4
==16768==    at 0x6157A82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==16768==    by 0x6149759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==16768==    by 0x8DA0F2: _php_ibase_free_stmt_handle (ibase_query.c:127)
==16768==    by 0x8DA231: _php_ibase_free_result (ibase_query.c:148)
==16768==    by 0x1138324: zend_resource_dtor (zend_list.c:76)
==16768==    by 0x1138D49: zend_close_rsrc (zend_list.c:230)
==16768==    by 0x112DD91: zend_hash_reverse_apply (zend_hash.c:1599)
==16768==    by 0x1138D95: zend_close_rsrc_list (zend_list.c:238)
==16768==    by 0x10C05DD: shutdown_executor (zend_execute_API.c:263)
==16768==    by 0x10F432C: zend_deactivate (zend.c:1036)
==16768==    by 0xFE4BCF: php_request_shutdown (main.c:1904)
==16768==    by 0x1379036: do_cli (php_cli.c:1178)
==16768==  Address 0x15b44bc0 is 0 bytes inside a block of size 32 free'd
==16768==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==16768==    by 0x108975B: _efree (zend_alloc.c:2444)
==16768==    by 0x8D635B: _php_ibase_close_link (interbase.c:643)
==16768==    by 0x1138324: zend_resource_dtor (zend_list.c:76)
==16768==    by 0x11383FF: zend_list_close (zend_list.c:89)
==16768==    by 0x8D79C7: _php_ibase_connect (interbase.c:943)
==16768==    by 0x8D84F7: zif_ibase_connect (interbase.c:1037)
==16768==    by 0x134AAEC: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==16768==    by 0x134AAEC: execute_ex (zend_vm_execute.h:59750)
==16768==    by 0x10C4EB5: zend_call_function (zend_execute_API.c:820)
==16768==    by 0x10C382D: _call_user_function_ex (zend_execute_API.c:655)
==16768==    by 0xD8CD6F: user_shutdown_function_call (basic_functions.c:5023)
==16768==    by 0x112C701: zend_hash_apply (zend_hash.c:1508)
==16768==  Block was alloc'd at
==16768==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==16768==    by 0x108ACC1: __zend_malloc (zend_alloc.c:2829)
==16768==    by 0x10844F5: _emalloc_32 (zend_alloc.c:2352)
==16768==    by 0x8D7DB6: _php_ibase_connect (interbase.c:988)
==16768==    by 0x8D84F7: zif_ibase_connect (interbase.c:1037)
==16768==    by 0x134AAEC: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==16768==    by 0x134AAEC: execute_ex (zend_vm_execute.h:59750)
==16768==    by 0x1372026: zend_execute (zend_vm_execute.h:63776)
==16768==    by 0x10F625B: zend_execute_scripts (zend.c:1502)
==16768==    by 0xFE6F64: php_execute_script (main.c:2590)
==16768==    by 0x1377EE1: do_cli (php_cli.c:1011)
==16768==    by 0x137996B: main (php_cli.c:1404)
==16768== 

 

Generated at Mon, 22 Oct 2018 07:31:22 +0000 (44 hours ago)

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