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

==15898== Invalid read of size 4
==15898==    at 0x5F3DA82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==15898==    by 0x5F2F759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==15898==    by 0x8E17C2: _php_ibase_free_stmt_handle (ibase_query.c:127)
==15898==    by 0x8E1A15: _php_ibase_free_query (ibase_query.c:169)
==15898==    by 0x8E1B3D: php_ibase_free_query_rsrc (ibase_query.c:189)
==15898==    by 0x1120A31: zend_resource_dtor (zend_list.c:76)
==15898==    by 0x1121437: zend_close_rsrc (zend_list.c:230)
==15898==    by 0x1116BF4: zend_hash_reverse_apply (zend_hash.c:1597)
==15898==    by 0x1121481: zend_close_rsrc_list (zend_list.c:238)
==15898==    by 0x10AA8BC: shutdown_executor (zend_execute_API.c:262)
==15898==    by 0x10DCF4E: zend_deactivate (zend.c:1034)
==15898==    by 0xFCE9DF: php_request_shutdown (main.c:1880)
==15898==  Address 0x14f4ed10 is 0 bytes inside a block of size 32 free'd
==15898==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==15898==    by 0x1076214: _efree (zend_alloc.c:2428)
==15898==    by 0x8DDB90: _php_ibase_close_link (interbase.c:643)
==15898==    by 0x1120A31: zend_resource_dtor (zend_list.c:76)
==15898==    by 0x1120B09: zend_list_close (zend_list.c:89)
==15898==    by 0x8DF24C: _php_ibase_connect (interbase.c:946)
==15898==    by 0x8DFCA3: zif_ibase_connect (interbase.c:1040)
==15898==    by 0x11BD9D3: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==15898==    by 0x1339863: execute_ex (zend_vm_execute.h:59726)
==15898==    by 0x10AEFFD: zend_call_function (zend_execute_API.c:817)
==15898==    by 0x10AD948: _call_user_function_ex (zend_execute_API.c:652)
==15898==    by 0xD81841: user_shutdown_function_call (basic_functions.c:4988)
==15898==  Block was alloc'd at
==15898==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==15898==    by 0x10777DB: __zend_malloc (zend_alloc.c:2811)
==15898==    by 0x1070FC9: _emalloc_32 (zend_alloc.c:2336)
==15898==    by 0x8DF67E: _php_ibase_connect (interbase.c:991)
==15898==    by 0x8DFCA3: zif_ibase_connect (interbase.c:1040)
==15898==    by 0x11BD9D3: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==15898==    by 0x1339863: execute_ex (zend_vm_execute.h:59726)
==15898==    by 0x1339EDB: zend_execute (zend_vm_execute.h:63763)
==15898==    by 0x10DF02D: zend_execute_scripts (zend.c:1494)
==15898==    by 0xFD0CE5: php_execute_script (main.c:2566)
==15898==    by 0x133FA79: do_cli (php_cli.c:1011)
==15898==    by 0x134142D: main (php_cli.c:1404)
==15898== 

 

Generated at Sat, 09 Sep 2017 03:10:54 +0000 (13 days ago)

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