PHP  
 PHP_5_6
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Valgrind Report for ext/interbase/tests/bug46247.phpt ('Bug #46247 (ibase_set_event_handler() is allowing to pass callback without event)')

Script

1: <?php
2:
3:
require("interbase.inc");
4:
5:
$db ibase_connect($test_base);
6:
7: function 
test() { }
8:
9:
ibase_set_event_handler();
10:
11:
ibase_set_event_handler('test'1);
12:
ibase_set_event_handler($db'test'1);
13:
ibase_set_event_handler(NULL'test'1);
14:
15:
16:
ibase_set_event_handler('foo'1);
17:
ibase_set_event_handler($db'foo'1);
18:
ibase_set_event_handler(NULL'foo'1);
19:
20:
?>
21:

Report

==8234== Invalid read of size 8
==8234==    at 0x83FEA9: _php_ibase_event_block (ibase_events.c:106)
==8234==    by 0x841971: zif_ibase_set_event_handler (ibase_events.c:354)
==8234==    by 0xF2DCEC: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==8234==    by 0xF39882: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==8234==    by 0xF2B772: execute_ex (zend_vm_execute.h:363)
==8234==    by 0xF2C315: zend_execute (zend_vm_execute.h:388)
==8234==    by 0xEC049B: zend_execute_scripts (zend.c:1341)
==8234==    by 0xDDE027: php_execute_script (main.c:2597)
==8234==    by 0x10789F2: do_cli (php_cli.c:994)
==8234==    by 0x107A19F: main (php_cli.c:1378)
==8234==  Address 0x153f55a0 is 0 bytes after a block of size 32 alloc'd
==8234==    at 0x4C2824A: malloc (vg_replace_malloc.c:296)
==8234==    by 0xE6A104: _emalloc (zend_alloc.c:2427)
==8234==    by 0x84153C: zif_ibase_set_event_handler (ibase_events.c:343)
==8234==    by 0xF2DCEC: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==8234==    by 0xF39882: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==8234==    by 0xF2B772: execute_ex (zend_vm_execute.h:363)
==8234==    by 0xF2C315: zend_execute (zend_vm_execute.h:388)
==8234==    by 0xEC049B: zend_execute_scripts (zend.c:1341)
==8234==    by 0xDDE027: php_execute_script (main.c:2597)
==8234==    by 0x10789F2: do_cli (php_cli.c:994)
==8234==    by 0x107A19F: main (php_cli.c:1378)
==8234== 
==8234== Invalid read of size 8
==8234==    at 0x83FEFD: _php_ibase_event_block (ibase_events.c:106)
==8234==    by 0x841971: zif_ibase_set_event_handler (ibase_events.c:354)
==8234==    by 0xF2DCEC: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==8234==    by 0xF39882: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==8234==    by 0xF2B772: execute_ex (zend_vm_execute.h:363)
==8234==    by 0xF2C315: zend_execute (zend_vm_execute.h:388)
==8234==    by 0xEC049B: zend_execute_scripts (zend.c:1341)
==8234==    by 0xDDE027: php_execute_script (main.c:2597)
==8234==    by 0x10789F2: do_cli (php_cli.c:994)
==8234==    by 0x107A19F: main (php_cli.c:1378)
==8234==  Address 0x153f5578 is 8 bytes before a block of size 32 alloc'd
==8234==    at 0x4C2824A: malloc (vg_replace_malloc.c:296)
==8234==    by 0xE6A104: _emalloc (zend_alloc.c:2427)
==8234==    by 0x84153C: zif_ibase_set_event_handler (ibase_events.c:343)
==8234==    by 0xF2DCEC: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==8234==    by 0xF39882: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==8234==    by 0xF2B772: execute_ex (zend_vm_execute.h:363)
==8234==    by 0xF2C315: zend_execute (zend_vm_execute.h:388)
==8234==    by 0xEC049B: zend_execute_scripts (zend.c:1341)
==8234==    by 0xDDE027: php_execute_script (main.c:2597)
==8234==    by 0x10789F2: do_cli (php_cli.c:994)
==8234==    by 0x107A19F: main (php_cli.c:1378)
==8234== 
==8234== Invalid read of size 8
==8234==    at 0x83FF0B: _php_ibase_event_block (ibase_events.c:106)
==8234==    by 0x841971: zif_ibase_set_event_handler (ibase_events.c:354)
==8234==    by 0xF2DCEC: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==8234==    by 0xF39882: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==8234==    by 0xF2B772: execute_ex (zend_vm_execute.h:363)
==8234==    by 0xF2C315: zend_execute (zend_vm_execute.h:388)
==8234==    by 0xEC049B: zend_execute_scripts (zend.c:1341)
==8234==    by 0xDDE027: php_execute_script (main.c:2597)
==8234==    by 0x10789F2: do_cli (php_cli.c:994)
==8234==    by 0x107A19F: main (php_cli.c:1378)
==8234==  Address 0x153f5570 is 16 bytes before a block of size 32 alloc'd
==8234==    at 0x4C2824A: malloc (vg_replace_malloc.c:296)
==8234==    by 0xE6A104: _emalloc (zend_alloc.c:2427)
==8234==    by 0x84153C: zif_ibase_set_event_handler (ibase_events.c:343)
==8234==    by 0xF2DCEC: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==8234==    by 0xF39882: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==8234==    by 0xF2B772: execute_ex (zend_vm_execute.h:363)
==8234==    by 0xF2C315: zend_execute (zend_vm_execute.h:388)
==8234==    by 0xEC049B: zend_execute_scripts (zend.c:1341)
==8234==    by 0xDDE027: php_execute_script (main.c:2597)
==8234==    by 0x10789F2: do_cli (php_cli.c:994)
==8234==    by 0x107A19F: main (php_cli.c:1378)
==8234== 
==8234== Invalid read of size 8
==8234==    at 0x83FF19: _php_ibase_event_block (ibase_events.c:106)
==8234==    by 0x841971: zif_ibase_set_event_handler (ibase_events.c:354)
==8234==    by 0xF2DCEC: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==8234==    by 0xF39882: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==8234==    by 0xF2B772: execute_ex (zend_vm_execute.h:363)
==8234==    by 0xF2C315: zend_execute (zend_vm_execute.h:388)
==8234==    by 0xEC049B: zend_execute_scripts (zend.c:1341)
==8234==    by 0xDDE027: php_execute_script (main.c:2597)
==8234==    by 0x10789F2: do_cli (php_cli.c:994)
==8234==    by 0x107A19F: main (php_cli.c:1378)
==8234==  Address 0x153f5568 is 24 bytes before a block of size 32 alloc'd
==8234==    at 0x4C2824A: malloc (vg_replace_malloc.c:296)
==8234==    by 0xE6A104: _emalloc (zend_alloc.c:2427)
==8234==    by 0x84153C: zif_ibase_set_event_handler (ibase_events.c:343)
==8234==    by 0xF2DCEC: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==8234==    by 0xF39882: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==8234==    by 0xF2B772: execute_ex (zend_vm_execute.h:363)
==8234==    by 0xF2C315: zend_execute (zend_vm_execute.h:388)
==8234==    by 0xEC049B: zend_execute_scripts (zend.c:1341)
==8234==    by 0xDDE027: php_execute_script (main.c:2597)
==8234==    by 0x10789F2: do_cli (php_cli.c:994)
==8234==    by 0x107A19F: main (php_cli.c:1378)
==8234== 
==8234== Invalid read of size 8
==8234==    at 0x83FF27: _php_ibase_event_block (ibase_events.c:106)
==8234==    by 0x841971: zif_ibase_set_event_handler (ibase_events.c:354)
==8234==    by 0xF2DCEC: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==8234==    by 0xF39882: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==8234==    by 0xF2B772: execute_ex (zend_vm_execute.h:363)
==8234==    by 0xF2C315: zend_execute (zend_vm_execute.h:388)
==8234==    by 0xEC049B: zend_execute_scripts (zend.c:1341)
==8234==    by 0xDDE027: php_execute_script (main.c:2597)
==8234==    by 0x10789F2: do_cli (php_cli.c:994)
==8234==    by 0x107A19F: main (php_cli.c:1378)
==8234==  Address 0x153f5560 is 32 bytes before a block of size 32 in arena "client"
==8234== 
==8234== Invalid read of size 8
==8234==    at 0x83FF35: _php_ibase_event_block (ibase_events.c:106)
==8234==    by 0x841971: zif_ibase_set_event_handler (ibase_events.c:354)
==8234==    by 0xF2DCEC: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==8234==    by 0xF39882: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==8234==    by 0xF2B772: execute_ex (zend_vm_execute.h:363)
==8234==    by 0xF2C315: zend_execute (zend_vm_execute.h:388)
==8234==    by 0xEC049B: zend_execute_scripts (zend.c:1341)
==8234==    by 0xDDE027: php_execute_script (main.c:2597)
==8234==    by 0x10789F2: do_cli (php_cli.c:994)
==8234==    by 0x107A19F: main (php_cli.c:1378)
==8234==  Address 0x153f5558 is 24 bytes after a block of size 16 in arena "client"
==8234== 
==8234== Invalid read of size 8
==8234==    at 0x83FF43: _php_ibase_event_block (ibase_events.c:106)
==8234==    by 0x841971: zif_ibase_set_event_handler (ibase_events.c:354)
==8234==    by 0xF2DCEC: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==8234==    by 0xF39882: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==8234==    by 0xF2B772: execute_ex (zend_vm_execute.h:363)
==8234==    by 0xF2C315: zend_execute (zend_vm_execute.h:388)
==8234==    by 0xEC049B: zend_execute_scripts (zend.c:1341)
==8234==    by 0xDDE027: php_execute_script (main.c:2597)
==8234==    by 0x10789F2: do_cli (php_cli.c:994)
==8234==    by 0x107A19F: main (php_cli.c:1378)
==8234==  Address 0x153f5550 is 16 bytes after a block of size 16 in arena "client"
==8234== 
==8234== Invalid read of size 8
==8234==    at 0x83FF51: _php_ibase_event_block (ibase_events.c:106)
==8234==    by 0x841971: zif_ibase_set_event_handler (ibase_events.c:354)
==8234==    by 0xF2DCEC: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==8234==    by 0xF39882: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==8234==    by 0xF2B772: execute_ex (zend_vm_execute.h:363)
==8234==    by 0xF2C315: zend_execute (zend_vm_execute.h:388)
==8234==    by 0xEC049B: zend_execute_scripts (zend.c:1341)
==8234==    by 0xDDE027: php_execute_script (main.c:2597)
==8234==    by 0x10789F2: do_cli (php_cli.c:994)
==8234==    by 0x107A19F: main (php_cli.c:1378)
==8234==  Address 0x153f5548 is 16 bytes after a block of size 8 alloc'd
==8234==    at 0x4C2824A: malloc (vg_replace_malloc.c:296)
==8234==    by 0xE6A104: _emalloc (zend_alloc.c:2427)
==8234==    by 0xE6A3FE: _safe_emalloc (zend_alloc.c:2583)
==8234==    by 0x841512: zif_ibase_set_event_handler (ibase_events.c:341)
==8234==    by 0xF2DCEC: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==8234==    by 0xF39882: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==8234==    by 0xF2B772: execute_ex (zend_vm_execute.h:363)
==8234==    by 0xF2C315: zend_execute (zend_vm_execute.h:388)
==8234==    by 0xEC049B: zend_execute_scripts (zend.c:1341)
==8234==    by 0xDDE027: php_execute_script (main.c:2597)
==8234==    by 0x10789F2: do_cli (php_cli.c:994)
==8234==    by 0x107A19F: main (php_cli.c:1378)
==8234== 
==8234== Invalid read of size 8
==8234==    at 0x83FF5F: _php_ibase_event_block (ibase_events.c:106)
==8234==    by 0x841971: zif_ibase_set_event_handler (ibase_events.c:354)
==8234==    by 0xF2DCEC: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==8234==    by 0xF39882: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==8234==    by 0xF2B772: execute_ex (zend_vm_execute.h:363)
==8234==    by 0xF2C315: zend_execute (zend_vm_execute.h:388)
==8234==    by 0xEC049B: zend_execute_scripts (zend.c:1341)
==8234==    by 0xDDE027: php_execute_script (main.c:2597)
==8234==    by 0x10789F2: do_cli (php_cli.c:994)
==8234==    by 0x107A19F: main (php_cli.c:1378)
==8234==  Address 0x153f5540 is 8 bytes after a block of size 8 alloc'd
==8234==    at 0x4C2824A: malloc (vg_replace_malloc.c:296)
==8234==    by 0xE6A104: _emalloc (zend_alloc.c:2427)
==8234==    by 0xE6A3FE: _safe_emalloc (zend_alloc.c:2583)
==8234==    by 0x841512: zif_ibase_set_event_handler (ibase_events.c:341)
==8234==    by 0xF2DCEC: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==8234==    by 0xF39882: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==8234==    by 0xF2B772: execute_ex (zend_vm_execute.h:363)
==8234==    by 0xF2C315: zend_execute (zend_vm_execute.h:388)
==8234==    by 0xEC049B: zend_execute_scripts (zend.c:1341)
==8234==    by 0xDDE027: php_execute_script (main.c:2597)
==8234==    by 0x10789F2: do_cli (php_cli.c:994)
==8234==    by 0x107A19F: main (php_cli.c:1378)
==8234== 
==8234== Invalid read of size 8
==8234==    at 0x83FF74: _php_ibase_event_block (ibase_events.c:106)
==8234==    by 0x841971: zif_ibase_set_event_handler (ibase_events.c:354)
==8234==    by 0xF2DCEC: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==8234==    by 0xF39882: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==8234==    by 0xF2B772: execute_ex (zend_vm_execute.h:363)
==8234==    by 0xF2C315: zend_execute (zend_vm_execute.h:388)
==8234==    by 0xEC049B: zend_execute_scripts (zend.c:1341)
==8234==    by 0xDDE027: php_execute_script (main.c:2597)
==8234==    by 0x10789F2: do_cli (php_cli.c:994)
==8234==    by 0x107A19F: main (php_cli.c:1378)
==8234==  Address 0x153f5538 is 0 bytes after a block of size 8 alloc'd
==8234==    at 0x4C2824A: malloc (vg_replace_malloc.c:296)
==8234==    by 0xE6A104: _emalloc (zend_alloc.c:2427)
==8234==    by 0xE6A3FE: _safe_emalloc (zend_alloc.c:2583)
==8234==    by 0x841512: zif_ibase_set_event_handler (ibase_events.c:341)
==8234==    by 0xF2DCEC: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==8234==    by 0xF39882: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==8234==    by 0xF2B772: execute_ex (zend_vm_execute.h:363)
==8234==    by 0xF2C315: zend_execute (zend_vm_execute.h:388)
==8234==    by 0xEC049B: zend_execute_scripts (zend.c:1341)
==8234==    by 0xDDE027: php_execute_script (main.c:2597)
==8234==    by 0x10789F2: do_cli (php_cli.c:994)
==8234==    by 0x107A19F: main (php_cli.c:1378)
==8234== 

 

Generated at Tue, 18 Aug 2015 21:39:38 +0000 (11 days ago)

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