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
==2781== Invalid read of size 8
==2781== at 0x7796B4: _php_ibase_event_block (ibase_events.c:108)
==2781== by 0x77B116: zif_ibase_set_event_handler (ibase_events.c:356)
==2781== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2781== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2781== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2781== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2781== by 0xCAA557: php_execute_script (main.c:2494)
==2781== by 0xF45C87: do_cli (php_cli.c:988)
==2781== by 0xF472C4: main (php_cli.c:1364)
==2781== Address 0x14d8a380 is 0 bytes after a block of size 32 alloc'd
==2781== at 0x4C2794E: malloc (vg_replace_malloc.c:270)
==2781== by 0xD2A9DD: _emalloc (zend_alloc.c:2423)
==2781== by 0x77ACE1: zif_ibase_set_event_handler (ibase_events.c:345)
==2781== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2781== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2781== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2781== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2781== by 0xCAA557: php_execute_script (main.c:2494)
==2781== by 0xF45C87: do_cli (php_cli.c:988)
==2781== by 0xF472C4: main (php_cli.c:1364)
==2781==
==2781== Invalid read of size 8
==2781== at 0x779708: _php_ibase_event_block (ibase_events.c:108)
==2781== by 0x77B116: zif_ibase_set_event_handler (ibase_events.c:356)
==2781== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2781== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2781== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2781== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2781== by 0xCAA557: php_execute_script (main.c:2494)
==2781== by 0xF45C87: do_cli (php_cli.c:988)
==2781== by 0xF472C4: main (php_cli.c:1364)
==2781== Address 0x14d8a358 is 8 bytes before a block of size 32 alloc'd
==2781== at 0x4C2794E: malloc (vg_replace_malloc.c:270)
==2781== by 0xD2A9DD: _emalloc (zend_alloc.c:2423)
==2781== by 0x77ACE1: zif_ibase_set_event_handler (ibase_events.c:345)
==2781== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2781== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2781== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2781== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2781== by 0xCAA557: php_execute_script (main.c:2494)
==2781== by 0xF45C87: do_cli (php_cli.c:988)
==2781== by 0xF472C4: main (php_cli.c:1364)
==2781==
==2781== Invalid read of size 8
==2781== at 0x779716: _php_ibase_event_block (ibase_events.c:108)
==2781== by 0x77B116: zif_ibase_set_event_handler (ibase_events.c:356)
==2781== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2781== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2781== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2781== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2781== by 0xCAA557: php_execute_script (main.c:2494)
==2781== by 0xF45C87: do_cli (php_cli.c:988)
==2781== by 0xF472C4: main (php_cli.c:1364)
==2781== Address 0x14d8a350 is 16 bytes before a block of size 32 alloc'd
==2781== at 0x4C2794E: malloc (vg_replace_malloc.c:270)
==2781== by 0xD2A9DD: _emalloc (zend_alloc.c:2423)
==2781== by 0x77ACE1: zif_ibase_set_event_handler (ibase_events.c:345)
==2781== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2781== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2781== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2781== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2781== by 0xCAA557: php_execute_script (main.c:2494)
==2781== by 0xF45C87: do_cli (php_cli.c:988)
==2781== by 0xF472C4: main (php_cli.c:1364)
==2781==
==2781== Invalid read of size 8
==2781== at 0x779724: _php_ibase_event_block (ibase_events.c:108)
==2781== by 0x77B116: zif_ibase_set_event_handler (ibase_events.c:356)
==2781== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2781== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2781== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2781== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2781== by 0xCAA557: php_execute_script (main.c:2494)
==2781== by 0xF45C87: do_cli (php_cli.c:988)
==2781== by 0xF472C4: main (php_cli.c:1364)
==2781== Address 0x14d8a348 is 24 bytes before a block of size 32 alloc'd
==2781== at 0x4C2794E: malloc (vg_replace_malloc.c:270)
==2781== by 0xD2A9DD: _emalloc (zend_alloc.c:2423)
==2781== by 0x77ACE1: zif_ibase_set_event_handler (ibase_events.c:345)
==2781== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2781== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2781== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2781== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2781== by 0xCAA557: php_execute_script (main.c:2494)
==2781== by 0xF45C87: do_cli (php_cli.c:988)
==2781== by 0xF472C4: main (php_cli.c:1364)
==2781==
==2781== Invalid read of size 8
==2781== at 0x779732: _php_ibase_event_block (ibase_events.c:108)
==2781== by 0x77B116: zif_ibase_set_event_handler (ibase_events.c:356)
==2781== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2781== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2781== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2781== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2781== by 0xCAA557: php_execute_script (main.c:2494)
==2781== by 0xF45C87: do_cli (php_cli.c:988)
==2781== by 0xF472C4: main (php_cli.c:1364)
==2781== Address 0x14d8a340 is not stack'd, malloc'd or (recently) free'd
==2781==
==2781== Invalid read of size 8
==2781== at 0x779740: _php_ibase_event_block (ibase_events.c:108)
==2781== by 0x77B116: zif_ibase_set_event_handler (ibase_events.c:356)
==2781== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2781== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2781== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2781== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2781== by 0xCAA557: php_execute_script (main.c:2494)
==2781== by 0xF45C87: do_cli (php_cli.c:988)
==2781== by 0xF472C4: main (php_cli.c:1364)
==2781== Address 0x14d8a338 is not stack'd, malloc'd or (recently) free'd
==2781==
==2781== Invalid read of size 8
==2781== at 0x77974E: _php_ibase_event_block (ibase_events.c:108)
==2781== by 0x77B116: zif_ibase_set_event_handler (ibase_events.c:356)
==2781== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2781== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2781== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2781== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2781== by 0xCAA557: php_execute_script (main.c:2494)
==2781== by 0xF45C87: do_cli (php_cli.c:988)
==2781== by 0xF472C4: main (php_cli.c:1364)
==2781== Address 0x14d8a330 is not stack'd, malloc'd or (recently) free'd
==2781==
==2781== Invalid read of size 8
==2781== at 0x77975C: _php_ibase_event_block (ibase_events.c:108)
==2781== by 0x77B116: zif_ibase_set_event_handler (ibase_events.c:356)
==2781== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2781== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2781== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2781== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2781== by 0xCAA557: php_execute_script (main.c:2494)
==2781== by 0xF45C87: do_cli (php_cli.c:988)
==2781== by 0xF472C4: main (php_cli.c:1364)
==2781== Address 0x14d8a328 is 16 bytes after a block of size 8 alloc'd
==2781== at 0x4C2794E: malloc (vg_replace_malloc.c:270)
==2781== by 0xD2A9DD: _emalloc (zend_alloc.c:2423)
==2781== by 0xD2ACD4: _safe_emalloc (zend_alloc.c:2539)
==2781== by 0x77ACB7: zif_ibase_set_event_handler (ibase_events.c:343)
==2781== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2781== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2781== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2781== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2781== by 0xCAA557: php_execute_script (main.c:2494)
==2781== by 0xF45C87: do_cli (php_cli.c:988)
==2781== by 0xF472C4: main (php_cli.c:1364)
==2781==
==2781== Invalid read of size 8
==2781== at 0x77976A: _php_ibase_event_block (ibase_events.c:108)
==2781== by 0x77B116: zif_ibase_set_event_handler (ibase_events.c:356)
==2781== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2781== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2781== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2781== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2781== by 0xCAA557: php_execute_script (main.c:2494)
==2781== by 0xF45C87: do_cli (php_cli.c:988)
==2781== by 0xF472C4: main (php_cli.c:1364)
==2781== Address 0x14d8a320 is 8 bytes after a block of size 8 alloc'd
==2781== at 0x4C2794E: malloc (vg_replace_malloc.c:270)
==2781== by 0xD2A9DD: _emalloc (zend_alloc.c:2423)
==2781== by 0xD2ACD4: _safe_emalloc (zend_alloc.c:2539)
==2781== by 0x77ACB7: zif_ibase_set_event_handler (ibase_events.c:343)
==2781== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2781== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2781== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2781== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2781== by 0xCAA557: php_execute_script (main.c:2494)
==2781== by 0xF45C87: do_cli (php_cli.c:988)
==2781== by 0xF472C4: main (php_cli.c:1364)
==2781==
==2781== Invalid read of size 8
==2781== at 0x77977F: _php_ibase_event_block (ibase_events.c:108)
==2781== by 0x77B116: zif_ibase_set_event_handler (ibase_events.c:356)
==2781== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2781== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2781== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2781== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2781== by 0xCAA557: php_execute_script (main.c:2494)
==2781== by 0xF45C87: do_cli (php_cli.c:988)
==2781== by 0xF472C4: main (php_cli.c:1364)
==2781== Address 0x14d8a318 is 0 bytes after a block of size 8 alloc'd
==2781== at 0x4C2794E: malloc (vg_replace_malloc.c:270)
==2781== by 0xD2A9DD: _emalloc (zend_alloc.c:2423)
==2781== by 0xD2ACD4: _safe_emalloc (zend_alloc.c:2539)
==2781== by 0x77ACB7: zif_ibase_set_event_handler (ibase_events.c:343)
==2781== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2781== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2781== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2781== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2781== by 0xCAA557: php_execute_script (main.c:2494)
==2781== by 0xF45C87: do_cli (php_cli.c:988)
==2781== by 0xF472C4: main (php_cli.c:1364)
==2781==
Generated at Tue, 21 May 2013 17:04:51 +0000 (24 hours ago)
|