Re: Zend engine: unresolved external _zend_assign_to_va riable_referen ce?
| From: | Zeev Suraski | Date: | Thu, 19 Jul 2001 09:51:38 +0000 |
| Subject: | Re: Zend engine: unresolved external _zend_assign_to_va riable_referen ce? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-60274@lists.php.net to get a copy of this message | ||
Yes, just use the same zval *, increase refcount accordingly, and set the is_ref bit. It'd be much faster (and also more correct) than using the assign_to_variable_reference() function...
Zeev
At 12:30 19/07/2001, Stanislav Malyshev wrote:
MB>> I want the fieldname to be a true reference to the value, so MB>> if I modify dbx_result->data[0][0] (in a php-script, I mean), MB>> and access it through dbx_result->data[0]['fieldname'], I MB>> want to get the modified value. When you build the result hash, use the same zval * in both places (don't forget the right refcount), it should work. -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net-- Zeev Suraski <zeev@zend.com> CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/