diff options
-rw-r--r-- | Zend/zend_opcode.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Zend/zend_opcode.c b/Zend/zend_opcode.c index b0242c800e..90afc6a985 100644 --- a/Zend/zend_opcode.c +++ b/Zend/zend_opcode.c @@ -352,7 +352,11 @@ ZEND_API zend_bool destroy_op_array(zend_op_array *op_array) efree(op_array->run_time_cache); } - if (!op_array->refcount || --(*op_array->refcount) > 0) { + if (!op_array->refcount) { + return 1; + } + + if (--(*op_array->refcount) > 0) { return 0; } |