diff options
author | Andi Gutmans <andi@php.net> | 2001-08-16 14:12:03 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2001-08-16 14:12:03 +0000 |
commit | 290fc10af7b5bd4c0517024583edab2456213116 (patch) | |
tree | 28303360187201ac1936a9ef710574c5f485d638 /Zend/zend_variables.c | |
parent | ea48c0c46acc1d7ca6e9fb5cc078f0393b4e63ac (diff) | |
download | php-git-290fc10af7b5bd4c0517024583edab2456213116.tar.gz |
- Sync with ZE1
Diffstat (limited to 'Zend/zend_variables.c')
-rw-r--r-- | Zend/zend_variables.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Zend/zend_variables.c b/Zend/zend_variables.c index 6104358382..cc2218fc75 100644 --- a/Zend/zend_variables.c +++ b/Zend/zend_variables.c @@ -133,8 +133,9 @@ 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 cannot be persisted */ + return FAILURE; /* resources and objects cannot be persisted */ break; case IS_BOOL: case IS_LONG: @@ -155,9 +156,6 @@ ZEND_API int zval_persist(zval *zvalue TSRMLS_DC) persist_alloc(zvalue->value.ht); zend_hash_apply(zvalue->value.ht, (apply_func_t) zval_persist TSRMLS_CC); break; - case IS_OBJECT: - return FAILURE; /* objects cannot be persisted */ - break; } return SUCCESS; } |