summaryrefslogtreecommitdiff
path: root/ext/opcache/zend_persist.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2015-02-20 14:59:30 +0300
committerDmitry Stogov <dmitry@zend.com>2015-02-20 14:59:30 +0300
commit5f76eed14e7981a5e4361364dd0fdd2bf9d531a8 (patch)
treebe7c826d5b28f65f77500c5027e3d68653891f18 /ext/opcache/zend_persist.c
parent04836f0e55f7155ce00abfb4a295fd981df9f81e (diff)
downloadphp-git-5f76eed14e7981a5e4361364dd0fdd2bf9d531a8.tar.gz
don't count op_arrays stored in opcache SHM
Diffstat (limited to 'ext/opcache/zend_persist.c')
-rw-r--r--ext/opcache/zend_persist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/opcache/zend_persist.c b/ext/opcache/zend_persist.c
index 634dbda4f5..5fb5ab2d36 100644
--- a/ext/opcache/zend_persist.c
+++ b/ext/opcache/zend_persist.c
@@ -297,7 +297,7 @@ static void zend_persist_op_array_ex(zend_op_array *op_array, zend_persistent_sc
return;
}
- if (--(*op_array->refcount) == 0) {
+ if (op_array->refcount && --(*op_array->refcount) == 0) {
efree(op_array->refcount);
}
op_array->refcount = NULL;