Patch for macros for tracking refcount and is_ref

From: Date: Tue, 04 Sep 2007 14:24:35 +0000
Subject: Patch for macros for tracking refcount and is_ref
Groups: php.internals 
Request: Send a blank email to internals+get-32033@lists.php.net to get a copy of this message
Hi, This is another shot at a patch to manage refcount and is_ref of zvals with macros. The macros are implemented with inline functions that are forcibly inlined (so they will behave the same as macros). This will make it possible to put multiple statements in each macro later on for garbage collection purposes. One thing to note is that I removed the existing ZVAL_ADDREF and ZVAL_DELREF in favor of Z_ADDREF_P and Z_DELREF_P that do the same thing. The original duo acted on zval pointers contrary to standard form for macro names. The patch is probably too large to fit as an attachment, so here's a URL: http://zoo.cs.yale.edu/~yw226/macros.diff.txt Comments?

« previous php.internals (#32033) next »