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_num_params_001.phpt ('ibase_num_params(): 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_num_params($rs));
9:
10:
$rs ibase_prepare('SELECT * FROM test1 WHERE 1 = ? AND 2 = ?');
11:
var_dump(ibase_num_params());
12:
13:
$rs ibase_prepare('SELECT * FROM test1 WHERE 1 = ? AND 2 = ? AND 3 = :x');
14:
var_dump(ibase_num_params($rs));
15:
16:
17:
?>
18:

Report

==15184== Invalid read of size 4
==15184==    at 0x5F3DA82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==15184==    by 0x5F2F759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==15184==    by 0x8E4692: _php_ibase_free_stmt_handle (ibase_query.c:127)
==15184==    by 0x8E48E5: _php_ibase_free_query (ibase_query.c:169)
==15184==    by 0x8E4A0D: php_ibase_free_query_rsrc (ibase_query.c:189)
==15184==    by 0x1123E61: zend_resource_dtor (zend_list.c:76)
==15184==    by 0x1124867: zend_close_rsrc (zend_list.c:230)
==15184==    by 0x111A024: zend_hash_reverse_apply (zend_hash.c:1597)
==15184==    by 0x11248B1: zend_close_rsrc_list (zend_list.c:238)
==15184==    by 0x10AD394: shutdown_executor (zend_execute_API.c:262)
==15184==    by 0x10E02AF: zend_deactivate (zend.c:1036)
==15184==    by 0xFD19C6: php_request_shutdown (main.c:1904)
==15184==  Address 0x14f42640 is 0 bytes inside a block of size 32 free'd
==15184==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==15184==    by 0x1078CCD: _efree (zend_alloc.c:2444)
==15184==    by 0x8E0A60: _php_ibase_close_link (interbase.c:643)
==15184==    by 0x1123E61: zend_resource_dtor (zend_list.c:76)
==15184==    by 0x1123F39: zend_list_close (zend_list.c:89)
==15184==    by 0x8E211C: _php_ibase_connect (interbase.c:943)
==15184==    by 0x8E2B73: zif_ibase_connect (interbase.c:1037)
==15184==    by 0x11C13C6: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==15184==    by 0x133D201: execute_ex (zend_vm_execute.h:59723)
==15184==    by 0x10B1AEC: zend_call_function (zend_execute_API.c:819)
==15184==    by 0x10B0437: _call_user_function_ex (zend_execute_API.c:654)
==15184==    by 0xD8463D: user_shutdown_function_call (basic_functions.c:5023)
==15184==  Block was alloc'd at
==15184==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==15184==    by 0x107A2AF: __zend_malloc (zend_alloc.c:2829)
==15184==    by 0x1073A82: _emalloc_32 (zend_alloc.c:2352)
==15184==    by 0x8E254E: _php_ibase_connect (interbase.c:988)
==15184==    by 0x8E2B73: zif_ibase_connect (interbase.c:1037)
==15184==    by 0x11C13C6: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==15184==    by 0x133D201: execute_ex (zend_vm_execute.h:59723)
==15184==    by 0x133D879: zend_execute (zend_vm_execute.h:63760)
==15184==    by 0x10E238E: zend_execute_scripts (zend.c:1496)
==15184==    by 0xFD3CCC: php_execute_script (main.c:2590)
==15184==    by 0x1343415: do_cli (php_cli.c:1011)
==15184==    by 0x1344DC9: main (php_cli.c:1404)
==15184== 

 

Generated at Sun, 18 Feb 2018 15:10:37 +0000 (46 hours ago)

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