]> granicus.if.org Git - php/commitdiff
Refcount bugfix
authorAndi Gutmans <andi@php.net>
Tue, 13 Apr 1999 17:49:14 +0000 (17:49 +0000)
committerAndi Gutmans <andi@php.net>
Tue, 13 Apr 1999 17:49:14 +0000 (17:49 +0000)
Zend/zend_execute.c

index ffd061083df4df0140656c9de3d89786a4dd9b33..b66235f97a6b416f940c8b0629c3a3f839d5f287 100644 (file)
@@ -1446,6 +1446,7 @@ send_by_ref:
                                        if (!varptr->is_ref) {
                                                /* code to break away this variable */
                                                if (varptr->refcount>1) {
+                                                       varptr->refcount--;
                                                        *varptr_ptr = (zval *) emalloc(sizeof(zval));
                                                        **varptr_ptr = *varptr;
                                                        varptr = *varptr_ptr;