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

==27774== Invalid read of size 4
==27774==    at 0x6157A82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==27774==    by 0x6149759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==27774==    by 0x8DA324: _php_ibase_free_stmt_handle (ibase_query.c:127)
==27774==    by 0x8DA57F: _php_ibase_free_query (ibase_query.c:169)
==27774==    by 0x8DA6A8: php_ibase_free_query_rsrc (ibase_query.c:189)
==27774==    by 0x1138521: zend_resource_dtor (zend_list.c:76)
==27774==    by 0x1138F46: zend_close_rsrc (zend_list.c:230)
==27774==    by 0x112DF8E: zend_hash_reverse_apply (zend_hash.c:1599)
==27774==    by 0x1138F92: zend_close_rsrc_list (zend_list.c:238)
==27774==    by 0x10C07DA: shutdown_executor (zend_execute_API.c:263)
==27774==    by 0x10F4529: zend_deactivate (zend.c:1036)
==27774==    by 0xFE4DCC: php_request_shutdown (main.c:1904)
==27774==  Address 0x15b442c0 is 0 bytes inside a block of size 32 free'd
==27774==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==27774==    by 0x1089958: _efree (zend_alloc.c:2444)
==27774==    by 0x8D658D: _php_ibase_close_link (interbase.c:643)
==27774==    by 0x1138521: zend_resource_dtor (zend_list.c:76)
==27774==    by 0x11385FC: zend_list_close (zend_list.c:89)
==27774==    by 0x8D7BF9: _php_ibase_connect (interbase.c:943)
==27774==    by 0x8D8729: zif_ibase_connect (interbase.c:1037)
==27774==    by 0x134ACE9: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==27774==    by 0x134ACE9: execute_ex (zend_vm_execute.h:59750)
==27774==    by 0x10C50B2: zend_call_function (zend_execute_API.c:820)
==27774==    by 0x10C3A2A: _call_user_function_ex (zend_execute_API.c:655)
==27774==    by 0xD8CF6C: user_shutdown_function_call (basic_functions.c:5023)
==27774==    by 0x112C8FE: zend_hash_apply (zend_hash.c:1508)
==27774==  Block was alloc'd at
==27774==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==27774==    by 0x108AEBE: __zend_malloc (zend_alloc.c:2829)
==27774==    by 0x10846F2: _emalloc_32 (zend_alloc.c:2352)
==27774==    by 0x8D7FE8: _php_ibase_connect (interbase.c:988)
==27774==    by 0x8D8729: zif_ibase_connect (interbase.c:1037)
==27774==    by 0x134ACE9: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==27774==    by 0x134ACE9: execute_ex (zend_vm_execute.h:59750)
==27774==    by 0x1372223: zend_execute (zend_vm_execute.h:63776)
==27774==    by 0x10F6458: zend_execute_scripts (zend.c:1502)
==27774==    by 0xFE7161: php_execute_script (main.c:2590)
==27774==    by 0x13780DE: do_cli (php_cli.c:1011)
==27774==    by 0x1379B68: main (php_cli.c:1404)
==27774== 

 

Generated at Sun, 11 Nov 2018 11:52:49 +0000 (2 days ago)

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