PHP  
 PHP_HEAD
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

==16116== Invalid read of size 4
==16116==    at 0x6149A82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==16116==    by 0x613B759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==16116==    by 0x91155C: _php_ibase_free_stmt_handle (ibase_query.c:127)
==16116==    by 0x9117B7: _php_ibase_free_query (ibase_query.c:169)
==16116==    by 0x9118E0: php_ibase_free_query_rsrc (ibase_query.c:189)
==16116==    by 0x1179F36: zend_resource_dtor (zend_list.c:76)
==16116==    by 0x117A95D: zend_close_rsrc (zend_list.c:230)
==16116==    by 0x116F80F: zend_hash_reverse_apply (zend_hash.c:1700)
==16116==    by 0x117A9A9: zend_close_rsrc_list (zend_list.c:238)
==16116==    by 0x110215A: shutdown_executor (zend_execute_API.c:262)
==16116==    by 0x1137FC8: zend_deactivate (zend.c:1106)
==16116==    by 0x10266CA: php_request_shutdown (main.c:1765)
==16116==  Address 0x14ee8d80 is 0 bytes inside a block of size 32 free'd
==16116==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==16116==    by 0x10C8A2E: _efree (zend_alloc.c:2494)
==16116==    by 0x90D8F3: _php_ibase_close_link (interbase.c:643)
==16116==    by 0x1179F36: zend_resource_dtor (zend_list.c:76)
==16116==    by 0x117A019: zend_list_close (zend_list.c:89)
==16116==    by 0x90EF5F: _php_ibase_connect (interbase.c:946)
==16116==    by 0x90F926: zif_ibase_connect (interbase.c:1035)
==16116==    by 0x135A545: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:688)
==16116==    by 0x135A545: execute_ex (zend_vm_execute.h:54803)
==16116==    by 0x1106547: zend_call_function (zend_execute_API.c:792)
==16116==    by 0x1104EB9: _call_user_function_ex (zend_execute_API.c:628)
==16116==    by 0xDE1EE8: user_shutdown_function_call (basic_functions.c:5051)
==16116==    by 0x116E2EE: zend_hash_apply (zend_hash.c:1617)
==16116==  Block was alloc'd at
==16116==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==16116==    by 0x10CC64D: __zend_malloc (zend_alloc.c:2886)
==16116==    by 0x10C37C8: _emalloc_32 (zend_alloc.c:2407)
==16116==    by 0x90F36A: _php_ibase_connect (interbase.c:991)
==16116==    by 0x90F926: zif_ibase_connect (interbase.c:1035)
==16116==    by 0x135A545: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:688)
==16116==    by 0x135A545: execute_ex (zend_vm_execute.h:54803)
==16116==    by 0x1381EB3: zend_execute (zend_vm_execute.h:59987)
==16116==    by 0x1139F02: zend_execute_scripts (zend.c:1566)
==16116==    by 0x1028AD1: php_execute_script (main.c:2467)
==16116==    by 0x1387A92: do_cli (php_cli.c:1011)
==16116==    by 0x1389550: main (php_cli.c:1404)
==16116== 

 

Generated at Thu, 19 Apr 2018 02:25:01 +0000 (4 days ago)

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