Re: [PHP-DEV] array and call_user_function

2008-09-10 Thread mr esnafrao
ng(hash, key, value, 0); } Thanks for your help and your patience :) AntP 2008/9/10 mr esnafrao <[EMAIL PROTECTED]> > Thanks for your response, but I'm unable to make it work. I have changed > the code, and it works with strings and even with arrays, but not with > has

Re: [PHP-DEV] array and call_user_function

2008-09-10 Thread mr esnafrao
Thanks for your response, but I'm unable to make it work. I have changed the code, and it works with strings and even with arrays, but not with hashes: Am I missing something? zval *hash; zval **args[2], *func, *retval; zval *str; MAKE_STD_ZVAL(retval); MAKE_STD_ZVAL(func); ZVAL_STRIN

[PHP-DEV] array and call_user_function

2008-09-08 Thread mr esnafrao
Hi all, I'm having problems passing an array to the function call_user_function as parameter. This is the code: zval *args[3], *func, *retval; MAKE_STD_ZVAL(func); MAKE_STD_ZVAL(retval); MAKE_STD_ZVAL(args[0]); MAKE_STD_ZVAL(args[1]); MAKE_STD_ZVAL(args[2]); ALLOC_HASH