diff options
| author | Xinchen Hui <laruence@php.net> | 2015-01-22 16:38:34 +0800 |
|---|---|---|
| committer | Xinchen Hui <laruence@php.net> | 2015-01-22 16:38:34 +0800 |
| commit | 251745c012a42ca131767d02d06ef373a790e115 (patch) | |
| tree | ae632fe4aa81ea946fb09e38ebc8234d92adaf39 | |
| parent | 88f2321a25d040641cfbe3be1c37c2903e6e0cd9 (diff) | |
| download | php-git-251745c012a42ca131767d02d06ef373a790e115.tar.gz | |
Fixed segfault while running with moodle
| -rw-r--r-- | ext/opcache/Optimizer/block_pass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/opcache/Optimizer/block_pass.c b/ext/opcache/Optimizer/block_pass.c index 79eee8bcc1..bbdddec750 100644 --- a/ext/opcache/Optimizer/block_pass.c +++ b/ext/opcache/Optimizer/block_pass.c @@ -381,7 +381,7 @@ static inline void del_source(zend_code_block *from, zend_code_block *to) return; } - if (to->sources->next == NULL) { + if (!to->protected && to->sources->next == NULL) { /* source to only one block */ zend_code_block *from_block = to->sources->from; |
