summaryrefslogtreecommitdiff
path: root/Zend/zend_builtin_functions.c
diff options
context:
space:
mode:
authorandrewnester <andrew.nester.dev@gmail.com>2017-01-24 16:38:30 +0300
committerJoe Watkins <krakjoe@php.net>2017-01-26 09:03:47 +0000
commitf65ae82c55b986fbc1e140de998b4a9c44911cac (patch)
tree69b1ed421fdf796e75b46449760a3890b0b706f8 /Zend/zend_builtin_functions.c
parenta15c1990ebf0dc7929511482ef9b59bad903b0bc (diff)
downloadphp-git-f65ae82c55b986fbc1e140de998b4a9c44911cac.tar.gz
Fixed #73973 - debug_zval_dump() assertion error for resource consts with --enable-debug
Diffstat (limited to 'Zend/zend_builtin_functions.c')
-rw-r--r--Zend/zend_builtin_functions.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c
index 547d3f0b8f..aa705d3235 100644
--- a/Zend/zend_builtin_functions.c
+++ b/Zend/zend_builtin_functions.c
@@ -808,9 +808,6 @@ static void copy_constant_array(zval *dst, zval *src) /* {{{ */
}
} else if (Z_REFCOUNTED_P(val)) {
Z_ADDREF_P(val);
- if (UNEXPECTED(Z_TYPE_INFO_P(val) == IS_RESOURCE_EX)) {
- Z_TYPE_INFO_P(new_val) &= ~(IS_TYPE_REFCOUNTED << Z_TYPE_FLAGS_SHIFT);
- }
}
} ZEND_HASH_FOREACH_END();
}
@@ -853,12 +850,7 @@ repeat:
case IS_FALSE:
case IS_TRUE:
case IS_NULL:
- break;
case IS_RESOURCE:
- ZVAL_COPY(&val_free, val);
- /* TODO: better solution than this tricky disable dtor on resource? */
- Z_TYPE_INFO(val_free) &= ~(IS_TYPE_REFCOUNTED << Z_TYPE_FLAGS_SHIFT);
- val = &val_free;
break;
case IS_ARRAY:
if (!Z_IMMUTABLE_P(val)) {