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

Script

1: <?php
2:
3:
require("interbase.inc");
4:
5:
$x ibase_connect($test_base);
6:
7:
$rs ibase_prepare('SELECT * FROM test1 WHERE 1 = ? AND 2 = ?');
8:
var_dump(ibase_param_info($rs1));
9:
10: print 
"---\n";
11:
12:
var_dump(ibase_param_info($rs100));
13:
14: print 
"---\n";
15:
16:
var_dump(ibase_param_info(100));
17:
18:
19:
?>
20:

Report

==7752== Invalid read of size 4
==7752==    at 0x6157A82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==7752==    by 0x6149759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==7752==    by 0x87FA55: _php_ibase_free_stmt_handle (ibase_query.c:127)
==7752==    by 0x87FCB0: _php_ibase_free_query (ibase_query.c:169)
==7752==    by 0x87FDD9: php_ibase_free_query_rsrc (ibase_query.c:189)
==7752==    by 0x103644D: zend_resource_dtor (zend_list.c:76)
==7752==    by 0x1036E72: zend_close_rsrc (zend_list.c:230)
==7752==    by 0x102CA1A: zend_hash_reverse_apply (zend_hash.c:1598)
==7752==    by 0x1036EBE: zend_close_rsrc_list (zend_list.c:238)
==7752==    by 0xFC0117: shutdown_executor (zend_execute_API.c:353)
==7752==    by 0xFF332B: zend_deactivate (zend.c:1005)
==7752==    by 0xEE69AD: php_request_shutdown (main.c:1902)
==7752==  Address 0x15c81500 is 0 bytes inside a block of size 32 free'd
==7752==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==7752==    by 0xF8AB2C: _efree (zend_alloc.c:2444)
==7752==    by 0x87BC9B: _php_ibase_close_link (interbase.c:643)
==7752==    by 0x103644D: zend_resource_dtor (zend_list.c:76)
==7752==    by 0x1036528: zend_list_close (zend_list.c:89)
==7752==    by 0x87D32A: _php_ibase_connect (interbase.c:943)
==7752==    by 0x87DE5A: zif_ibase_connect (interbase.c:1037)
==7752==    by 0x10D6DDA: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==7752==    by 0x10D3F35: execute_ex (zend_vm_execute.h:429)
==7752==    by 0xFC3D72: zend_call_function (zend_execute_API.c:855)
==7752==    by 0xFC216F: _call_user_function_ex (zend_execute_API.c:672)
==7752==    by 0xCF96C2: user_shutdown_function_call (basic_functions.c:5017)
==7752==  Block was alloc'd at
==7752==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==7752==    by 0xF8C10A: __zend_malloc (zend_alloc.c:2838)
==7752==    by 0xF858C6: _emalloc_32 (zend_alloc.c:2352)
==7752==    by 0x87D719: _php_ibase_connect (interbase.c:988)
==7752==    by 0x87DE5A: zif_ibase_connect (interbase.c:1037)
==7752==    by 0x10D6DDA: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==7752==    by 0x10D3F35: execute_ex (zend_vm_execute.h:429)
==7752==    by 0x10D4B25: zend_execute (zend_vm_execute.h:474)
==7752==    by 0xFF538E: zend_execute_scripts (zend.c:1482)
==7752==    by 0xEE8C11: php_execute_script (main.c:2577)
==7752==    by 0x123DBFB: do_cli (php_cli.c:993)
==7752==    by 0x123F694: main (php_cli.c:1381)
==7752== 

 

Generated at Wed, 10 Oct 2018 12:41:49 +0000 (8 days ago)

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