summaryrefslogtreecommitdiff
path: root/Zend/zend_variables.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2002-06-22 13:52:07 +0000
committerAndi Gutmans <andi@php.net>2002-06-22 13:52:07 +0000
commitb53569c9e8522039f1b7b0154192f44dbb347ccc (patch)
treecfe95d185025b2dc62d0028aae54159e6943e260 /Zend/zend_variables.c
parentc83f5a530d867fe3d3fb0ebe89f0d63d6c34ed24 (diff)
downloadphp-git-b53569c9e8522039f1b7b0154192f44dbb347ccc.tar.gz
- Nuke persist_alloc().
Diffstat (limited to 'Zend/zend_variables.c')
-rw-r--r--Zend/zend_variables.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/Zend/zend_variables.c b/Zend/zend_variables.c
index f800150204..febed52d46 100644
--- a/Zend/zend_variables.c
+++ b/Zend/zend_variables.c
@@ -138,37 +138,6 @@ ZEND_API int _zval_copy_ctor(zval *zvalue ZEND_FILE_LINE_DC)
}
-ZEND_API int zval_persist(zval *zvalue TSRMLS_DC)
-{
- switch (zvalue->type) {
- case IS_OBJECT:
- case IS_RESOURCE:
- return FAILURE; /* resources and objects cannot be persisted */
- break;
- case IS_BOOL:
- case IS_LONG:
- case IS_NULL:
- break;
- case IS_CONSTANT:
- case IS_STRING:
- if (zvalue->value.str.val) {
- if (zvalue->value.str.len==0) {
- zvalue->value.str.val = empty_string;
- return SUCCESS;
- }
- }
- persist_alloc(zvalue->value.str.val);
- break;
- case IS_ARRAY:
- case IS_CONSTANT_ARRAY:
- persist_alloc(zvalue->value.ht);
- zend_hash_apply(zvalue->value.ht, (apply_func_t) zval_persist TSRMLS_CC);
- break;
- }
- return SUCCESS;
-}
-
-
ZEND_API int zend_print_variable(zval *var)
{
return zend_print_zval(var, 0);