From b6e5bc4557cca3abbcfd179e7143ea54b9844e49 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 8 Jan 2018 15:15:02 +0100 Subject: Hopefully fix a crash This should close #115--- src/sp_disabled_functions.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/sp_disabled_functions.c b/src/sp_disabled_functions.c index d59dd93..8e96085 100644 --- a/src/sp_disabled_functions.c +++ b/src/sp_disabled_functions.c @@ -7,6 +7,9 @@ ZEND_DECLARE_MODULE_GLOBALS(snuffleupagus) static char* get_complete_function_path( zend_execute_data const* const execute_data) { + if (zend_is_executing() && !EG(current_execute_data)->func) { + return NULL; + } if (!(execute_data->func->common.function_name)) { return NULL; } -- cgit v1.3