Re: trying to understand zvals
| From: | Stanislav Malyshev | Date: | Thu, 17 Oct 2002 17:12:13 +0000 |
| Subject: | Re: trying to understand zvals | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-89674@lists.php.net to get a copy of this message | ||
TDJ>> Thanks for your response! While it does not cause a crash, your
TDJ>> function doesn't do what I expected. Do you know where I went
TDJ>> wrong?
OK, looking again on the matter in depth, it seems to me that you cannot
do it from C function either, due to the way in which parameters are
passed in the engine. What you can do is to pass names and then work with
symbols tables (either global or local) directly. You'll also have to take
care to properly destroy old destination value and properly separate the
source value. You can look on ASSIGN_REF opcode in zend_execute.c for
example (yes, it's a bit messy, I know).
--
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/ +972-3-6139665 ext.109