Re: [PHP-DEV] Zend engine: unresolved external _zend_assign_to_variable_referen ce?
It's kind-of odd that you use this function in a module, it's not really an API function that's useful outside the context of the engine. Are you sure that's the right thing to do in there..? Zeev At 11:58 19/07/2001, Marc Boeren wrote: Hi, If I build the dbx module I get the following error: dbx.obj : error LNK2001: unresolved external symbol _zend_assign_to_variable_reference ..\..\Release_TS/php_dbx.dll : fatal error LNK1120: 1 unresolved externals This is with a clean checkout of php4, zend and tsrm on a windows box. I noticed that the zend_assign_to_variable_reference implementation has changed between the 4.0.6 and the current cvs. 4.0.6 zend_execute.h: static inline void zend_assign_to_variable_reference(znode *result, zval **variable_ptr_ptr, zval **value_ptr_ptr, temp_variable *Ts ELS_DC) { ... } 4.0.7-dev cvs zend_execute.h: void zend_assign_to_variable_reference(znode *result, zval **variable_ptr_ptr, zval **value_ptr_ptr, temp_variable *Ts ELS_DC); (implemented in zend_execute.c) If I change the new code to ZEND_API void zend_assign_to_variable_reference(znode *result, zval **variable_ptr_ptr, zval **value_ptr_ptr, temp_variable *Ts ELS_DC); everything builds correctly, again. I'm not sure if this has any side-effect, so if someone could look it over and commit this patch (or something similar), I'd be happy. Cheerio, Marc. -- PHP Development Mailing List http://www.php.net/ 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. http://www.zend.com/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Zend engine: unresolved external _zend_assign_to_variable_referen ce?
It's kind-of odd that you use this function in a module, it's not really an API function that's useful outside the context of the engine. Are you sure that's the right thing to do in there..? Well, I'm no expert on the zend engine or anything, but I can describe what I try to achieve... As the return-value of a function I create an object containing an array. The array-values are accessible through an index and a name, like dbx_result-data[0][0] and dbx_result-data[0]['fieldname'] I want the fieldname to be a true reference to the value, so if I modify dbx_result-data[0][0] (in a php-script, I mean), and access it through dbx_result-data[0]['fieldname'], I want to get the modified value. For this, the zend_assign_to_variable_reference works fine. If you know another function that gives me the same functionality, I'd be happy too :-) Cheerio, Marc. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Zend engine: unresolved external _zend_assign_to_variable_referen ce?
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] http://www.zend.com/ +972-3-6139665 ext.115 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]