Re: [PHP-DEV] help request: php array

2003-10-07 Thread netcat
Wez Furlong wrote: That backtrace isn't useful (running windows?) Try a debug build, under unix if you have access to it. Chances are that it is your code that is at fault :-) Yep. It looked strange to me adding items to zval without even mentioning it's array. So I looked in other places

Re: [PHP-DEV] help request: php array

2003-10-07 Thread netcat
Wez Furlong wrote: That backtrace isn't useful (running windows?) Yuck... never... windows cannot (must not) live outside VmWare :) Try a debug build, under unix if you have access to it. Will look for that. How fast it became not nice to me Chances are that it is your code that is at

Re: [PHP-DEV] help request: php array

2003-10-07 Thread Wez Furlong
That backtrace isn't useful (running windows?) Try a debug build, under unix if you have access to it. Chances are that it is your code that is at fault :-) --Wez. > Backtrace in `fatal_signal_handler': > <(null)+1107463240> > > > > > >

Re: [PHP-DEV] help request: php array

2003-10-07 Thread netcat
Wez Furlong wrote: Try something like this: if (rep_CONSP(in)) { array_init(return_value); /* sets it up as an array */ for (i = in; i != Qnil; i = rep_CDR(i)) { zval *tmp; MAKE_STD_ZVAL(tmp); rep_data_converter(rep_CAR(i), tmp); add_next_index_zval(return_value, tmp); /*

Re: [PHP-DEV] help request: php array

2003-10-07 Thread Wez Furlong
Try something like this: if (rep_CONSP(in)) { array_init(return_value); /* sets it up as an array */ for (i = in; i != Qnil; i = rep_CDR(i)) { zval *tmp; MAKE_STD_ZVAL(tmp); rep_data_converter(rep_CAR(i), tmp); add_next_index_zval(return_value, tmp); /* equivalent

[PHP-DEV] help request: php array

2003-10-07 Thread netcat
Hi internals. After looking at "Zend/zend_hash.h" e.t.c and haven't realizing how should i do that,i'm asking for your help. It should be really simple for you Have the following function: it should recursively convert data from rep_XXX to php data It does that for string and numbers for now.