]> granicus.if.org Git - php/commitdiff
Free the zval container only if it should be freed and was not copied.
authorMarcus Boerger <helly@php.net>
Tue, 2 Dec 2003 07:09:46 +0000 (07:09 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 2 Dec 2003 07:09:46 +0000 (07:09 +0000)
Zend/zend_API.h

index 0368ef564156d699a853b0442a554333e366a614..a52ee0bfa40557c52ccb57f214ec03325cbc635b 100644 (file)
@@ -386,6 +386,9 @@ ZEND_API ZEND_FUNCTION(display_disabled_class);
                        zval_copy_ctor(z);          \
            }                               \
                if (dtor) {                     \
+                       if (!copy) {                \
+                               ZVAL_NULL(zv);          \
+                       }                           \
                        zval_ptr_dtor(&zv);         \
            }                               \
                (z)->is_ref = is_ref;           \