summaryrefslogtreecommitdiff
path: root/Zend/zend_variables.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-08-28 10:18:54 +0000
committerZeev Suraski <zeev@php.net>1999-08-28 10:18:54 +0000
commitcda27ae9acadf46ace265f5e53900680a21c65f8 (patch)
tree20e3a718538b510def12bea41d0ee5d7e7dd5f17 /Zend/zend_variables.c
parent023cb6474bb81f64d607acb36302362c01b8fe4f (diff)
downloadphp-git-cda27ae9acadf46ace265f5e53900680a21c65f8.tar.gz
Beef up debug macros
Diffstat (limited to 'Zend/zend_variables.c')
-rw-r--r--Zend/zend_variables.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Zend/zend_variables.c b/Zend/zend_variables.c
index 81372839b8..1a54465cc3 100644
--- a/Zend/zend_variables.c
+++ b/Zend/zend_variables.c
@@ -117,7 +117,7 @@ ZEND_API int _zval_copy_ctor(zval *zvalue ZEND_FILE_LINE_DC)
return SUCCESS;
}
}
- zvalue->value.str.val = (char *) estrndup(zvalue->value.str.val, zvalue->value.str.len);
+ zvalue->value.str.val = (char *) estrndup_rel(zvalue->value.str.val, zvalue->value.str.len);
break;
case IS_ARRAY: {
zval *tmp;
@@ -128,7 +128,7 @@ ZEND_API int _zval_copy_ctor(zval *zvalue ZEND_FILE_LINE_DC)
var_reset(zvalue);
return FAILURE;
}
- zvalue->value.ht = (HashTable *) emalloc(sizeof(HashTable));
+ zvalue->value.ht = (HashTable *) emalloc_rel(sizeof(HashTable));
zend_hash_init(zvalue->value.ht, 0, NULL, PVAL_PTR_DTOR, 0);
zend_hash_copy(zvalue->value.ht, original_ht, (void (*)(void *)) zval_add_ref, (void *) &tmp, sizeof(zval *));
}
@@ -137,7 +137,7 @@ ZEND_API int _zval_copy_ctor(zval *zvalue ZEND_FILE_LINE_DC)
zval *tmp;
HashTable *original_ht = zvalue->value.obj.properties;
- zvalue->value.obj.properties = (HashTable *) emalloc(sizeof(HashTable));
+ zvalue->value.obj.properties = (HashTable *) emalloc_rel(sizeof(HashTable));
zend_hash_init(zvalue->value.obj.properties, 0, NULL, PVAL_PTR_DTOR, 0);
zend_hash_copy(zvalue->value.obj.properties, original_ht, (void (*)(void *)) zval_add_ref, (void *) &tmp, sizeof(zval *));
}