trying to understand zvals
| From: | (Tim Daly, Jr.) | Date: | Thu, 17 Oct 2002 14:18:51 +0000 |
| Subject: | trying to understand zvals | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-89652@lists.php.net to get a copy of this message | ||
I'm trying to do some extension programming, and I'm pretty confused
by the whole zval thing. In particular, references are a little
mysterious. If I have
$foo = "zonk";
$bar =& $foo;
in PHP, what actually happens? Specifically, if I wanted a function
that did such a reference assignment:
$foo = "zonk";
$bar = "baz";
ref_assign($bar, $foo); // $bar =& $foo;
what has to happen in ref_assign?
Thanks,
Tim