summaryrefslogtreecommitdiff
path: root/Zend/zend_execute.h
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_execute.h')
-rw-r--r--Zend/zend_execute.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/Zend/zend_execute.h b/Zend/zend_execute.h
index 6f1fc97893..6170607a4f 100644
--- a/Zend/zend_execute.h
+++ b/Zend/zend_execute.h
@@ -72,11 +72,7 @@ ZEND_API int zend_verify_arg_error(int error_type, const zend_function *zf, zend
static zend_always_inline void i_zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC TSRMLS_DC)
{
-//??? IS_CONSTANT_TYPE_MASK used only for some rare cases
- zend_uchar type = Z_TYPE_P(zval_ptr) & IS_CONSTANT_TYPE_MASK;
-
- if (IS_REFCOUNTED(type) &&
- (type != IS_STRING || !IS_INTERNED(Z_STR_P(zval_ptr)))) {
+ if (Z_REFCOUNTED_P(zval_ptr)) {
if (!Z_DELREF_P(zval_ptr)) {
ZEND_ASSERT(zval_ptr != &EG(uninitialized_zval));
_zval_dtor_func_for_ptr(Z_COUNTED_P(zval_ptr) ZEND_FILE_LINE_CC);