diff options
| author | jvoisin | 2017-10-26 17:47:01 +0200 |
|---|---|---|
| committer | jvoisin | 2017-10-30 14:31:50 +0100 |
| commit | 7757a9a46fe7379292b1b99df692f90a131e5bc7 (patch) | |
| tree | f749871030cab3153d34c1bef29e0a786189540e /src/sp_execute.c | |
| parent | c44872c883cfb0e801a60a0bf5eb836b35ef2a96 (diff) | |
Fix the segfault?
Diffstat (limited to 'src/sp_execute.c')
| -rw-r--r-- | src/sp_execute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp_execute.c b/src/sp_execute.c index 6345da8..45a4ae6 100644 --- a/src/sp_execute.c +++ b/src/sp_execute.c | |||
| @@ -77,7 +77,7 @@ execute: | |||
| 77 | static int sp_stream_open(const char *filename, zend_file_handle *handle) { | 77 | static int sp_stream_open(const char *filename, zend_file_handle *handle) { |
| 78 | zend_execute_data const * const data = EG(current_execute_data); | 78 | zend_execute_data const * const data = EG(current_execute_data); |
| 79 | 79 | ||
| 80 | if ((NULL == data) || (NULL == data->opline)) { | 80 | if ((NULL == data) || (NULL == data->opline) || (data->func->type != ZEND_USER_FUNCTION)) { |
| 81 | goto end; | 81 | goto end; |
| 82 | } | 82 | } |
| 83 | 83 | ||
