]> granicus.if.org Git - php/commitdiff
- Keep objects as references.
authorAndi Gutmans <andi@php.net>
Wed, 26 Jan 2000 21:10:46 +0000 (21:10 +0000)
committerAndi Gutmans <andi@php.net>
Wed, 26 Jan 2000 21:10:46 +0000 (21:10 +0000)
Zend/zend_execute_API.c

index 11a24eec01a2cdacebc8fcb487120dc65962618e..b7c59ef64f3904a4c655b2b09901aa975069affa 100644 (file)
@@ -217,7 +217,7 @@ ZEND_API void _zval_ptr_dtor(zval **zval_ptr ZEND_FILE_LINE_DC)
        if ((*zval_ptr)->refcount==0) {
                zval_dtor(*zval_ptr);
                safe_free_zval_ptr(*zval_ptr);
-       } else if ((*zval_ptr)->refcount == 1) {
+       } else if (((*zval_ptr)->refcount == 1) && ((*zval_ptr)->type != IS_OBJECT)) {
                (*zval_ptr)->is_ref = 0;
        }
 }