Skip to content

Instantly share code, notes, and snippets.

@cmb69

cmb69/backtrace Secret

Created Oct 8, 2021
Embed
What would you like to do?
Ausgelöster Ausnahmefehler: Lesezugriffsverletzung
"**set**" war "nullptr".
> php_xdebug.dll!xdebug_set_in_ex(_xdebug_set * set, unsigned int position, int noisy) Zeile 66 C
php_xdebug.dll!xdebug_isset_opcode_handler(int opcode) Zeile 605 C
php_xdebug.dll!xdebug_call_original_opcode_handler_if_set(int opcode, _zend_execute_data * execute_data) Zeile 674 C
php_xdebug.dll!xdebug_opcode_multi_handler(_zend_execute_data * execute_data) Zeile 629 C
php8ts_debug.dll!ZEND_USER_OPCODE_SPEC_HANDLER(_zend_execute_data * execute_data) Zeile 2993 C
php8ts_debug.dll!execute_ex(_zend_execute_data * ex) Zeile 53978 C
php_xdebug.dll!xdebug_execute_ex(_zend_execute_data * execute_data) Zeile 783 C
php8ts_debug.dll!zend_execute(_zend_op_array * op_array, _zval_struct * return_value) Zeile 58520 C
php8ts_debug.dll!zend_execute_scripts(int type, _zval_struct * retval, int file_count, ...) Zeile 1681 C
php8ts_debug.dll!php_execute_script(_zend_file_handle * primary_file) Zeile 2524 C
php8apache2_4.dll!php_handler(request_rec * r) Zeile 705 C
src/lib/lib.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lib/lib.c b/src/lib/lib.c
index 8e90e65d..b59d3d8f 100644
--- a/src/lib/lib.c
+++ b/src/lib/lib.c
@@ -32,7 +32,8 @@ void xdebug_init_library_globals(xdebug_library_globals_t *xg)
xg->log_file = 0;
xg->active_execute_data = NULL;
- xg->opcode_handlers_set = NULL;
+ xg->opcode_handlers_set = xdebug_set_create(256);
+
memset(xg->original_opcode_handlers, 0, sizeof(xg->original_opcode_handlers));
memset(xg->opcode_multi_handlers, 0, sizeof(xg->opcode_multi_handlers));
@@ -54,7 +55,6 @@ void xdebug_library_zend_shutdown(void)
void xdebug_library_minit(void)
{
- XG_LIB(opcode_handlers_set) = xdebug_set_create(256);
xdebug_set_opcode_multi_handler(ZEND_ASSIGN);
xdebug_set_opcode_multi_handler(ZEND_ASSIGN_DIM);
xdebug_set_opcode_multi_handler(ZEND_ASSIGN_OBJ);
xdebug.mode=debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment