cvs: ZendEngine2 / zend_compile.c

From: Date: Sun, 24 Aug 2003 16:01:57 +0000
Subject: cvs: ZendEngine2 / zend_compile.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1688@lists.php.net to get a copy of this message
zeev Sun Aug 24 12:01:57 2003 EDT Modified files: /ZendEngine2 zend_compile.c Log: line endings fix Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.464 ZendEngine2/zend_compile.c:1.465 --- ZendEngine2/zend_compile.c:1.464 Sat Aug 23 15:37:39 2003 +++ ZendEngine2/zend_compile.c Sun Aug 24 12:01:57 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.c,v 1.464 2003/08/23 19:37:39 helly Exp $ */ +/* $Id: zend_compile.c,v 1.465 2003/08/24 16:01:57 zeev Exp $ */ #include "zend_language_parser.h" #include "zend.h" @@ -3406,22 +3406,22 @@ } -static void zval_ptr_dtor_internal(zval **zval_ptr) -{ -#if DEBUG_ZEND>=2 - printf("Reducing refcount for %x (%x): %d->%d\n", *zval_ptr, zval_ptr, (*zval_ptr)->refcount, (*zval_ptr)->refcount-1); -#endif - (*zval_ptr)->refcount--; - if ((*zval_ptr)->refcount==0) { +static void zval_ptr_dtor_internal(zval **zval_ptr) +{ +#if DEBUG_ZEND>=2 + printf("Reducing refcount for %x (%x): %d->%d\n", *zval_ptr, zval_ptr, (*zval_ptr)->refcount, (*zval_ptr)->refcount-1); +#endif + (*zval_ptr)->refcount--; + if ((*zval_ptr)->refcount==0) { zval_dtor(*zval_ptr); - free(*zval_ptr); - } else if ((*zval_ptr)->refcount == 1) { - (*zval_ptr)->is_ref = 0; - } + free(*zval_ptr); + } else if ((*zval_ptr)->refcount == 1) { + (*zval_ptr)->is_ref = 0; + } } -#define ZVAL_PTR_DTOR_INTERNAL (void (*)(void *)) zval_ptr_dtor_internal - +#define ZVAL_PTR_DTOR_INTERNAL (void (*)(void *)) zval_ptr_dtor_internal + void zend_initialize_class_data(zend_class_entry *ce, zend_bool nullify_handlers TSRMLS_DC) { zend_bool persistent_hashes = (ce->type == ZEND_INTERNAL_CLASS) ? 1 : 0;

« previous php.zend-engine.cvs (#1688) next »