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_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

==786== Invalid read of size 4
==786==    at 0x5F2FA82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==786==    by 0x5F21759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==786==    by 0x91F372: _php_ibase_free_stmt_handle (ibase_query.c:127)
==786==    by 0x91F5C5: _php_ibase_free_query (ibase_query.c:169)
==786==    by 0x91F6ED: php_ibase_free_query_rsrc (ibase_query.c:189)
==786==    by 0x114C9FF: zend_resource_dtor (zend_list.c:76)
==786==    by 0x114D407: zend_close_rsrc (zend_list.c:230)
==786==    by 0x11420CA: zend_hash_reverse_apply (zend_hash.c:1665)
==786==    by 0x114D451: zend_close_rsrc_list (zend_list.c:238)
==786==    by 0x10D2860: shutdown_executor (zend_execute_API.c:262)
==786==    by 0x1107D39: zend_deactivate (zend.c:1070)
==786==    by 0xFF0777: php_request_shutdown (main.c:1765)
==786==  Address 0x14ef6d50 is 0 bytes inside a block of size 32 free'd
==786==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==786==    by 0x109B9A1: _efree (zend_alloc.c:2494)
==786==    by 0x91B82E: _php_ibase_close_link (interbase.c:643)
==786==    by 0x114C9FF: zend_resource_dtor (zend_list.c:76)
==786==    by 0x114CADF: zend_list_close (zend_list.c:89)
==786==    by 0x91CEEA: _php_ibase_connect (interbase.c:946)
==786==    by 0x91D815: zif_ibase_connect (interbase.c:1035)
==786==    by 0x11EFC24: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:626)
==786==    by 0x134F0D0: execute_ex (zend_vm_execute.h:57400)
==786==    by 0x10D6B84: zend_call_function (zend_execute_API.c:792)
==786==    by 0x10D547C: _call_user_function_ex (zend_execute_API.c:628)
==786==    by 0xDCB53B: user_shutdown_function_call (basic_functions.c:5050)
==786==  Block was alloc'd at
==786==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==786==    by 0x109F70C: __zend_malloc (zend_alloc.c:2886)
==786==    by 0x1096756: _emalloc_32 (zend_alloc.c:2407)
==786==    by 0x91D338: _php_ibase_connect (interbase.c:991)
==786==    by 0x91D815: zif_ibase_connect (interbase.c:1035)
==786==    by 0x11EFC24: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:626)
==786==    by 0x134F0D0: execute_ex (zend_vm_execute.h:57400)
==786==    by 0x134F723: zend_execute (zend_vm_execute.h:61323)
==786==    by 0x1109E59: zend_execute_scripts (zend.c:1530)
==786==    by 0xFF2AF5: php_execute_script (main.c:2467)
==786==    by 0x1354F24: do_cli (php_cli.c:1011)
==786==    by 0x1356915: main (php_cli.c:1404)
==786== 

 

Generated at Fri, 16 Feb 2018 06:57:12 +0000 (5 days ago)

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