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

==15090== Invalid read of size 4
==15090==    at 0x6157A82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==15090==    by 0x6149759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==15090==    by 0x87EBDB: _php_ibase_free_stmt_handle (ibase_query.c:127)
==15090==    by 0x87EE36: _php_ibase_free_query (ibase_query.c:169)
==15090==    by 0x87EF5F: php_ibase_free_query_rsrc (ibase_query.c:189)
==15090==    by 0x1031AD1: zend_resource_dtor (zend_list.c:76)
==15090==    by 0x10324F6: zend_close_rsrc (zend_list.c:230)
==15090==    by 0x102809E: zend_hash_reverse_apply (zend_hash.c:1598)
==15090==    by 0x1032542: zend_close_rsrc_list (zend_list.c:238)
==15090==    by 0xFBB79B: shutdown_executor (zend_execute_API.c:353)
==15090==    by 0xFEE9AF: zend_deactivate (zend.c:1005)
==15090==    by 0xEE205E: php_request_shutdown (main.c:1902)
==15090==  Address 0x1509c640 is 0 bytes inside a block of size 32 free'd
==15090==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==15090==    by 0xF861B0: _efree (zend_alloc.c:2444)
==15090==    by 0x87AE21: _php_ibase_close_link (interbase.c:643)
==15090==    by 0x1031AD1: zend_resource_dtor (zend_list.c:76)
==15090==    by 0x1031BAC: zend_list_close (zend_list.c:89)
==15090==    by 0x87C4B0: _php_ibase_connect (interbase.c:943)
==15090==    by 0x87CFE0: zif_ibase_connect (interbase.c:1037)
==15090==    by 0x10D1BB6: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==15090==    by 0x10CED11: execute_ex (zend_vm_execute.h:429)
==15090==    by 0xFBF3F6: zend_call_function (zend_execute_API.c:855)
==15090==    by 0xFBD7F3: _call_user_function_ex (zend_execute_API.c:672)
==15090==    by 0xCF319A: user_shutdown_function_call (basic_functions.c:5017)
==15090==  Block was alloc'd at
==15090==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==15090==    by 0xF8778E: __zend_malloc (zend_alloc.c:2838)
==15090==    by 0xF80F4A: _emalloc_32 (zend_alloc.c:2352)
==15090==    by 0x87C89F: _php_ibase_connect (interbase.c:988)
==15090==    by 0x87CFE0: zif_ibase_connect (interbase.c:1037)
==15090==    by 0x10D1BB6: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==15090==    by 0x10CED11: execute_ex (zend_vm_execute.h:429)
==15090==    by 0x10CF901: zend_execute (zend_vm_execute.h:474)
==15090==    by 0xFF0A12: zend_execute_scripts (zend.c:1482)
==15090==    by 0xEE42C2: php_execute_script (main.c:2577)
==15090==    by 0x12388CF: do_cli (php_cli.c:993)
==15090==    by 0x123A368: main (php_cli.c:1381)
==15090== 

 

Generated at Sat, 23 Jun 2018 14:02:28 +0000 (3 hours ago)

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