diff options
Diffstat (limited to 'src')
| -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 | ||
