Re: [PATCH] Zend reference macros
| From: | Jason Greene | Date: | Mon, 11 Feb 2002 19:55:31 +0000 |
| Subject: | Re: [PATCH] Zend reference macros | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-79957@lists.php.net to get a copy of this message | ||
Agreed,
However, the debug_zval_dump() function I committed reads them, and I
currently have a define in var.c, that doesn't make much since existing
in var.c
-jason
On Mon, 2002-02-11 at 13:45, Sterling Hughes wrote:
> > All,
> >
> > This patch adds Z_ macros for dealing with references. Could someone
> > with Zend Karma apply this, or grant me Karma to apply this?
> >
>
> -1
>
> You should never access these fields directly...
>
> -Sterling
>
> > Thanks,
> > -jason
> >
>
> > Index: zend_operators.h
> > ===================================================================
> > RCS file: /repository/Zend/zend_operators.h,v
> > retrieving revision 1.50
> > diff -u -r1.50 zend_operators.h
> > --- zend_operators.h 6 Jan 2002 15:21:09 -0000 1.50
> > +++ zend_operators.h 11 Feb 2002 19:36:03 -0000
> > @@ -264,4 +264,12 @@
> > #define Z_TYPE_P(zval_p) Z_TYPE(*zval_p)
> > #define Z_TYPE_PP(zval_pp) Z_TYPE(**zval_pp)
> >
> > +#define Z_REFCOUNT(zval) (zval).refcount
> > +#define Z_REFCOUNT_P(zval_p) Z_REFCOUNT(*zval_p)
> > +#define Z_REFCOUNT_PP(zval_pp) Z_REFCOUNT(**zval_pp)
> > +
> > +#define Z_IS_REF(zval) (zval).is_ref
> > +#define Z_IS_REF_P(zval_p) Z_IS_REF(*zval_p)
> > +#define Z_IS_REF_PP(zval_pp) Z_IS_REF(**zval_pp)
> > +
> > #endif
> >
>
> > --
> > PHP Development Mailing List <http://www.php.net/>
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
> -Sterling
>
> "To live is the rarest thing in the world. Most people exist,
> that is all."
> - Oscar Wilde
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
Jason T. Greene
Internet Software Engineer
<jason@inetgurus.net>
<jason@php.net>
<jason.greene@tdstelecom.com>
Use PHP: http://www.php.net