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

==18361== Invalid read of size 4
==18361==    at 0x6157A82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==18361==    by 0x6149759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==18361==    by 0x8D97C4: _php_ibase_free_stmt_handle (ibase_query.c:127)
==18361==    by 0x8D9A1F: _php_ibase_free_query (ibase_query.c:169)
==18361==    by 0x8D9B48: php_ibase_free_query_rsrc (ibase_query.c:189)
==18361==    by 0x1131E6C: zend_resource_dtor (zend_list.c:76)
==18361==    by 0x1132891: zend_close_rsrc (zend_list.c:230)
==18361==    by 0x11278D9: zend_hash_reverse_apply (zend_hash.c:1597)
==18361==    by 0x11328DD: zend_close_rsrc_list (zend_list.c:238)
==18361==    by 0x10BA19B: shutdown_executor (zend_execute_API.c:262)
==18361==    by 0x10EDEEA: zend_deactivate (zend.c:1036)
==18361==    by 0xFDE9B1: php_request_shutdown (main.c:1904)
==18361==  Address 0x14f5e5d0 is 0 bytes inside a block of size 32 free'd
==18361==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==18361==    by 0x1083327: _efree (zend_alloc.c:2444)
==18361==    by 0x8D5A2D: _php_ibase_close_link (interbase.c:643)
==18361==    by 0x1131E6C: zend_resource_dtor (zend_list.c:76)
==18361==    by 0x1131F47: zend_list_close (zend_list.c:89)
==18361==    by 0x8D7099: _php_ibase_connect (interbase.c:943)
==18361==    by 0x8D7BC9: zif_ibase_connect (interbase.c:1037)
==18361==    by 0x1343C78: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==18361==    by 0x1343C78: execute_ex (zend_vm_execute.h:59734)
==18361==    by 0x10BEA73: zend_call_function (zend_execute_API.c:819)
==18361==    by 0x10BD3EB: _call_user_function_ex (zend_execute_API.c:654)
==18361==    by 0xD86ADF: user_shutdown_function_call (basic_functions.c:5023)
==18361==    by 0x1126249: zend_hash_apply (zend_hash.c:1506)
==18361==  Block was alloc'd at
==18361==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==18361==    by 0x108488D: __zend_malloc (zend_alloc.c:2829)
==18361==    by 0x107E0C1: _emalloc_32 (zend_alloc.c:2352)
==18361==    by 0x8D7488: _php_ibase_connect (interbase.c:988)
==18361==    by 0x8D7BC9: zif_ibase_connect (interbase.c:1037)
==18361==    by 0x1343C78: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==18361==    by 0x1343C78: execute_ex (zend_vm_execute.h:59734)
==18361==    by 0x136B1B2: zend_execute (zend_vm_execute.h:63760)
==18361==    by 0x10EFDDD: zend_execute_scripts (zend.c:1496)
==18361==    by 0xFE0D46: php_execute_script (main.c:2590)
==18361==    by 0x137106D: do_cli (php_cli.c:1011)
==18361==    by 0x1372AF7: main (php_cli.c:1404)
==18361== 

 

Generated at Fri, 25 May 2018 13:51:30 +0000 (2 days ago)

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