Re: [PHP-DEV] Help, please! The Zend API is driving me mad!!!

2003-06-17 Thread Marcus Börger
Hello Oriol, Tuesday, June 17, 2003, 6:29:14 PM, you wrote: O> Aaargh! O> When I run the following code... O> -- O> char fname[256]; O> zval **retval; O> zval *zfname; O> strcpy(fname, "rand"); O> zend_printf("

Re: [PHP-DEV] Help, please! The Zend API is driving me mad!!!

2003-06-17 Thread Joao Prado Maia
My code is just as bad, but I remember that it used to work: PHP_FUNCTION(jtemplate_set_root) { zval **z_root_dir; char *root_dir = NULL; int argc = ZEND_NUM_ARGS(); zval func; zval *retval = NULL; zval *args[1]; if (argc < 0 || arg