diff options
| author | jvoisin | 2018-01-08 15:15:02 +0100 |
|---|---|---|
| committer | GitHub | 2018-01-08 15:15:02 +0100 |
| commit | b6e5bc4557cca3abbcfd179e7143ea54b9844e49 (patch) | |
| tree | 3ebdde037a6eb0d024a48a2bef4a542e8bc312bd /src | |
| parent | efcb21ad9788599955f8ca43cfcd21c0403234f5 (diff) | |
Hopefully fix a crash
This should close #115
Diffstat (limited to 'src')
| -rw-r--r-- | src/sp_disabled_functions.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) | |||
| 7 | 7 | ||
| 8 | static char* get_complete_function_path( | 8 | static char* get_complete_function_path( |
| 9 | zend_execute_data const* const execute_data) { | 9 | zend_execute_data const* const execute_data) { |
| 10 | if (zend_is_executing() && !EG(current_execute_data)->func) { | ||
| 11 | return NULL; | ||
| 12 | } | ||
| 10 | if (!(execute_data->func->common.function_name)) { | 13 | if (!(execute_data->func->common.function_name)) { |
| 11 | return NULL; | 14 | return NULL; |
| 12 | } | 15 | } |
