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

==29150== Invalid read of size 4
==29150==    at 0x6157A82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==29150==    by 0x6149759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==29150==    by 0x8DA3AE: _php_ibase_free_stmt_handle (ibase_query.c:127)
==29150==    by 0x8DA609: _php_ibase_free_query (ibase_query.c:169)
==29150==    by 0x8DA732: php_ibase_free_query_rsrc (ibase_query.c:189)
==29150==    by 0x11390A9: zend_resource_dtor (zend_list.c:76)
==29150==    by 0x1139ACE: zend_close_rsrc (zend_list.c:230)
==29150==    by 0x112EB16: zend_hash_reverse_apply (zend_hash.c:1599)
==29150==    by 0x1139B1A: zend_close_rsrc_list (zend_list.c:238)
==29150==    by 0x10C1362: shutdown_executor (zend_execute_API.c:263)
==29150==    by 0x10F50B1: zend_deactivate (zend.c:1036)
==29150==    by 0xFE593E: php_request_shutdown (main.c:1904)
==29150==  Address 0x15b440c0 is 0 bytes inside a block of size 32 free'd
==29150==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==29150==    by 0x108A4CA: _efree (zend_alloc.c:2444)
==29150==    by 0x8D6617: _php_ibase_close_link (interbase.c:643)
==29150==    by 0x11390A9: zend_resource_dtor (zend_list.c:76)
==29150==    by 0x1139184: zend_list_close (zend_list.c:89)
==29150==    by 0x8D7C83: _php_ibase_connect (interbase.c:943)
==29150==    by 0x8D87B3: zif_ibase_connect (interbase.c:1037)
==29150==    by 0x134B871: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==29150==    by 0x134B871: execute_ex (zend_vm_execute.h:59750)
==29150==    by 0x10C5C3A: zend_call_function (zend_execute_API.c:820)
==29150==    by 0x10C45B2: _call_user_function_ex (zend_execute_API.c:655)
==29150==    by 0xD8DABB: user_shutdown_function_call (basic_functions.c:5023)
==29150==    by 0x112D486: zend_hash_apply (zend_hash.c:1508)
==29150==  Block was alloc'd at
==29150==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==29150==    by 0x108BA30: __zend_malloc (zend_alloc.c:2829)
==29150==    by 0x1085264: _emalloc_32 (zend_alloc.c:2352)
==29150==    by 0x8D8072: _php_ibase_connect (interbase.c:988)
==29150==    by 0x8D87B3: zif_ibase_connect (interbase.c:1037)
==29150==    by 0x134B871: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==29150==    by 0x134B871: execute_ex (zend_vm_execute.h:59750)
==29150==    by 0x1372DAB: zend_execute (zend_vm_execute.h:63776)
==29150==    by 0x10F6FE0: zend_execute_scripts (zend.c:1502)
==29150==    by 0xFE7CD3: php_execute_script (main.c:2590)
==29150==    by 0x1378C66: do_cli (php_cli.c:1011)
==29150==    by 0x137A6F0: main (php_cli.c:1403)
==29150== 

 

Generated at Thu, 06 Dec 2018 13:01:04 +0000 (3 days ago)

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