Re: trying to understand zvals
| From: | (Tim Daly, Jr.) | Date: | Thu, 17 Oct 2002 14:39:34 +0000 |
| Subject: | Re: trying to understand zvals | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-89656@lists.php.net to get a copy of this message | ||
Stanislav Malyshev <stas@zend.com> writes:
*snip*
> TDJ>> that did such a reference assignment:
> TDJ>>
> TDJ>> $foo = "zonk";
> TDJ>> $bar = "baz";
> TDJ>>
> TDJ>> ref_assign($bar, $foo); // $bar =& $foo;
> TDJ>>
> TDJ>> what has to happen in ref_assign?
>
> That's problematic, due to the way PHP variables work. The best you can do
> is something like this:
*snip*
Sorry, I wasn't clear. I mean ref_assign to be a C function, in my
extension.
-Tim