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

==12238== Invalid read of size 4
==12238==    at 0x6157A82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==12238==    by 0x6149759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==12238==    by 0x87EC8E: _php_ibase_free_stmt_handle (ibase_query.c:127)
==12238==    by 0x87EEE9: _php_ibase_free_query (ibase_query.c:169)
==12238==    by 0x87F012: php_ibase_free_query_rsrc (ibase_query.c:189)
==12238==    by 0x1031A2C: zend_resource_dtor (zend_list.c:76)
==12238==    by 0x1032451: zend_close_rsrc (zend_list.c:230)
==12238==    by 0x1027FF9: zend_hash_reverse_apply (zend_hash.c:1598)
==12238==    by 0x103249D: zend_close_rsrc_list (zend_list.c:238)
==12238==    by 0xFBB6F6: shutdown_executor (zend_execute_API.c:353)
==12238==    by 0xFEE90A: zend_deactivate (zend.c:1005)
==12238==    by 0xEE1FB9: php_request_shutdown (main.c:1902)
==12238==  Address 0x150ab570 is 0 bytes inside a block of size 32 free'd
==12238==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==12238==    by 0xF8610B: _efree (zend_alloc.c:2444)
==12238==    by 0x87AED4: _php_ibase_close_link (interbase.c:643)
==12238==    by 0x1031A2C: zend_resource_dtor (zend_list.c:76)
==12238==    by 0x1031B07: zend_list_close (zend_list.c:89)
==12238==    by 0x87C563: _php_ibase_connect (interbase.c:943)
==12238==    by 0x87D093: zif_ibase_connect (interbase.c:1037)
==12238==    by 0x10D1EAB: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==12238==    by 0x10CF006: execute_ex (zend_vm_execute.h:429)
==12238==    by 0xFBF351: zend_call_function (zend_execute_API.c:855)
==12238==    by 0xFBD74E: _call_user_function_ex (zend_execute_API.c:672)
==12238==    by 0xCF347D: user_shutdown_function_call (basic_functions.c:5017)
==12238==  Block was alloc'd at
==12238==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==12238==    by 0xF876E9: __zend_malloc (zend_alloc.c:2838)
==12238==    by 0xF80EA5: _emalloc_32 (zend_alloc.c:2352)
==12238==    by 0x87C952: _php_ibase_connect (interbase.c:988)
==12238==    by 0x87D093: zif_ibase_connect (interbase.c:1037)
==12238==    by 0x10D1EAB: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==12238==    by 0x10CF006: execute_ex (zend_vm_execute.h:429)
==12238==    by 0x10CFBF6: zend_execute (zend_vm_execute.h:474)
==12238==    by 0xFF096D: zend_execute_scripts (zend.c:1482)
==12238==    by 0xEE421D: php_execute_script (main.c:2577)
==12238==    by 0x1238CCC: do_cli (php_cli.c:993)
==12238==    by 0x123A765: main (php_cli.c:1381)
==12238== 

 

Generated at Sat, 28 Jul 2018 01:57:30 +0000 (23 days ago)

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