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...


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
>[EMAIL PROTECTED] +972-3-6139665 ext.115
>PHP Development Mailing List <>
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]

Zeev Suraski <[EMAIL PROTECTED]>
CTO &  co-founder, Zend Technologies Ltd.

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to