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

==28346== Invalid read of size 4
==28346==    at 0x5D27A82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==28346==    by 0x5D19759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==28346==    by 0x8E239A: _php_ibase_free_stmt_handle (ibase_query.c:127)
==28346==    by 0x8E25ED: _php_ibase_free_query (ibase_query.c:169)
==28346==    by 0x8E2715: php_ibase_free_query_rsrc (ibase_query.c:189)
==28346==    by 0x10FC905: zend_resource_dtor (zend_list.c:76)
==28346==    by 0x10FD30B: zend_close_rsrc (zend_list.c:230)
==28346==    by 0x10F2B71: zend_hash_reverse_apply (zend_hash.c:1606)
==28346==    by 0x10FD355: zend_close_rsrc_list (zend_list.c:238)
==28346==    by 0x1086020: shutdown_executor (zend_execute_API.c:262)
==28346==    by 0x10B8B7E: zend_deactivate (zend.c:1034)
==28346==    by 0xFA9D87: php_request_shutdown (main.c:1907)
==28346==  Address 0x14f51b10 is 0 bytes inside a block of size 32 free'd
==28346==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==28346==    by 0x10519A4: _efree (zend_alloc.c:2428)
==28346==    by 0x8DE768: _php_ibase_close_link (interbase.c:643)
==28346==    by 0x10FC905: zend_resource_dtor (zend_list.c:76)
==28346==    by 0x10FC9DD: zend_list_close (zend_list.c:89)
==28346==    by 0x8DFE24: _php_ibase_connect (interbase.c:946)
==28346==    by 0x8E087B: zif_ibase_connect (interbase.c:1040)
==28346==    by 0x1199C8A: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==28346==    by 0x131518D: execute_ex (zend_vm_execute.h:59663)
==28346==    by 0x108A761: zend_call_function (zend_execute_API.c:817)
==28346==    by 0x10890AC: _call_user_function_ex (zend_execute_API.c:652)
==28346==    by 0xD8983C: user_shutdown_function_call (basic_functions.c:4988)
==28346==  Block was alloc'd at
==28346==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==28346==    by 0x1052F6B: __zend_malloc (zend_alloc.c:2811)
==28346==    by 0x104C759: _emalloc_32 (zend_alloc.c:2336)
==28346==    by 0x8E0256: _php_ibase_connect (interbase.c:991)
==28346==    by 0x8E087B: zif_ibase_connect (interbase.c:1040)
==28346==    by 0x1199C8A: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==28346==    by 0x131518D: execute_ex (zend_vm_execute.h:59663)
==28346==    by 0x1315805: zend_execute (zend_vm_execute.h:63700)
==28346==    by 0x10BAC6B: zend_execute_scripts (zend.c:1494)
==28346==    by 0xFAC08D: php_execute_script (main.c:2593)
==28346==    by 0x131B3A1: do_cli (php_cli.c:1011)
==28346==    by 0x131CD55: main (php_cli.c:1404)
==28346== 

 

Generated at Sun, 24 Sep 2017 15:32:56 +0000 (39 hours ago)

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