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_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

==7355== Invalid read of size 4
==7355==    at 0x6157A82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==7355==    by 0x6149759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==7355==    by 0x87FBC2: _php_ibase_free_stmt_handle (ibase_query.c:127)
==7355==    by 0x87FD01: _php_ibase_free_result (ibase_query.c:148)
==7355==    by 0x10372A2: zend_resource_dtor (zend_list.c:76)
==7355==    by 0x1037CC7: zend_close_rsrc (zend_list.c:230)
==7355==    by 0x102D86F: zend_hash_reverse_apply (zend_hash.c:1598)
==7355==    by 0x1037D13: zend_close_rsrc_list (zend_list.c:238)
==7355==    by 0xFC0F6C: shutdown_executor (zend_execute_API.c:353)
==7355==    by 0xFF4180: zend_deactivate (zend.c:1005)
==7355==    by 0xEE7619: php_request_shutdown (main.c:1902)
==7355==    by 0x123FBA7: do_cli (php_cli.c:1160)
==7355==  Address 0x15c822b0 is 0 bytes inside a block of size 32 free'd
==7355==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==7355==    by 0xF8B981: _efree (zend_alloc.c:2444)
==7355==    by 0x87BE08: _php_ibase_close_link (interbase.c:643)
==7355==    by 0x10372A2: zend_resource_dtor (zend_list.c:76)
==7355==    by 0x103737D: zend_list_close (zend_list.c:89)
==7355==    by 0x87D497: _php_ibase_connect (interbase.c:943)
==7355==    by 0x87DFC7: zif_ibase_connect (interbase.c:1037)
==7355==    by 0x10D7C2F: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==7355==    by 0x10D4D8A: execute_ex (zend_vm_execute.h:429)
==7355==    by 0xFC4BC7: zend_call_function (zend_execute_API.c:855)
==7355==    by 0xFC2FC4: _call_user_function_ex (zend_execute_API.c:672)
==7355==    by 0xCFA28D: user_shutdown_function_call (basic_functions.c:5017)
==7355==  Block was alloc'd at
==7355==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==7355==    by 0xF8CF5F: __zend_malloc (zend_alloc.c:2838)
==7355==    by 0xF8671B: _emalloc_32 (zend_alloc.c:2352)
==7355==    by 0x87D886: _php_ibase_connect (interbase.c:988)
==7355==    by 0x87DFC7: zif_ibase_connect (interbase.c:1037)
==7355==    by 0x10D7C2F: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==7355==    by 0x10D4D8A: execute_ex (zend_vm_execute.h:429)
==7355==    by 0x10D597A: zend_execute (zend_vm_execute.h:474)
==7355==    by 0xFF61E3: zend_execute_scripts (zend.c:1482)
==7355==    by 0xEE987D: php_execute_script (main.c:2577)
==7355==    by 0x123EA50: do_cli (php_cli.c:993)
==7355==    by 0x12404E9: main (php_cli.c:1381)
==7355== 

 

Generated at Sat, 08 Dec 2018 23:47:55 +0000 (3 days ago)

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